Skip to content
/ ScanHTB Public

Script Bash for perform initial scans on HTB Machine

License

Notifications You must be signed in to change notification settings

ITPPA/ScanHTB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ScanHTB

Bash script for initial scans on HTB Machine

  • All HackTheBox Player know, the 1st part of enumeration is always the same.

  • I'm a IT guy, so I'm lazy.

  • This script will do all the 1st stuff for you. Just run and wait...

  • Feel free to use, share, improve. Just let me know ^^

Exemple

Example

Chapters Description
Requirements Requirements
Features What's inside
Install How to Install
Usage How to Use
Changelog Does it change sometimes ?
TODO What's next
Acknowledgments Kudos to these people

Requirements

  • Bash in {a,c,Z,tc,k}sh / fish or what you want !!!
  • Nmap
  • Gobuster
  • Dirb

Features

  • Full TCP / UDP scan
  • Service scan on full TCP scan result
  • Gobuster / dirb if Webserver Found (only on p 80 from now)
  • Can replay without full rescan (check if files exist)

Replay

Install

Download script

$ git clone https://github.com/ITPPA/ScanHTB.git

create box folder

$ mkdir box && cd box/

run script

$ /path/to/script/scanhtb.sh <LAST DIGIT HTB BOX IP>
# Exemple pour Arctic box (10.10.10.11)
$ /path/to/script/scanhtb.sh 11

Usage

Usage: ./scanhtb.sh [OPTION] ip

Perform initial scans on a new Hack the Box machine.

Options:
	-h               display this help message
	-t               perform TCP scans (default)
	-u               perform UDP scans
Parameters:
	ip               Last digit of IP address (10.10.10.X)

Changelog

v0.1 (April 2020) 
------
First Release
* Full TCP / UDP scan [1-65535]
* Service scan on full TCP scan result
* Gobuster / dirbuster if Webserver Found (only on p 80 from now)
* Can replay without full rescan (check if files exist)

TODO:

  • add port 443 for web scanning
  • clean code
  • put all results in one file
  • a lots of stuff

Acknowledgments

This script was made based on calebstewart init-machine script

HTBFRTeam ITPPA

About

Script Bash for perform initial scans on HTB Machine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages