0
Mr Blood

Orange Pi Lite 2 Msfconsole?

Recommended Posts

 

Hello everyone. I'm trying to install the katoolin tool on orange pi lite 2 but I have a small problem. 

 

 

I followed these instructions but at the third step something is wrong.

 

install kali linux tools to any linux system
- sudo su

- git clone https://github.com/LionSec/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolin

- chmod +x /usr/bin/katoolin - sudo katoolin

 

root@orangepilite2:~# git clone https://github.com/LionSec/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolin
Cloning into 'katoolin'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 253 (delta 9), reused 2 (delta 0), pack-reused 233
Receiving objects: 100% (253/253), 101.71 KiB | 575.00 KiB/s, done.
Resolving deltas: 100% (142/142), done.
root@orangepilite2:~# chmod +x /usr/bin/katoolin - sudo katoolin
chmod: cannot access '-': No such file or directory
chmod: cannot access 'sudo': No such file or directory

 

Can anyone give me a hand?

Share this post


Link to post
Share on other sites
1 hour ago, Mr Blood said:

Can anyone give me a hand?

Third line is wrong, it should be typed this way in two line :

chmod a+x /usr/bin/katoolin
sudo katoolin

 

Share this post


Link to post
Share on other sites

Thank @martinayotte

 

But I don't understand why when I launch the command:

 

root@orangepilite2:~# sudo katoolin/
sudo: katoolin/: command not found
root@orangepilite2:~# sudo katoolin
sudo: unable to execute /usr/bin/katoolin: No such file or directory
 

I get this error

 

Maybe it's a stupid idea but I looked at the readme file and noticed that it requires Python 2.7. But Arbian already has the version 3.7 pre-installed so it shouldn't give problems. Quite right?

Share this post


Link to post
Share on other sites
15 minutes ago, Mr Blood said:

sudo: unable to execute /usr/bin/katoolin: No such file or directory

It seems that you missed the step "cp katoolin/katoolin.py /usr/bin/katoolin" ...

Share this post


Link to post
Share on other sites
1 minute ago, martinayotte said:

It seems that you missed the step "cp katoolin/katoolin.py /usr/bin/katoolin" ...

 

Sorry if I forgot to mention it but I already copied the file.

 

With command: 

 

sudo cp katoolin/katoolin.py  /usr/bin/katoolin

Share this post


Link to post
Share on other sites
1 minute ago, Mr Blood said:

Sorry if I forgot to mention it but I already copied the file.

But why the previous error says "No such file or directory" ?

Or maybe it is the /usr/bin/python that is not present ?

Share this post


Link to post
Share on other sites
4 minutes ago, martinayotte said:

But why the previous error says "No such file or directory" ?

Or maybe it is the /usr/bin/python that is not present ?

In fact in the folder: /usr/bin the python folder is not present.

But is present python3. 

Share this post


Link to post
Share on other sites
13 minutes ago, Mr Blood said:

the python folder is not present.

It is not a folder, but a binary ...

Either install python2.7 or try to add symbolic link to python3 with "sudo ln -s python3 /usr/bin/python"

Share this post


Link to post
Share on other sites

Hello! 

I tried to install python 2.7 but katoolin still doesn't work.

I tried to run the command you recommended to me and now it gives me this message.

 


root@orangepilite2:~# sudo katoolin
  File "/usr/bin/katoolin", line 8
    print "Sorry. This script requires sudo privledges"
                                                      ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Sorry. This script requires sudo privledges")?
 

Share this post


Link to post
Share on other sites
2 hours ago, Mr Blood said:

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Sorry. This script requires sudo privledges")?

This means that "katoolin" is really using python2...

So remove the previous symlink with "sudo rm /usr/bin/python" and recreate new one to python2.7 with "sudo ln -s python2.7 /usr/bin/python".

Share this post


Link to post
Share on other sites
On 8/7/2019 at 2:58 PM, martinayotte said:

This means that "katoolin" is really using python2...

So remove the previous symlink with "sudo rm /usr/bin/python" and recreate new one to python2.7 with "sudo ln -s python2.7 /usr/bin/python".

It worked. The tool works perfectly. Unfortunately Armbian on Orange Pi lite 2 is not GUI minutes so I can't use either metasploit or armitage.

 

Thanks @martinayotte kind and helpful as always.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0