t3l3machus / hoaxshell

A Windows reverse shell payload generator and handler that abuses the http(s) protocol to establish a beacon-like reverse shell.
BSD 2-Clause "Simplified" License
3.05k stars 482 forks source link

How to use hoaxshell with ngrok? #30

Closed ghost closed 2 years ago

ghost commented 2 years ago

I already have ngrok installed but when I use the command python3 hoaxshell.py - ng it says ngrok is not installed.

Do I need to modify the code in hoaxshell.py to get ngrok to work? If yes please tell me how to do it.

t3l3machus commented 2 years ago

@MhmadSal make sure ngrok binary is in your PATH.

ghost commented 2 years ago

@t3l3machus I already downloaded ngrok in the hoaxshell folder but still the same issue, is there anything else I can do?

Or do you think I should move ngrok to another place rather than the hoaxshell folder?

t3l3machus commented 2 years ago

@MhmadSal you have to move it in one of the dirs that is included in your user's PATH environmental variable (i'm assuming you are using linux). Try for example moving the ngrok binary to /usr/sbin/. *Also, do chmod +x ngrok (in case you haven't already).

ghost commented 2 years ago

@t3l3machus it's working now but it shows the invalid address error in red when executing the payload in powershell and it doesn't return a session, what's the solution for this?

t3l3machus commented 2 years ago

I just tested it right now it worked fine. Are you sure ngrok is executable? Do echo $PATH, ngrok must be moved in one of these directories. image

t3l3machus commented 2 years ago

@MhmadSal post a screenshot of the error bro i am not a wizard

ghost commented 2 years ago

@t3l3machus everything goes well on my Linux like in this picture Screenshot_20221016_192655_tech ula

But when I execute it on windows powershell this happens :

![Uploading IMG_20221016_193020.jpg…]()

t3l3machus commented 2 years ago

The error img doesn't load. You are running hoaxshell on a particular OS that it has not been tested on. I believe some string operation is failing due to OS characteristics. Try to debug it,

ghost commented 2 years ago

That's the error Screenshot_20221016_195523_com google android apps docs

ghost commented 2 years ago

@t3l3machus can you please tell me how to deal with the error in the picture?