Skip to content

WALDEX451/DEVHA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

   โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
   โ•‘                                              โ•‘
   โ•‘    โ–„โ–„โ–„โ–„  โ–„โ–„โ–„โ–„ โ–„   โ–„ โ–„   โ–„  โ–„โ–„โ–„              โ•‘
   โ•‘    โ–ˆ   โ–ˆ โ–ˆ    โ–ˆ   โ–ˆ โ–ˆ   โ–ˆ โ–ˆ   โ–ˆ             โ•‘
   โ•‘    โ–ˆ   โ–ˆ โ–ˆโ–„โ–„โ–„ โ–ˆ   โ–ˆ โ–ˆโ–„โ–„โ–„โ–ˆ โ–ˆโ–„โ–„โ–„โ–ˆ             โ•‘
   โ•‘    โ–ˆ   โ–ˆ โ–ˆ     โ–ˆ โ–ˆ  โ–ˆ   โ–ˆ โ–ˆ   โ–ˆ             โ•‘
   โ•‘    โ–ˆโ–„โ–„โ–ˆ  โ–ˆโ–„โ–„โ–„โ–„  โ–ˆ   โ–ˆ   โ–ˆ โ–ˆ   โ–ˆ             โ•‘
   โ•‘                                              โ•‘
   โ•‘    Developer  &  Hacking  CLI                โ•‘
   โ•‘                                              โ•‘
   โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

devha โ€” One CLI to Scan Them All ๐Ÿ›ก๏ธ

Port scanner ยท Username lookup ยท Subdomain enum ยท Directory bruteforce ยท OSINT crawler ยท Cipher tools โ€” in one beautiful terminal.

PyPI version Python License: MIT CI Downloads Code style: black

Install ยท Commands ยท Examples ยท Contributing ยท Ethics


๐Ÿš€ What is devha?

devha (short for Developer & Hacking) is an all-in-one Python CLI that bundles 10 essential security and developer tools into one beautiful, beginner-friendly interface โ€” heavily inspired by classics like Sherlock, Sublist3r, dirsearch, Photon, theHarvester and Scapy.

Instead of installing six different tools and learning six different syntaxes, you get one binary, one syntax, one beautiful Rich-powered output.

$ devha username coolkid42
$ devha portscan scanme.nmap.org
$ devha subdomains example.com
$ devha cipher encode "hello world" --type caesar --key 13

Built for learners, CTF players, and developers who think their terminal should look as good as their IDE.


โœจ Features

Command What it does Inspired by
๐Ÿ” portscan Scan open ports on a host (threaded, fast) nmap
๐Ÿ‘ค username Check if a username exists on 50+ sites Sherlock
๐Ÿ“ก wifi List nearby WiFi networks (read-only) iwlist / airport
๐Ÿ” cipher Encode, decode & crack classic ciphers โ€”
๐ŸŒ subdomains Find subdomains via wordlist + crt.sh + APIs Sublist3r
๐Ÿ“ dirscan Discover hidden directories on a website dirsearch
๐Ÿ•ธ๏ธ crawl Crawl a site for emails, links, secrets Photon
๐Ÿ“ง harvest OSINT: gather emails & names from public sources theHarvester
๐Ÿ›ก๏ธ headers Audit HTTP security headers + score securityheaders.com
๐Ÿ“ ping Educational ICMP ping at packet level Scapy

All commands support --json for scripting, --no-banner for clean output, and rich color-coded results out of the box.


๐Ÿ“ฆ Installation

๐ŸŒŸ Recommended: pipx (isolated, global)

pipx install devha

Via pip

pip install devha

Via Docker

docker run --rm -it ghcr.io/waldex451/devha:latest --help

From source โ€” globally available (devha command everywhere)

git clone https://github.com/waldex451/devha.git
cd devha

# Install pipx if you don't have it yet:
# macOS:  brew install pipx && pipx ensurepath
# Linux:  pip install pipx && pipx ensurepath
# Windows: pip install pipx

pipx install .   # installs devha globally โ€” type devha anywhere!

From source โ€” only inside this project (virtualenv)

git clone https://github.com/waldex451/devha.git
cd devha
poetry install

poetry run devha --help   # prefix every command with "poetry run"
# OR activate the venv once:
poetry shell              # now just type: devha --help

