routersploit
routersploit copied to clipboard
TypeError: '>=' not supported between instances of 'tuple' and 'int'
! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !
Steps to Reproduce (for bugs)
- Sudo python3 rsf.py
- Use exploits/routers/linksys/eseries_themoon_rce
- Set target 192.168.1.1
- Run
- Set payload reverse_tcp
- Enter
- Run
- Profit.
Your Environment
-
RouterSploit Version used: Version: 3.4.0
-
Operating System and version: Chrome OS: Version 72.0.3626.122 (Official Build) (32-bit) crouton: version 1-20190403182822~master:174af0eb release: sid architecture: arm64 kernel: Linux localhost 3.18.0-18747-gdea8d908bd77 #1 SMP PREEMPT Sun Mar 3 23:04:46 PST 2019 aarch64 GNU/Linux
-
Python Version: Python 3.7.3
-
Python Environment: asn1crypto==0.24.0 bcrypt==3.1.6 Brlapi==0.6.7 certifi==2018.8.24 cffi==1.12.2 chardet==3.0.4 cryptography==2.6.1 cupshelpers==1.0 distro-info==0.21 entrypoints==0.3 future==0.17.1 idna==2.6 keyring==17.1.1 keyrings.alt==3.1.1 louis==3.9.0 paramiko==2.4.2 ply==3.11 pyasn1==0.4.5 pycairo==1.16.2 pycparser==2.19 pycrypto==2.6.1 pycryptodome==3.8.1 pycryptodomex==3.8.1 pycups==1.9.73 pycurl==7.43.0.2 PyGObject==3.30.4 PyNaCl==1.3.0 pysmbc==1.0.15.6 pysmi==0.3.3 pysnmp==4.4.6 python-apt==1.8.4 python-debian==0.1.34 pyxattr==0.6.1 pyxdg==0.25 requests==2.21.0 SecretStorage==2.3.1 six==1.12.0 unattended-upgrades==0.1 urllib3==1.24.1 youtube-dl==2019.1.17
Current Behavior
Instead of executing the selected exploit on the target device, it fails with the error:
Traceback (most recent call last): File "/home/delsin/Desktop/Exploits/routersploit/routersploit/interpreter.py", line 369, in command_run self.current_module.run() File "/home/delsin/Desktop/Exploits/routersploit/routersploit/modules/exploits/routers/linksys/eseries_themoon_rce.py", line 54, in run shell(self, architecture="mipsle", method="wget", location="/tmp") File "/home/delsin/Desktop/Exploits/routersploit/routersploit/core/exploit/shell.py", line 128, in shell data = payload.generate() File "/home/delsin/Desktop/Exploits/routersploit/routersploit/modules/payloads/mipsle/reverse_tcp.py", line 21, in generate reverse_ip = utils.convert_ip(self.lhost) File "/home/delsin/Desktop/Exploits/routersploit/routersploit/core/exploit/utils.py", line 67, in convert_ip res += bytes([int(i)]) ValueError: invalid literal for int() with base 10: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "rsf.py", line 26, in
routersploit() File "rsf.py", line 22, in routersploit rsf.start() File "/home/delsin/Desktop/Exploits/routersploit/routersploit/interpreter.py", line 117, in start command_handler(args) File "/home/delsin/Desktop/Exploits/routersploit/routersploit/core/exploit/utils.py", line 175, in wrapper return fn(self, *args, **kwargs) File "/home/delsin/Desktop/Exploits/routersploit/routersploit/interpreter.py", line 374, in command_run print_error(traceback.format_exc(sys.exc_info())) File "/usr/lib/python3.7/traceback.py", line 167, in format_exc return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain)) File "/usr/lib/python3.7/traceback.py", line 121, in format_exception type(value), value, tb, limit=limit).format(chain=chain)) File "/usr/lib/python3.7/traceback.py", line 508, in init capture_locals=capture_locals) File "/usr/lib/python3.7/traceback.py", line 337, in extract if limit >= 0: TypeError: '>=' not supported between instances of 'tuple' and 'int'
Expected Behavior
Should attempt to execute the exploit on the target device.
JFTR, I think this is a duplicate of #571.
Install missing libraries Next compile setup.py Python setup.py --help ➜ routersploit git:(master) python setup.py --help Common commands: (see '--help-commands' for more) setup.py build will build the package underneath 'build/' setup.py install will install the package Python setup.py build Python setup.py install problem solved Python rsf.py
I still don't know how to fix this... What am I supposed to do? I do not think I'm supposed to make builds it should just work right ^^
same here, i just built and installed setup.py but i'm getting the exact same error as before
Works for me: First download the newest version
sudo su chmod +x setup.py exit
sudo apt-get install python3 sudo python3 setup.sh install sudo python3 rsf.py
Same problm😭
how to slove this
File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 109, in import_exploit module = importlib.import_module(path) File "/data/data/com.termux/files/usr/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
Install missing libraries Next compile setup.py
From: Xcaliburr101 [email protected] Sent: Saturday, February 15, 2020 5:07:35 AM To: threat9/routersploit [email protected] Cc: xxghk [email protected]; Comment [email protected] Subject: Re: [threat9/routersploit] TypeError: '>=' not supported between instances of 'tuple' and 'int' (#577)
I still don't know how to fix this... What am I supposed to do? I do not think I'm supposed to make builds it should just work right ^^
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/threat9/routersploit/issues/577?email_source=notifications&email_token=ALZKX6NMS6CVHBRG7FPOY63RC4BZPA5CNFSM4HDWBWHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL2N3VQ#issuecomment-586472918, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALZKX6NIXCHZB42HGB3CCKLRC4BZPANCNFSM4HDWBWHA.
Instal pustaka yang hilang Berikutnya compile setup.py Python setup.py --help ➜ routersploit git: (master) python setup.py --help Perintah umum: (lihat '--help-commands' untuk lebih lanjut) setup.py build akan membangun paket di bawah 'build /' setup.py install akan menginstal paket Python setup.py build Python setup.py masalah install solved Python rsf.py
Hmm
Works for me: First download the newest version
sudo su chmod +x setup.py exit
sudo apt-get install python3 sudo python3 setup.sh install sudo python3 rsf.py
this works for me in kali thanx, what about MAC os to fix this issue, i cant use the same command to fix it there?
Be careful, you have written it wrong and it can cause confusion, you have to put setup.py and not setup.sh
i hope it works for you all
https://github.com/threat9/routersploit/issues/577#issuecomment-633197142
Install missing libraries Next compile setup.py Python setup.py --help ➜ routersploit git:(master) python setup.py --help Common commands: (see '--help-commands' for more) setup.py build will build the package underneath 'build/' setup.py install will install the package Python setup.py build Python setup.py install problem solved Python rsf.py
And how I do that???
I fixed this bug here few years ago - #736. I don't know why didn't they merge it. Maybe they want their tool to remain buggy. :(