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).

Grank is a feature-rich script that automatically grinds Dank Memer for you

Grank Inspired by this repository. This is a WIP and there will be more functions added in the future. What is Grank? Grank is a feature-rich script t

42 Jul 20, 2022
Modest utility collection for development with AIOHTTP framework.

aiohttp-things Modest utility collection for development with AIOHTTP framework. Documentation https://aiohttp-things.readthedocs.io Installation Inst

Ruslan Ilyasovich Gilfanov 0 Dec 11, 2022
python package for generating typescript grpc-web stubs from protobuf files.

grpc-web-proto-compile NOTE: This package has been superseded by romnn/proto-compile, which provides the same functionality but offers a lot more flex

Roman Dahm 0 Sep 05, 2021
python-codicefiscale: a tiny library for encode/decode Italian fiscal code - codifica/decodifica del Codice Fiscale.

python-codicefiscale python-codicefiscale is a tiny library for encode/decode Italian fiscal code - codifica/decodifica del Codice Fiscale. Features T

Fabio Caccamo 53 Dec 14, 2022
An URL checking python module

An URL checking python module

Fayas Noushad 6 Aug 10, 2022
'ToolBurnt' A Set Of Tools In One Place =}

'ToolBurnt' A Set Of Tools In One Place =}

MasterBurnt 5 Sep 10, 2022
DiddiParser 2: The DiddiScript parser.

DiddiParser 2 The DiddiScript parser, written in Python. Installation DiddiParser2 can be installed via pip: pip install diddiparser2 Usage DiddiPars

Diego Ramirez 3 Dec 28, 2022
Export watched content from Tautulli to the Letterboxd CSV Import Format

Export watched content from Tautulli to the Letterboxd CSV Import Format

Evan J 5 Aug 31, 2022
Python Random Number Genrator

This Genrates Random Numbers. This Random Number Generator was made using python. This software uses Time and Random extension. Download the EXE file and run it to get your answer.

Krish Sethi 2 Feb 03, 2022
Python script to get some stats on nodes in a Blender material nodetree

Python script to get some stats on nodes in a Blender material nodetree. It counts the nodes, the node types and the max deep level for group nodes.

Alek Mugnozzo 2 Sep 03, 2022
A simple and easy to use Spam Bot made in Python!

This is a simple spam bot made in python. You can use to to spam anyone with anything on any platform.

7 Sep 08, 2022
Python program to do with percentages and chances, random generation.

Chances and Percentages Python program to do with percentages and chances, random generation. What is this? This small program will generate a list wi

n0 3 Jul 15, 2021
Program to extract signatures from documents.

Extracting Signatures from Bank Checks Introduction Ahmed et al. [1] suggest a connected components-based method for segmenting signatures in document

Muhammad Saif Ullah Khan 9 Jan 26, 2022
We provide useful util functions. When adding a util function, please add a description of the util function.

Utils Collection Motivation When we implement codes, we often search for util functions that are already implemented. Here, we are going to share util

6 Sep 09, 2021
Pyfunctools is a module that provides functions, methods and classes that help in the creation of projects in python

Pyfunctools Pyfunctools is a module that provides functions, methods and classes that help in the creation of projects in python, bringing functional

Natanael dos Santos Feitosa 5 Dec 22, 2022
Create C bindings for python automatically with the help of libclang

Python C Import Dynamic library + header + ctypes = Module like object! Create C bindings for python automatically with the help of libclang. Examples

1 Jul 25, 2022
🚧Useful shortcuts for simple task on windows

Windows Manager A tool containg useful utilities for performing simple shortcut tasks on Windows 10 OS. Features Lit Up - Turns up screen brightness t

Olawale Oyeyipo 0 Mar 24, 2022
PyGMT - A Python interface for the Generic Mapping Tools

PyGMT A Python interface for the Generic Mapping Tools Documentation (development version) | Contact | Try Online Why PyGMT? A beautiful map is worth

The Generic Mapping Tools (GMT) 564 Dec 28, 2022
Collection of code auto-generation utility scripts for the Horizon `Boot` system module

boot-scripts This is a collection of code auto-generation utility scripts for the Horizon Boot system module, intended for use in Atmosphère. Usage Us

4 Oct 11, 2022
PyHook is an offensive API hooking tool written in python designed to catch various credentials within the API call.

PyHook is the python implementation of my SharpHook project, It uses various API hooks in order to give us the desired credentials. PyHook Uses

Ilan Kalendarov 158 Dec 22, 2022