๐Ÿ’ก Tip โ€” want to type devha anywhere in your terminal? Run pipx install . instead of poetry install. pipx installs it globally, isolated from your system Python. macOS: brew install pipx && pipx ensurepath ยท Linux/Windows: pip install pipx && pipx ensurepath

Requirements: Python 3.10+ ยท Works on Linux, macOS, Windows ยท wifi command requires OS-specific tools (iwlist, nmcli, airport, or netsh)


โšก Quick Start

# See all commands
devha --help

# Check if your dream username is taken
devha username your_brand_name

# Scan a legal practice range
devha portscan scanme.nmap.org

# Encrypt a message with ROT13
devha cipher encode "meet me at midnight" --type rot13

# Audit a website's security headers
devha headers https://example.com

๐Ÿ› ๏ธ Commands

๐Ÿ” portscan โ€” Mini-nmap port scanner
devha portscan <target> [--ports 1-1024] [--threads 100] [--timeout 1.0] [--yes] [--json]

Scans open ports using concurrent sockets with a live progress bar. Uses socket.getservbyport() for service names.

$ devha portscan scanme.nmap.org --ports 1-1000

  Scanning scanme.nmap.org  ports 1-1000  threads 100

  Scanning... โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” 100% 0:00:08

  โ•ญโ”€ Open ports on scanme.nmap.org โ”€โ”€โ”€โ•ฎ
  โ”‚ PORT โ”‚ STATUS โ”‚ SERVICE           โ”‚
  โ”‚ 22   โ”‚ OPEN   โ”‚ ssh               โ”‚
  โ”‚ 80   โ”‚ OPEN   โ”‚ http              โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
๐Ÿ‘ค username โ€” Find usernames across 50+ sites
devha username <name> [--sites github,reddit] [--timeout 5] [--found] [--json]

Checks 55+ platforms in parallel using httpx.AsyncClient. Green = found, Red = not found, Yellow = error/timeout.

$ devha username torvalds

  โ•ญโ”€ Username: torvalds โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
  โ”‚ SITE           โ”‚ STATUS       โ”‚ URL                       โ”‚
  โ”‚ GitHub         โ”‚ โœ”  FOUND     โ”‚ https://github.com/...   โ”‚
  โ”‚ Reddit         โ”‚ โœ˜  NOT FOUND โ”‚ ...                       โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

  Found on 12 / 55 platform(s).
๐Ÿ“ก wifi โ€” List nearby WiFi networks
devha wifi [--json]

Read-only. Detects OS automatically and uses nmcli/iwlist (Linux), airport (macOS), or netsh (Windows). Sorted by signal strength.

โš ๏ธ Does not connect to or crack any networks.

๐Ÿ” cipher โ€” Classic ciphers (encode/decode/crack)
devha cipher encode <text> --type [caesar|vigenere|rot13|atbash] --key <key>
devha cipher decode <text> --type ... --key ...
devha cipher crack  <text> --type caesar   # tries all 25 shifts + readability score
devha cipher tui                           # live interactive TUI

Pure Python โ€” no external crypto library needed.

$ devha cipher crack "Uryyb Jbeyq"

  SHIFT โ”‚ SCORE โ”‚ PLAINTEXT
  13    โ”‚ 5.85  โ”‚ Hello World  โ† best guess
๐ŸŒ subdomains โ€” Find subdomains (3 methods combined)
devha subdomains <domain> [--method wordlist|crt|hackertarget|all]

Combines wordlist DNS brute-force, crt.sh Certificate Transparency logs, and the HackerTarget API. Results are deduplicated.

๐Ÿ“ dirscan โ€” Discover hidden paths
devha dirscan <url> [--threads 50] [--extensions php,html] [--rate 10] [--yes]

Sends async HEAD requests to 500+ common paths. Only shows interesting status codes (200, 301, 401, 403โ€ฆ). Rate-limited by default.

โš ๏ธ Always requires ethics confirmation.

๐Ÿ•ธ๏ธ crawl โ€” Extract emails, links, secrets
devha crawl <url> [--depth 2] [--ignore-robots] [--yes]

Crawls internal links up to the specified depth. Extracts emails, phone numbers, social links, external links, and potential API key patterns from JS files. Respects robots.txt by default.

๐Ÿ“ง harvest โ€” OSINT email/subdomain harvester
devha harvest <domain> [--timeout 15]

