initial import
This commit is contained in:
31
routersploit/PKGBUILD
Normal file
31
routersploit/PKGBUILD
Normal file
@@ -0,0 +1,31 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=routersploit
|
||||
pkgver=3.4.0
|
||||
pkgrel=1
|
||||
pkgdesc="Free and libre exploitation framework dedicated to embedded devices"
|
||||
url='https://github.com/threat9/routersploit'
|
||||
arch=('any')
|
||||
license=('Modified-BSD')
|
||||
depends=('python' 'python-future' 'python-requests' 'python-paramiko' 'python-pysnmp' 'python-pycryptodome')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/threat9/routersploit/archive/v${pkgver}.tar.gz"
|
||||
"${pkgname}-py38.patch")
|
||||
sha512sums=('9182598105c4d1c971dc63ac24059469dd1862af204f59994cfc85012091663a85faee4c7c04cce573eef1fa91525b44a3963b8c24460d3b31595c4ef6a6c4e5'
|
||||
'b1f81e6bd8bba0a90b3a5bfc57b5ebb690d83e1e404adc49659dffa23c7dbac902815b3a75195902fcf6a4fb7acb1db627f29533d0e8fc60caaaa76f766fb3cb')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
patch -Np1 -i "${srcdir}/${pkgname}-py38.patch"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
|
||||
rm -rf "${pkgdir}"/usr/lib/python*/site-packages/tests
|
||||
mv "${pkgdir}/usr/bin/rsf"{.py,}
|
||||
|
||||
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
cp -r docs/* "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
24
routersploit/routersploit-py38.patch
Normal file
24
routersploit/routersploit-py38.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 47183c74a49f641f818a157e9c5973b9eb7fa78c Mon Sep 17 00:00:00 2001
|
||||
From: Felix Yan <felixonmars@archlinux.org>
|
||||
Date: Tue, 12 Nov 2019 15:10:58 -0600
|
||||
Subject: [PATCH] Do not update the same dict while iterating (fixes #623)
|
||||
(#626)
|
||||
|
||||
Fixes compatibility with Python 3.8.
|
||||
---
|
||||
routersploit/core/exploit/exploit.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/routersploit/core/exploit/exploit.py b/routersploit/core/exploit/exploit.py
|
||||
index f21fac7fd..535fd0967 100644
|
||||
--- a/routersploit/core/exploit/exploit.py
|
||||
+++ b/routersploit/core/exploit/exploit.py
|
||||
@@ -42,7 +42,7 @@ def __new__(cls, name, bases, attrs):
|
||||
else:
|
||||
attrs["exploit_attributes"] = {k: v for d in base_exploit_attributes for k, v in iteritems(d)}
|
||||
|
||||
- for key, value in iteritems(attrs):
|
||||
+ for key, value in iteritems(attrs.copy()):
|
||||
if isinstance(value, Option):
|
||||
value.label = key
|
||||
attrs["exploit_attributes"].update({key: [value.display_value, value.description, value.advanced]})
|
||||
Reference in New Issue
Block a user