LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble installing and running routersploit on raspbian (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-installing-and-running-routersploit-on-raspbian-4175578368/)

nooobster 04-26-2016 09:08 AM

Trouble installing and running routersploit on raspbian
 
I'm following the guide here
https://github.com/reverse-shell/routersploit

I get past the installation step:
sudo apt-get install python-requests python-paramiko python-netsnmp
git clone https://github.com/reverse-shell/routersploit
./rsf.py

I type 'ls' and see that there is a folder rsf.py

The command that is befuddling me is this one:
root@kalidev:~/git/routersploit# ./rsf.py

It says no file by that name. I did mkdir to create /git and /routersploit#, but that doesn't seem to work. I tried doing the same under my user and after logging into root.

What exactly does the following command do?
root@kalidev:~/git/routersploit# ./rsf.py

thanks!

aragorn2101 04-30-2016 02:58 AM

Hello,

Welcome to LQ,

I tried the git clone command. I created a directory called "testing" in my home. Then I cd into the directory "testing" and ran:

Code:

$ git clone https://github.com/reverse-shell/routersploit
Cloning into 'routersploit'...
remote: Counting objects: 1017, done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 1017 (delta 60), reused 0 (delta 0), pack-reused 916
Receiving objects: 100% (1017/1017), 213.80 KiB | 94.00 KiB/s, done.
Resolving deltas: 100% (681/681), done.
Checking connectivity... done.

$ ls -l
total 4.0K
drwxr-xr-x 4 aragorn aragorn 4.0K Apr 30 11:52 routersploit

$ cd routersploit ; ls -l
total 32K
-rw-r--r-- 1 aragorn aragorn 1.9K Apr 30 11:52 LICENSE
-rw-r--r-- 1 aragorn aragorn  11K Apr 30 11:52 README.md
-rw-r--r-- 1 aragorn aragorn  52 Apr 30 11:52 requirements.txt
drwxr-xr-x 5 aragorn aragorn 4.0K Apr 30 11:52 routersploit
-rwxr-xr-x 1 aragorn aragorn  205 Apr 30 11:52 rsf.py
-rw-r--r-- 1 aragorn aragorn  171 Apr 30 11:52 tox.ini

$ ./rsf.py

Note: $ is the prompt.

After doing the git clone, you get a directory routersploit which contains LICENSE, README.md, ... The important thing is that it contains an executable rsf.py, which you can execute quite simply.

So, you might have made a mistake in running the command as you are saying that you had to use mkdir and that you have a rsf.py directory.

cepukid 05-23-2016 05:45 PM

how to fix?
 
root@alfin:~/routersploit# ./rsf.py
Traceback (most recent call last):
File "./rsf.py", line 3, in <module>
from routersploit.interpreter import RoutersploitInterpreter
File "/root/routersploit/routersploit/__init__.py", line 1, in <module>
from routersploit.utils import (
File "/root/routersploit/routersploit/utils.py", line 32, in <module>
requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarni ng)
AttributeError: 'module' object has no attribute 'disable_warnings'

aragorn2101 05-24-2016 05:23 AM

Hi cepukid,

Welcome to LQ.

This looks like a Python error. Maybe some missing dependency or uncorrect PYTHONPATH.

You should have started a new thread in the hardware/newbie forum. We are always ready to help, provided you ask your question properly in the appropriate forum. Check these out:

http://www.linuxquestions.org/linux/...Ask_a_Question
http://www.linuxquestions.org/linux/...xQuestions_org

All the best.


All times are GMT -5. The time now is 05:26 PM.