2023-10-08 13:08:42 +02:00
2023-10-05 13:00:16 +02:00
2020-08-28 23:04:41 +02:00
2023-10-05 03:46:31 -04:00
2022-01-03 15:00:43 +01:00
2022-12-09 14:54:06 +01:00
2022-03-01 14:23:45 +01:00
2023-10-08 13:08:42 +02:00
2022-01-30 20:47:22 +01:00
2020-08-09 16:49:02 +02:00
2022-03-01 14:23:45 +01:00
2023-09-19 14:39:11 +02:00
2020-10-12 19:21:41 +02:00
2021-05-03 22:35:31 +02:00
2023-10-05 14:01:50 +02:00
2021-10-27 13:08:14 +02:00
2021-10-25 17:25:49 +02:00
2022-12-09 14:54:06 +01:00
2020-01-28 22:15:42 +01:00
2022-01-30 20:47:22 +01:00
2022-12-09 14:54:06 +01:00
2023-10-05 10:21:13 +02:00
2023-01-02 05:43:57 -05:00
2023-10-05 15:43:20 +02:00
2023-09-19 14:39:11 +02:00
2021-06-30 20:44:38 +02:00
2022-12-10 14:24:13 +01:00
2021-06-30 20:44:38 +02:00
2023-10-01 11:23:05 +02:00
2023-10-01 11:23:05 +02:00
2023-10-05 15:43:20 +02:00
2021-05-03 22:35:31 +02:00
2023-10-08 13:08:42 +02:00
2023-10-05 14:01:50 +02:00
2022-12-05 10:09:01 +01:00
2022-12-09 14:54:06 +01:00
2023-10-05 13:00:16 +02:00

HackingScripts

This repository contains self-made and common scripts for information gathering, enumeration and more.

What is this?

I use this repository mostly for automated exploit chains. HackTheBox machines often involve steps like spawning a http server, serving a file, extracting content, steal data through custom DNS/FTP/SSH servers, spawning a reverse shell etc. Using this library I implement a script-to-root mechanism to chain all these steps together. Since the repository also includes lots of common payloads and binaries, I didn't want to put it on PyPI. If you got any recommendations for me, feel free to contact me!

Installation

git clone git@romanh.de:Roman/HackingScripts
sudo ln -s HackingScripts $(python -c "import sys;print(sys.path[-1])")/hackingscripts

Enumeration: Initial Scans

  • first_scan.sh: Performs initial nmap scan
  • gobuster.sh: Performs gobuster dir scan with raft-large-words-lowercase.txt
  • ssh-check-username.py: Check if user enumeration works for ssh
  • git-dumper.py
  • subdomainFuzz.sh: Fuzzes subdomains for a given domain

Enumeration: Privilege Escalation & Pivoting

  • LinEnum.sh
  • linpeas.sh
  • lse.sh
  • unix-privesc-check.sh
  • uptux.py
  • pspy64
  • portscan.py: small python script, which scans open TCP ports natively with multithread support. Can be deployed on victim machines to scan the intranet.
  • pingscan.py: small python script, which can detect internal hosts via ping probes natively. Can be deployed on victim machines to scan the intranet.
  • deepce.sh: Docker Privilege Escalation (e.g. exposed socket)

Reverse Shell: Payloads

Miscellaneous

  • upload_file.py: Starts a local tcp server, for netcat usage
  • xss_handler.py: Starts a local http server and generates xss payload to steal cookies
  • padBuster.pl
  • sql.php: Execute sql queries passed via GET/POST
  • util.py: Collection of some small functions
  • fileserver.py: Create a temporary http server serving in-memory files
  • dnsserver.py: Create a temporary dns server responding dynamically to basic DNS requests (in-memory)

Windows

Description
Tools and Scripts used for Pentesting and CTFs like HackTheBox, tryhackme, and more
Readme 204 MiB
Languages
PowerShell 66.8%
Shell 23.7%
Python 7.1%
Batchfile 0.8%
Perl 0.6%
Other 1%