0

Im reading "Penetration Testing - A hands-on introduction to Hacking". I'm trying to figure a way out to paste a .exe to my apache2 server and later download it from my VM since these steps from the book doesn't work:

First, run cp chapter4example.exe /var/www to copy the payload executable to the Apache directory, and then make sure the web server is started wit h service apache2 start

root@kali:~# cp chapter4example.exe /var/www

root@kali:~# service apache2 start

Now switch to your Windows XP target and open Internet Explorer. Browse to http://192.168.x.x/chapter4example.exe (Yes, i do put my ip here) and download the file.

But the page returns: "The page cannot be displayed"

My apache2 server is up, and the file is in /var/www. I think i need to copy the file to another location.

closed as off-topic by Steve, Xander, Matthew, John Deters, Steffen Ullrich Feb 11 '17 at 6:35

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "This question does not appear to be about Information security within the scope defined in the help center." – Matthew, John Deters, Steffen Ullrich
  • "Questions asking us to break the security of a specific system for you are off-topic unless they demonstrate an understanding of the concepts involved and clearly identify a specific problem." – Steve, Xander
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Can the server be pinged? Can you reach it from localhost? – Arminius Feb 9 '17 at 22:15
  • I can ping the localhost, and my Kali Linux (where the server is running)ip from the VM. @Arminius – Pablo Dip Feb 9 '17 at 22:25
  • Is /var/www/ the root of the html files? Is index.html in that location? I think you just need to figure out where the root is. – schroeder Feb 10 '17 at 7:37
0

Move it to /var/www/html/example.exe, then go to http://yourip/example.exe to download it.

  • I've figured it out before reading this, but thank you!. This is the solution. – Pablo Dip Feb 10 '17 at 18:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.