![]() |
|
Remote File inclusion and backdoor - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Whitehat • Blue Team • Defensive Security (https://hackforums.net/forumdisplay.php?fid=448) +---- Forum: Pentesting and Forensics (https://hackforums.net/forumdisplay.php?fid=231) +---- Thread: Remote File inclusion and backdoor (/showthread.php?tid=5618155) |
Remote File inclusion and backdoor - KiraL - May 8, 2017 Hello all, i just wanna ask if we have to do port fowarding while doing remote file inclusion. Below are my example of code : <iframe src="pastebin.com/embed_iframe/YsMJkXWP" style="border:none;width:100%"></iframe> As you see after uploading it on webhost, then run on vulnerable site like : target/images/?page=domain/php.txt so after that we listen to port 8080 as the code, but do we need to port forward in order to get reverse connection to the web server ? as you can see that the netcat is with the local network ip. thanks ! * - Xphile - May 8, 2017 If I understand correctly: You've already successfully uploaded your backdoor and now want to catch the incoming connection? If so, then you will need to port-forward via your router settings, the incoming connection should then be routed to your machine (where NetCat will be listening for the inbound connection) and you should be able to interact with the shell. Hope this helped. 🤝 * - KiraL - May 9, 2017 Yeah, very helpful!, but do we need to change our local ip address to public ip address on the command code? * - Xphile - May 9, 2017 (May 9, 2017 02:09 AM)KiraL Wrote: Yeah, very helpful!, but do we need to change our local ip address to public ip address on the command code? You should change your LHOST to your public address, yes. The server sends a connection to your router, the router sends the connection to your machine. So: Server - Public IP -> Router - LAN IP -> You You could also use a DNS address instead of your public IP address if you're using one. Good luck, OP. 🤝 * - Anis_WAN - May 15, 2017 For good pentest without limitation i would suggest you buy a VPS and you'll never need to backconnect anything. * - Rel1k - May 15, 2017 Never use reverse shell directly on your personnal public IP, because thats the best and easy way to find you by police or webmaster (both are same) |