Kali · Vuln Scanning

Termux Hub · Kali Linux

Kali Vulnerability Scanning & Forensics Scripts

Vulnerability scanning and forensics — Nmap vulnerability scripts, Nikto and WPScan wrappers, CVE database lookup, steganography detection, packet capture and file integrity monitoring for incident response.

Kali · Vuln Scanning — script list

ScriptCategoryWhat it does
ssh_log_analyzer.pyForensicsExtracts IPs with repeated failed SSH logins from a mock `auth.log`.
malware_hash_checker.pyForensicsHashes files in a directory and compares them to known signatures.
packet_sniffer_scapy_basic.pyForensicsCaptures and summarises local packets with Scapy.
steganography_detector.pyForensicsDetects data appended after an image's end-of-file marker.
termux_environment_checker.pyEnvironmentValidates packages, tools, and paths for a Termux environment.
cve_database_lookup.pyVuln ScanningQueries a local JSON database for CVE details.
port_scanner_banner_grab.pyVuln ScanningMulti-threaded port scan with service banner grabbing.
subdomain_takeover_check.pyVuln ScanningChecks subdomains for dangling-CNAME takeover risk.
vulnerability_report_generator.pyReportingFormats scan results into a readable text/PDF report.
api_endpoint_fuzzer.pyVuln ScanningFuzzes common API paths and reports `200 OK` responses.
kali_usb_persistence_check.shForensicsVerifies partition health and mount status of a persistent Kali USB.
outbound_connection_monitor.shForensicsLogs suspicious outbound connections via `ss`/`netstat`.
file_integrity_monitor.shForensicsCron-friendly hashing of critical files with change alerts.
firewall_iptables_setup.shHardeningConfigures basic defensive iptables rules (default-drop inbound).
suspicious_process_hunter.shForensicsFlags high-resource or suspiciously-located processes.
nmap_vuln_automator.shVuln ScanningRuns Nmap with `--script vuln` and formats the output.
nikto_web_scanner_wrapper.shVuln ScanningAutomates Nikto scans and saves timestamped output.
wp_scan_updater.shVuln ScanningUpdates the WPScan database and runs basic enumeration.
ssh_audit_tool.shVuln ScanningChecks SSH config for weak ciphers and root login.
daily_security_summary.shReportingCompiles prior script output into a daily summary.

Code samples

nmap_vuln_automator.sh — Nmap --script vuln wrapper

#!/bin/bash

# Day 10: Nmap Vulnerability Automator
# Wraps Nmap with the --script vuln flag and formats the output.

TARGET=$1

if [ -z "$TARGET" ]; then
    echo "Usage: $0 <target_ip_or_domain>"
    exit 0
fi

OUTPUT_FILE="nmap_vuln_$(date +%Y%m%d_%H%M%S).txt"

echo "[*] Starting Nmap Vulnerability Scan on $TARGET..."
echo "[*] Using scripts: vuln, auth, discovery"

# In a real Kali environment, this command would run:
# nmap -Pn --script vuln,auth,discovery -oN "$OUTPUT_FILE" "$TARGET"

# Mock output for demonstration
echo "--- Nmap Vuln Scan Results for $TARGET ---" > "$OUTPUT_FILE"
echo "Scan Date: $(date)" >> "$OUTPUT_FILE"
echo "Host is up." >> "$OUTPUT_FILE"
echo "PORT   STATE SERVICE" >> "$OUTPUT_FILE"
echo "80/tcp open  http" >> "$OUTPUT_FILE"
echo "|_http-vuln-cve2017-10010: VULNERABLE" >> "$OUTPUT_FILE"
echo "22/tcp open  ssh" >> "$OUTPUT_FILE"

echo "[+] Scan complete. Results saved to $OUTPUT_FILE"
cat "$OUTPUT_FILE"

Related pages

View the full toolkit on GitHub

Explore Termux Hub

Kali Toolkit

Toolkit home (145 scripts) Foundations Network recon Defensive monitoring Vulnerability scanning Enumeration System hardening

Termux tool guides

Apache Brutus Cloudflare Cool Commands Cpp Findomain Fsociety Geo Recon Ghost Eye Hacktronian Ipicker Javascript John Local Server Manjaro Naabu Ncat Nmap Nordvpn Onex Pydictor Python Quasar Recondog Subfinder Termux Banner Ubuntu Gui Wafw00F Web Recon

Learn

Home Termux cheatsheet Python JavaScript C++ Cool Termux commands About Termux Hub