Collects publicly available emails (DuckDuckGo), subdomains (crt.sh), and employee names (LinkedIn snippets). Public data only โ€” no credentials accessed.

๐Ÿ›ก๏ธ headers โ€” Security header audit
devha headers <url> [--json]

Fetches all response headers and audits the presence of 6 critical security headers:

  • Content-Security-Policy
  • Strict-Transport-Security
  • X-Content-Type-Options
  • X-Frame-Options
  • Referrer-Policy
  • Permissions-Policy

Outputs a โ˜…โ˜…โ˜…โ˜…โ˜…โ˜† score with explanations for missing headers.

๐Ÿ“ ping โ€” Educational packet-level ICMP
sudo devha ping <host> [--count 4] [--show-packet] [--timeout 2]

Uses Scapy to send raw ICMP packets and shows TTL, RTT, and size. --show-packet displays the full packet summary for learning purposes.

โš ๏ธ Requires root/admin on most systems.


โš™๏ธ Configuration

devha reads optional defaults from ~/.config/devha/config.toml:

[defaults]
threads = 100
timeout = 5.0
user_agent = "devha/0.1.0"

[colors]
banner  = "cyan"
success = "bright_green"
warning = "yellow"
error   = "bright_red"

You can also use devha --no-banner to hide the ASCII banner for cleaner output in CI/scripting contexts.


โš–๏ธ Ethical Use

devha is a learning tool. Use it to understand networks and security โ€” not to break things.

โœ… Allowed

  • Your own systems and networks
  • Legal practice ranges: scanme.nmap.org, HackTheBox, TryHackMe, PicoCTF
  • Targets where you have explicit written permission (bug bounties, pentesting contracts)
  • Public APIs that openly allow it (GitHub, crt.sh, etc.)

โŒ Not allowed

  • Scanning, crawling, or harvesting systems you don't own without permission
  • Any activity that violates the Computer Fraud and Abuse Act (US), Computer Misuse Act (UK), Wet computercriminaliteit (NL), or your local equivalent

Every active-scan command in devha shows a confirmation prompt before sending traffic. You waive your right to claim ignorance the moment you press y. Don't be that person.

The maintainers are not responsible for misuse. Be smart, be legal, be kind.


๐Ÿค Contributing

Contributions are very welcome โ€” especially:

  • ๐ŸŒ New sites for the username checker (just edit devha/data/sites.json)
  • ๐Ÿ“ Better wordlists for subdomains and dirscan
  • ๐ŸŽจ New ciphers (Playfair, Hill, Enigma?)
  • ๐Ÿ› Bug fixes & test coverage
  • ๐Ÿ“– Translations of the README
git clone https://github.com/waldex451/devha.git
cd devha
poetry install
poetry run pytest

See CONTRIBUTING.md for details.


๐Ÿ—บ๏ธ Roadmap

  • devha tui โ€” Textual super-interface combining all commands
  • devha update-data โ€” refresh wordlists from SecLists
  • Shell completions (bash, zsh, fish, PowerShell)
  • More cipher types (Enigma, Playfair, Hill)
  • Plugin system for community-contributed commands
  • Integration with Have-I-Been-Pwned for username checks

Vote for features in Discussions or open an issue.


๐Ÿ™ Acknowledgements

devha stands on the shoulders of giants:

  • ๐Ÿฆธ Sherlock โ€” for proving one CLI can have 60k+ stars
  • ๐ŸŒ Sublist3r โ€” subdomain enum done right
  • ๐Ÿ“ dirsearch โ€” directory discovery
  • ๐Ÿ•ท๏ธ Photon โ€” fast crawler
  • ๐ŸŒพ theHarvester โ€” OSINT classic
  • ๐Ÿ“ฆ Scapy โ€” packet magic in Python
  • ๐ŸŽจ Rich โ€” for making Python terminals beautiful
  • โŒจ๏ธ Typer โ€” for the cleanest CLI framework around

๐Ÿ“œ License

MIT ยฉ waldex451 โ€” see LICENSE.


โญ If devha saved you a few pip installs, consider giving it a star โ€” it really helps!

Made with ๐Ÿ and a healthy obsession with terminal aesthetics.

About

๐Ÿ›ก๏ธ All-in-one developer & ethical hacking CLI. Port scan, username lookup, subdomain enum, directory bruteforce, OSINT crawl, cipher tools and more โ€” in one beautiful terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors