A comprehensive collection of Bash-based automation scripts for security reconnaissance, infrastructure analysis, web application testing, and Android APK inspection.
Purpose: Streamline bug bounty workflows, penetration testing, and authorized security assessments through automated reconnaissance and vulnerability discovery.
β οΈ Legal Notice: These scripts are intended for authorized security testing, bug bounty research, and educational learning only. Do not use against systems you do not own or are not authorized to assess. Users are solely responsible for compliance with local laws and organizational policies.
Bash-Script-Automation/
βββ setup_tools.sh # Tool installer & dependency checker
βββ recon.sh # Main bug bounty recon automation
βββ infra_automator.sh # Infrastructure & network reconnaissance
βββ pt_automator.sh # Full pentesting automation (web + APK)
βββ bugbountyx.sh # Smart bug bounty hunter
βββ Recon.sh # Generic APK/app content recon
βββ APKRecon.sh # Specialized Android APK analysis
βββ reports/ # Auto-generated output directory
βββ README.md
chmod +x setup_tools.sh
./setup_tools.shThis installs all required tools: subfinder, httpx, nuclei, ffuf, apktool, jadx, and more.
chmod +x recon.sh
./recon.sh -d example.comcat reports/web_example.com_*/FINAL_REPORT.mdPurpose: Ensures all dependencies are installed and configured.
Features:
- β Checks for Go, Python3, git, curl, jq
- π¦ Installs 30+ security tools via apt, pip, and Go
- π§ Configures paths and wordlists
- π Displays summary of installation status
Usage:
./setup_tools.sh # Auto-install missing tools
./setup_tools.sh --check-only # Only check what's missing
./setup_tools.sh --force # Reinstall all tools
./setup_tools.sh --quiet # Suppress outputInstalls:
- Subdomain Enumeration: subfinder, assetfinder, amass, findomain
- Live Host Probing: httpx, httprobe, naabu, aquatone
- DNS & Infrastructure: dnsx, massdns, asnmap, whois
- Endpoint Discovery: gau, waybackurls, katana, hakrawler, subjs
- Vulnerability Scanning: nuclei, dalfox, ffuf, arjun, sqlmap
- Subdomain Takeover: subzy, subjack
- Python Tools: SecretFinder, Corsy, LinkFinder
- Wordlists: SecLists (~1GB), Nuclei templates, gf patterns, DNS resolvers
Purpose: Complete web reconnaissance and vulnerability discovery workflow.
Features:
- π 7-phase automated workflow
- π Structured output with markdown reports
- π― Supports passive and active scanning modes
- π Discord webhook notifications
- β‘ Configurable threading and rate limiting
Phases:
- Subdomain Enumeration β subfinder, assetfinder, amass, crt.sh, Wayback
- Live Host Probing β httpx fingerprinting + technology detection
- DNS & Infrastructure β dnsx, whois, ASN mapping, Shodan
- Endpoint & JS Recon β gau, waybackurls, katana, hakrawler, SecretFinder
- Vulnerability Scanning β nuclei, dalfox (XSS), directory fuzzing
- Subdomain Takeover β subzy, subjack, nuclei takeover templates
- Report Generation β Markdown summary with all findings
Usage:
./recon.sh -d example.com # Full recon
./recon.sh -d example.com --quick # Fast tools only
./recon.sh -d example.com --passive # No active scanning
./recon.sh -d example.com -w https://discord.com/api/... # With webhook
./recon.sh -d example.com --skip-vuln --skip-screens # Skip slow phasesOutput Structure:
results/example.com/
βββ subdomains/ (all.txt, subfinder.txt, crtsh.txt, wayback_subs.txt)
βββ live/ (live_urls.txt, httpx.json)
βββ dns/ (resolved.txt, cnames.txt, whois.txt)
βββ endpoints/ (all.txt, gau.txt, katana.txt, wayback.txt)
βββ js/ (jsfiles.txt, secrets.txt)
βββ vulns/ (nuclei.txt, xss_params.txt, nuclei.json)
βββ screenshots/ (aquatone screenshots)
βββ reports/ (FINAL_REPORT.md)
Purpose: Network-level reconnaissance and infrastructure mapping.
Features:
- π DNS footprinting (WHOIS, dig, dnsrecon, zone transfers)
- π Full port scanning (nmap all 65535 ports)
- π Service version detection
- π‘οΈ Protocol deep-dives (SMB, RPC, SSL/TLS)
- π Interactive menu system
Workflow:
Dependencies Check β DNS WHOIS β Zone Transfer Attempts β
Nmap All Ports β Service Detection β Vulnerability Scanning β
SMB/RPC/SSL Analysis β Report Generation
Usage:
./infra_automator.sh
# Then choose from menu:
# 1) Run Dependency Check
# 2) Network Footprinting & DNS
# 3) Nmap Full Assault (all 65535 ports)
# 4) Protocol Deep Dive (SMB, RPC, SSL)
# 5) Exit ConsoleOutput:
reports/infra_example.com_TIMESTAMP/
βββ whois.txt
βββ dig_any.txt
βββ zone_transfer_attempt.txt
βββ dnsrecon.txt
βββ nmap_all_ports.txt
βββ nmap_services.txt
βββ nmap_vulns.txt
βββ smb_enum.txt
βββ ssl_tls_scan.txt
βββ rpc_info.txt
Purpose: Comprehensive pentesting framework for web + Android targets.
Features:
- π― 8-step automated web exploitation
- π± Android APK reverse engineering
- π Subdomain discovery + takeover checks
- π Fuzzing, crawling, parameter extraction
- π Parallel vulnerability scanning (Nuclei, Dalfox, SQLMap)
- π Raw findings markdown reports
Web Scanning Pipeline:
- Subdomain enumeration (subfinder, assetfinder, crt.sh)
- Subdomain takeover checks (subjack)
- Live host resolution (httpx)
- Directory & API fuzzing (ffuf)
- Deep web crawling (katana)
- Wayback Machine endpoint discovery
- XSS/SQLi-focused parameter testing
- Port scanning + JavaScript secret extraction
- Nuclei vulnerability scanning
- Report generation with findings categorized by severity
Android Scanning Pipeline:
- APK unpacking (apktool)
- Java decompilation (jadx)
- Regex-based secret extraction (API keys, JWTs, credentials)
- Exported components & deep links mapping
- Summary report generation
Usage:
./pt_automator.sh
# Menu options:
# 1) Bootstrap: Install Dependencies & Wordlists
# 2) Web App Autopilot (Full web scanning)
# 3) Android APK Autopilot (APK reverse engineering)
# 4) Exit ConsoleOutput:
reports/web_example.com_TIMESTAMP/FINAL_REPORT.md # Web findings
reports/android_app.apk_TIMESTAMP/FINAL_REPORT.md # APK findings
Purpose: Streamlined bug bounty workflow with intelligent prioritization.
Features:
- π― 4-phase optimized workflow
- π° Severity-based prioritization (Critical β Medium/Low)
- β‘ Parallel vulnerability scanning
- π Smart parameter filtering (SSRF/LFI vs XSS)
- π Single ranked bounty report
Phases:
- Omnidirectional Recon β Subdomains, live hosts, endpoints
- Smart Filtering β Separate critical (SSRF/LFI) from high (XSS) parameters
- Multi-Threaded Scanning β Subjack, Dalfox, SQLMap, Nuclei in parallel
- Report Generation β Findings ranked by potential bounty value
Usage:
./bugbountyx.sh example.com
# or
./bugbountyx.sh
# then enter domain when promptedReport Sections:
- π΄ CRITICAL FINDINGS ($1000+ potential) β SQLi, RCE, SSRF, CVEs
- π HIGH FINDINGS ($500+ potential) β CVEs, takeovers, XSS
- π‘ MEDIUM/LOW FINDINGS β Info disclosures, misconfigs
- π― TOP TARGETS β Admin, login, API endpoints for manual testing
Purpose: Static analysis of any APK or app archive for sensitive data.
Features:
- π¦ Unzips and processes all files (text + binary)
- π Extracts URLs, API endpoints, secrets, JWTs, private keys
- π Firebase, cloud storage, and credential detection
- π― MIME-type aware processing (avoids binary noise)
- π Categorized output files
Detections:
- URLs (https://...)
- API endpoints (/api/, /v1/, /auth/, etc.)
- API keys (Google, AWS, Stripe)
- Firebase references
- Cloud storage buckets
- JWT-like tokens
- Private key markers
- Secrets keywords
Usage:
./Recon.sh app.apkOutput:
app_recon/
βββ urls.txt
βββ api_endpoints.txt
βββ keys_secrets.txt
βββ firebase_matches.txt
βββ cloud_storage.txt
βββ jwts.txt
βββ private_keys_markers.txt
βββ smali_references.txt
βββ strings_all_extracted.txt
βββ summary.txt
Purpose: Specialized reconnaissance for Android applications.
Features:
- π± APK unpacking and manifest extraction
- π§ Smali bytecode analysis
- π Hardcoded secrets detection
- π Exported components mapping
- π Deep link discovery
- π Permission analysis
Detections:
- Google API keys
- AWS credentials (AKIA keys)
- Firebase endpoints
- JWT tokens
- Private keys
- Cloud service references
- Exported Android components
- Deep link schemes
Usage:
./APKRecon.sh com.example.app.apkOutput:
com.example.app_recon/
βββ apk_unzipped/ (full APK extraction)
βββ urls.txt (extracted URLs)
βββ api_endpoints.txt (API routes)
βββ critical_secrets.txt (API keys, JWTs, tokens)
βββ firebase_matches.txt (Firebase references)
βββ deeplinks.txt (deep link schemes)
βββ exported_components.txt (exported activities/services)
βββ summary.txt (analysis summary)
- subfinder β Multi-source passive enumeration (ProjectDiscovery)
- assetfinder β Certificate transparency & common sources
- amass β OWASP comprehensive network mapping
- findomain β Fast alternative with good coverage
- crt.sh β Certificate transparency queries
- Wayback Machine β Historical subdomain extraction
- httpx β Probe & fingerprint with tech detection
- httprobe β Simple HTTP probe verification
- naabu β Fast port scanner (top 1000 ports)
- aquatone β Screenshot capture & visualization
- dnsx β DNS resolution + CNAME extraction
- massdns β Subdomain resolution at scale
- asnmap β ASN range mapping
- whois β WHOIS lookups
- Shodan β Shodan API queries
- gau β Wayback + CommonCrawl + OTX URLs
- waybackurls β Wayback Machine endpoints
- katana β Active web crawling (depth control)
- hakrawler β Recursive crawling
- subjs β JavaScript file discovery
- gf β Grep patterns for parameters
- nuclei β Template-based vulnerability scanner
- dalfox β XSS detection & verification
- ffuf β Directory & parameter fuzzing
- arjun β Hidden parameter discovery
- sqlmap β SQL injection detection
- subzy β Fast takeover detection
- subjack β Cross-platform takeover scanner
- apktool β APK unpacking & repackaging
- jadx β Java decompiler for APKs
- strings β Extract readable strings from binaries
- SecretFinder β JavaScript secret extraction
- Corsy β CORS misconfiguration scanning
- LinkFinder β JavaScript endpoint discovery
1. ./setup_tools.sh # One-time setup
2. ./bugbountyx.sh example.com # Fast prioritized scan
3. Review CRITICAL findings # Focus on high bounty items
4. Manual validation # Confirm & exploit
1. ./setup_tools.sh # One-time setup
2. ./infra_automator.sh # Network reconnaissance
3. ./recon.sh -d target.com # Deep web assessment
4. ./pt_automator.sh # Full exploitation automation
5. Review reports in ./reports/ # Consolidated findings
1. ./setup_tools.sh # Tool installation
2. ./Recon.sh app.apk # Generic content analysis
3. ./APKRecon.sh app.apk # Specialized APK analysis
4. Manual code review # Deep-dive into findings
export DISCORD_WEBHOOK="https://discord.com/api/webhooks/..." # Real-time notifications
export SHODAN_API_KEY="your_key_here" # Shodan queries
export WORDLIST_DIR="$HOME/wordlists" # Custom wordlist path
export NUCLEI_TEMPLATES="$HOME/nuclei-templates" # Template path./recon.sh -d example.com -o ./custom_output/ # Custom output dir
./recon.sh -d example.com -t 100 # Custom threads
./recon.sh -d example.com --passive # Passive mode only
./recon.sh -d example.com --quick # Fast tools only./reports/
βββ web_example.com_20260101_120000/
β βββ FINAL_REPORT.md
β βββ subdomains/
β βββ live/
β βββ endpoints/
β βββ vulns/
β βββ js/
βββ infra_192.168.1.1_20260101_120000/
β βββ nmap_all_ports.txt
β βββ nmap_services.txt
β βββ nmap_vulns.txt
β βββ ...
βββ android_app.apk_20260101_120000/
βββ FINAL_REPORT.md
βββ ...
- Findings Summary β Counts by category
- Critical Vulnerabilities β High-priority issues
- Endpoints & Parameters β Attack surface mapping
- Technology Stack β Fingerprinted technologies
- Subdomains & IPs β Infrastructure mapping
- Secrets & Keys β Extracted credentials (sanitized for review)
Authorization Required:
- Only use these scripts against systems you own or have explicit written permission to test
- Unauthorized access to computer systems is illegal in most jurisdictions
Compliance:
- Comply with local laws (CFAA in US, CMA 2000 in UK, etc.)
- Follow organizational security policies and bug bounty program rules
- Respect rate limits and avoid DoS-level activity
- Keep findings confidential until disclosure window
Responsible Disclosure:
- Report critical findings through official bug bounty channels
- Allow vendors reasonable time to patch (30-90 days typical)
- Document all steps for reproducibility
./recon.sh -d company.com -w "$DISCORD_WEBHOOK"
# Wait for completion
cat reports/web_company.com_*/FINAL_REPORT.md./APKRecon.sh ~/Downloads/app.apk
cat app_recon/critical_secrets.txt./infra_automator.sh
# Choose option 3 for full Nmap assault
# Results in reports/infra_*/ directoryTo extend this repository:
- Keep scripts POSIX-compatible where possible
- Avoid hardcoded paths; use environment variables
- Add comprehensive logging and error handling
- Maintain organized output directory structures
- Update this README for new features
- Include usage examples for new scripts
This project does not currently declare a license. Before redistributing or sharing these tools, confirm legal permissions and ensure compliance with open-source licenses of included tools.
Common Issues:
-
Tools not found after install:
export PATH="$PATH:$HOME/go/bin" echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc
-
Permission denied on scripts:
chmod +x *.sh -
Too many requests (rate limiting):
- Reduce
THREADSandRATE_LIMITvariables - Add delays between scans
- Reduce
-
Out of memory:
- Use
--quickmode - Reduce thread count with
-t
- Use
This toolkit combines 8 specialized Bash automation scripts providing:
- Complete Web Reconnaissance (recon.sh)
- Infrastructure Mapping (infra_automator.sh)
- Full Pentesting Automation (pt_automator.sh)
- Bug Bounty Optimization (bugbountyx.sh)
- Android Analysis (APKRecon.sh, Recon.sh)
- Dependency Management (setup_tools.sh)
Together, they streamline authorized security assessments from reconnaissance through exploitation.
Last Updated: October 2026
Maintained by: Decentralized3
GitHub: https://github.com/Decentralized3/Bash-Script-Automation