Closed gabrielacosta closed 8 years ago
It seems to be failing on the Import of termios (and will most likely fail on the import of tty if it ever got to it). That module is for UNIX only. Could be fixed by added try/except on import, but I'm not sure if the developers intended this to be for Windows? Either way, two helpful links: https://github.com/mwilliamson/spur.py/issues/16 http://stackoverflow.com/questions/6571476/abort-execution-of-a-module-in-python
If you have the means and know-how, I'd highly recommend running it from Linux, you can run Linux from a virtual environment.
@gabrielacosta RouterSploit was never meant to run on Windows.
@gabrielacosta Currently we are going to support only Linux and OSX
I have integrated this in Pentestbox and it works really fine except when any of these two exploits are used. https://github.com/reverse-shell/routersploit/search?utf8=%E2%9C%93&q=termios
or the scanner/autopwn is used because they are calling termios. I have tested for creds and scanners are working fine.
Here, we can either do not allow those two exploits to run or use msvcrt when windows is detected. https://docs.python.org/2/library/msvcrt.html
This would make it support on all platforms.
@exploitprotocol It is simple ssh interactive implementation because paramiko does not offer this functionality by default. I'm thinking about extracting this code to utilities that could be used by any module with simple invoking syntax. There could be also platform check and proper package could be used.
@lucyoa Hey, is there any update on this ?
@exploitprotocol Sorry for the delay. I hope I will be able to work on it this week.
@exploitprotocol I pushed changes: 03a99eacffc0a0c61405100023692a5690ca63fe It should work now on windows
Hey, @lucyoa, thanks for the fix, i can confirm all modules are working on windows :+1:
Keep up the good work!
@exploitprotocol Awesome, thanks!
Thank you for this great utility. I'm trying to run Routersploit in the Cygwin environment. Installation seems to have gone OK without errors, but when I run it it gives the following error:
$ ./rsf.py
Traceback (most recent call last):
File "./rsf.py", line 10, in
from routersploit.interpreter import RoutersploitInterpreter
ModuleNotFoundError: No module named 'routersploit'
It's not complaining about any external modules, but doesn't seem to find it's own interpreter. Any help is much appreciated.
I've set my target and run AutoPwn, and I get the following output.
Could you check this issue and let me know, what could be happening.