Auto-generate /etc/hosts for HackTheBox machines

Overview

Auto-generate /etc/hosts for HackTheBox machines

Save yourself some tedium on getting started on a new machine by having your /etc/hosts ready to go.

Quickstart

curl https://raw.githubusercontent.com/fx2301/htb_etc_hosts/master/hosts_all.txt | sudo tee -a /etc/hosts

To give you an idea of the contents:

curl -s https://raw.githubusercontent.com/fx2301/htb_etc_hosts/master/hosts_all.txt | head -n 10

# === start auto-generated by https://github.com/fx2301/htb_etc_hosts ===

# Easy machines
10.10.10.215    academy.htb          # https://app.hackthebox.com/machines/297
10.10.10.98     access.htb           # https://app.hackthebox.com/machines/156
10.10.10.100    active.htb           # https://app.hackthebox.com/machines/148
10.10.10.187    admirer.htb          # https://app.hackthebox.com/machines/248
10.10.11.107    antique.htb          # https://app.hackthebox.com/machines/400
10.10.10.11     arctic.htb           # https://app.hackthebox.com/machines/9

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install --editable ../htb_cli

^^ note that htb_cli wasn't a published repo at the time of writing this documentation. Create an issue on this repo if you want access - thanks!

Generating

Generate a fully up to date hosts.txt yourself (the code defaults to active machines only):

python3 generate.py > hosts_active.txt

Downloading

Use the file you want from the repo (list is a snapshot from 2021-11-09):

curl -O https://raw.githubusercontent.com/fx2301/htb_etc_hosts/master/hosts_all.txt 

Appending

cat hosts_all.txt | sudo tee -a /etc/hosts

Caveats

This won't play nice with any dynamically IP addresses that are dynamically assigned by HtB.

Contributing

PRs are welcome. Even just to keep the list up to date. Please don't include any fuzzed subdomains, though. No spoilers allowed (even for retired machines).

PyResToolbox - A collection of Reservoir Engineering Utilities

pyrestoolbox A collection of Reservoir Engineering Utilities This set of functio

Mark W. Burgoyne 39 Oct 17, 2022
A simple package for handling variables in string.

A simple package for handling string variables. Welcome! This is a simple package for handling variables in string, You can add or remove variables wi

1 Dec 31, 2021
Simple yet flexible natural sorting in Python.

natsort Simple yet flexible natural sorting in Python. Source Code: https://github.com/SethMMorton/natsort Downloads: https://pypi.org/project/natsort

Seth Morton 712 Dec 23, 2022
A simple API that will return a key-value pair of randomly generated UUID

A simple API that will return a key-value pair of randomly generated UUID. Key will be a timestamp and value will be UUID. While the server is running, whenever the API is called, it should return al

Pius Lucky 2 Jan 18, 2022
A library for interacting with Path of Exile game and economy data, and a unique loot filter generation framework.

wraeblast A library for interfacing with Path of Exile game and economy data, and a set of item filters geared towards trade league players. Filter Ge

David Gidwani 29 Aug 28, 2022
A python program to find binary, octal and hexadecimal of a decimal.

decimal-converter This little python program can convert a decimal in to, Binary Octal Hexadecimal Needed Python 3 or later or a online python compile

Chandula Janith 0 Nov 27, 2021
Simple script to export contacts from telegram into vCard file

Telegram Contacts Exporter Simple script to export contacts from telegram into vCard file Getting Started Prerequisites You must to put your Telegram

Pere Antoni 1 Oct 17, 2021
A small python tool to get relevant values from SRI invoices

SriInvoiceProcessing A small python tool to get relevant values from SRI invoices Some useful info to run the tool Login into your SRI account and ret

Wladymir Brborich 2 Jan 07, 2022
Simple profile athena generator for Fortnite Private Servers.

Profile-Athena-Generator A simple profile athena generator for Fortnite Private Servers. This profile athena generrator features: Item variants Get al

Fevers 10 Aug 27, 2022
Shypan, a simple, easy to use, full-featured library written in Python.

Shypan, a simple, easy to use, full-featured library written in Python.

ShypanLib 4 Dec 08, 2021
Skywater 130nm Klayout Device Generators PDK

Skywaters 130nm Technology for KLayout Device Generators Mabrains is excited to share with you our Device Generator Library for Skywater 130nm PDK. It

Mabrains 18 Dec 14, 2022
cssOrganizer - organize a css file by grouping them into categories

This python project was created to scan through a CSS file and produce a more organized CSS file by grouping related CSS Properties within selectors. Created in my spare time for fun and my own utili

Andrew Espindola 0 Aug 31, 2022
A Python class for checking the status of an enabled Minecraft server

mcstatus provides an easy way to query Minecraft servers for any information they can expose. It provides three modes of access (query, status and ping), the differences of which are listed below in

Nathan Adams 1.1k Jan 06, 2023
An okayish python script to generate a random Euler circuit with given number of vertices and edges.

Euler-Circuit-Test-Case-Generator An okayish python script to generate a random Euler circuit with given number of vertices and edges. Executing the S

Alen Antony 1 Nov 13, 2021
Format Norminette Output!

Format Norminette Output!

7 Apr 19, 2022
A simple tool to move and rename Nvidia Share recordings to a more sensible format.

A simple tool to move and rename Nvidia Share recordings to a more sensible format.

Jasper Rebane 8 Dec 23, 2022
Create powerful passwords easily and with many options with this program

Password_Generator About the Program: You can create powerful passwords with this program with many options easily! Features: You can copy the generat

Sina.f 0 Jul 14, 2022
Script to rename and resize folders of images

script to rename and resize folders of images

Tega Brain 2 Oct 29, 2021
Manage your exceptions in Python like a PRO

A linter to manage all your python exceptions and try/except blocks (limited only for those who like dinosaurs).

Guilherme Latrova 353 Dec 31, 2022
API Rate Limit Decorator

ratelimit APIs are a very common way to interact with web services. As the need to consume data grows, so does the number of API calls necessary to re

Tomas Basham 575 Jan 05, 2023