Have you heard about Hack the Box? I hope so, it’s literally so damn good words can’t express how thankful I am to the creators. If you have not, it’s an online platform to test and advance your skills in penetration testing and cyber security. Awsome.Hack The Box :: Penetration Testing Labs
An online platform to test and advance your skills in penetration testing and cyber security. Join today and start…www.hackthebox.eu

If you can afford it or work will pay, get the VIP subscription because then you don’t have to deal with nearly half as many pesky resets mid-priv. esc. etc, in fact, mostly none at all as they fill labs nicely and not over pack.

I am about to spend the evening on hackthebox.eu, it’s been a while, but before I do let me share how I usually set up my environment. I grab a list of the IPs and add it to hosts.txt with boxname.htb, this helps for some hidden content that can only be found when requesting with the host, all boxes should follow this format but might not use it in any way. Below is a list of the current ones to get you started.

Current List of Targets for /etc/hosts

10.10.10.111 frolic.htb
10.10.10.150 curling.htb
10.10.10.109 vault.htb
10.10.10.113 redcross.htb
10.10.10.117 irked.htb
10.10.10.112 bighead.htb
10.10.10.153 teacher.htb
10.10.10.119 lightweight.htb
10.10.10.120 chaos.htb
10.10.10.116 conceal.htb
10.10.10.103 sizzle.htb
10.10.10.121 help.htb
10.10.10.124 flujab.htb
10.10.10.122 ctf.htb
10.10.10.123 friendzone.htb
10.10.10.125 querier.htb
10.10.10.128 hackback.htb
10.10.10.152 netmon.htb
10.10.10.127 fortune.htb
10.10.10.130 arkham.htb

Directories

Then to keep all my content and testing organized I run this command. Save the list above as targets.txt in a directory like HackTheBox.

for dir in $(cat targets.txt | cut -d" " -f2); do mkdir $dir; done

You should be left with this…

Now you can spend the evening hacking away with a nicely organized set-up with all the hosts ready to use, like so…

nmap -sV -sC fortune.htb -oN initial-scan.nmap

If you are lazy like me …

Initial Scan

for dir in $(cat targets.txt | cut -d" " -f2); do cd ~/HackTheBox/$dir && nmap -sV -sC $dir -oN initial-scan.nmap; done

Vuln Scan

for dir in $(cat targets.txt | cut -d" " -f2); do cd ~/HackTheBox/$dir && nmap --script vuln $dir -oN vuln-scan.nmap; done

Happy Pwnage!