I’m noob here and trying to complete starting point machines.
when I try to trigger reverse shell that I uploaded it say
"WARNING: Failed to daemonise. This is quite common and not fatal.
Connection refused (111)
I tried most of methods that I found on internet but no luck yet.
Hope you’ll help.
a3n3a I did that too dude. But I don’t know what is wrong. ‘nc’ gives me no respond. I think that the reverse shell is working correctly. Bcoz when I call the shell using ‘curl’ it gives me ‘connection refused’ message.
I was getting the same Connection Refused(111) problem for the Oopsie machine. Looking at this post, I tried opening that port. I still was getting the same error. In the walkthrough, the order shown is first run the curl command and then nc -lvnp 1234, but to make it work, it needs to run first netcat in shell and then curl in another. Now, it works fine.
Though the error was the same before and after ufw command, port still needs to be open.
I hope you can fix it this way.
EDIT:
I should have read better, but in the same discussion, SalahEo solves it with a much better explanation but in my case I still needed to open the listening port.
same problem, nothing helped.
Throught a script:
Listening on 0.0.0.0 4444
WARNING: Failed to daemonise. This is quite common and not fatal.
Connection refused (111)
Throught a nc:
sudo nc -lvnp 4444
Listening on 0.0.0.0 4444
I had the same issue, I resolved it by making the listening port in my reverse shell php code, the port my nc -lvpn code was calling. So, the two numbers you change should be the $ip and $port, the $ip should be your given IP (the IP your machine is given in this instance) and the $port should be whatever port nc -lvpn is listening on.