In my last article, I discussed:
How to install xampp
How to install wordpress on xampp
The following article describes how to access that wordpress site both remotely and from a different computer on the same network
Assuming you're using windows, navigate to the following folder: C:\xampp\apache\conf\extra and double click the httpd-vhosts file to edit.
Append the following to the end of the file.
Require all granted
Open a blank document, make sure to open your text editor using 'run as administrator' (right click text editor icons and scroll to select 'Run as Administrator'. You need to do this for permissions purposes. Once your text editor is open, click -> file -> open and navigate to 'C:\windows\system32\drivers\etc.
In your command prompt, get the ip address of your computer by typing 'ipconfig' then add the following at the end of the file:
<ip of your computer> wordpress.localhost
ex. 192.168.1.191 wordpress.localhost
To confirm everything was set up correctly, you should now be able to access your wordpress pentesting lab from your attacking computer on the same network. This particular example will allow you to access it remotely as well.
Want to start making money as a white hat hacker? Jump-start your hacking career with our 2020 Premium Ethical Hacking Certification Training Bundle from the new Null Byte Shop and get over 60 hours of training from cybersecurity professionals.
Other worthwhile deals to check out: