Skip to content

Hunter is an enumeration tool designed to streamline information gathering on compromised machines. It consists of winHunter (PowerShell) and linHunter (Bash), automating the retrieval of essential utilities, system reconnaissance, logging, and uploading findings back to the pentest host.

License

Notifications You must be signed in to change notification settings

Mithlonde/Hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Root    Blog    Projects    ~/Hunter    Writeups   

Hi there 👋

👾 Mithlonde

└─$ cat projects/hunter.md

Hunter

During a penetration test, once you've gained access to the target computer:

  • The tool starts by downloading utilities from an external system directly onto the target machine.
  • It then performs automated (using the downloaded utilities) as well as manual system reconnaissance to identify security issues.
  • All results are written to log files.
  • Subsequently, the tool uploads these log files back to the specified external location for analysis.
  • Finally, the tool takes care of cleaning up temporary files to erase the trace of activity, including self-destructing of the script itself on the target.

In essence, it eliminates the need for manually typing all commands, downloading, uploading, deleting, etc. This allows me to simply let the tool run while you focus on other tasks, saving a significant amount of time. It also makes the process of report writing way easier due to the color rich logging of commands and output.

IMPORTANT NOTE: This tool is still under construction, so updates will be added in the future to make it more streamlined. Currently the linHunter binary only accepts file transfer over HTTP. Additionally, winHunter prints the commands it should be executing for the uploader function correctly, but it doesn't execute them. For now, you can simply copy/paste the commands it prints for you.

linHunter PoC example screenshot: image image image image

winHunter PoC example screenshots: winHunter-example winHunter-example-2 winHunter-example-3

Usage

./linHunter.sh -h                     
Usage: linHunter.sh [OPTIONS]. Skips to manual enumeration if [OPTIONS] are omitted, or only -o is provided

Options:
  -l <ip>        Specify IP to download tools from (requires either -http or -smb)
  -http          Use HTTP method upload for file transfer
  -smb           Use SMB method for file transfer. [!] Note: Currently unavailable
  -o             Write output to linHunter.log (use 'less -r ' to read)
  -tty           Attempt to spawn a TTY shell [!] Note: Currently unavailable
  -c             Done? Clean up downloaded files and logs
  -h             Display this help message

Info: To terminate any background processes started by this script, use the following commands:
  pkill -f "pspy64"    Terminate pspy64 background process
  pkill -f "linpeas"   Terminate linpeas background process

About Method:
  http             Download function requires: python3 -m http.server 80
                   Upload function requires: python3 -m uploadserver

Where LinHunter is a fully functional tool including command-line parser options, WinHunter works slightly different while having the same functionalities. With winHunter you can specify the ListeningHost and Method via the script itself: image

.\winHunter.ps1 -h
Usage: .\winHunter.ps1 to perform all functions except for '-c'

Options to edit in the script:
  ListeningHost    Specify IP for file transfer
  Method           Specify method for file transfer (smb (default) or http)
  tools            List of tools to download to target
  logsToUpload     List of files to upload to ListeningHost

About Method:
  http             Download function requires: python3 -m http.server 80
                   Upload function requires: python3 -m uploadserver
  smb              Both download and upload functions require: impacket-smbserver share . -smb2support

Additional Command-Line Arguments:
  -c               Done? Clean up downloaded files and logs
  -h               Display this help message

About

Hunter is an enumeration tool designed to streamline information gathering on compromised machines. It consists of winHunter (PowerShell) and linHunter (Bash), automating the retrieval of essential utilities, system reconnaissance, logging, and uploading findings back to the pentest host.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published