dumbtv
dumbtv takes the ads, screen tracking and update nags out of your Fire TV over ADB. No root, none of your apps touched, every step can be undone. Free and open source.
翻译准备中
Custom Bash and Python scripts used to automate various penetration testing tasks including recon, scanning, enumeration, and malicious payload creation using Metasploit. For use with Ubuntu. Limited
翻译准备中
安全Shell · PythonGitHub @leebaird自行安装运营者未确认
试用过了吗? 点一下就好,无需登录。
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
安装型项目无需部署域名也可验证。个人仓库可通过 GitHub 登录验证,组织仓库可使用上方的仓库验证文件。
用于自动化各种渗透测试任务的自定义 Bash 和 Python 脚本,包括信息收集、扫描、枚举以及使用 Metasploit 创建恶意载荷。适用于 Ubuntu,对 Kali Linux 的支持有限。
AI 翻译
Custom Bash and Python scripts used to automate various penetration testing tasks including recon, scanning, enumeration, and malicious payload creation using Metasploit. For use with Ubuntu. Limited support for Kali Linux.
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Custom Bash and Python scripts used to automate various penetration testing tasks including recon, scanning, enumeration, and malicious payload creation using Metasploit. For use with Ubuntu. Limited support for Kali Linux.
• Lee Baird @discoverscripts
• Jay "L1ghtn1ng" Townsend @jay_townsend1
• Download to your home directory.查看完整 README ↗Custom Bash and Python scripts used to automate various penetration testing tasks including recon, scanning, enumeration, and malicious payload creation using Metasploit. For use with Ubuntu. Limited support for Kali Linux.
cd ~
git clone https://github.com/leebaird/discover
cd discover/
./discover.sh
~/.discover/operator-name. That name is written on every engagement audit log line. To change it later, edit or delete that file and restart Discover.config/zshrc)cd ~/discover/config/
./install.sh
| Host | What install.sh does |
|---|---|
| Ubuntu / other (incl. macOS) | Copies zshrc to ~/.bash_aliases and sources it |
Kali (detected via /etc/os-release) | Appends zshrc to ~/.zshrc |
Also installs tmux.conf to ~/.tmux.conf and vimrc to ~/.vimrc.
Useful commands (after install / new shell):
| Command | Purpose |
|---|---|
n | Network summary (external/internal IP, DNS, MAC, iface; ss without TIME-WAIT; ping 8.8.8.8) |
s | cd ~/discover and short git status (no pull) |
m / ms | Start MSF DB + console / stop MSF DB |
web / web2 | HTTP server on port 80 (sudo) / 8000 |
now | Formatted date/time (does not override date) |
update | Grok update + full apt upgrade chain |
bh, th, smb, sip | BloodHound, theHarvester, smbserver, IP sort |
Network identity (IPs, DNS, MAC) is computed when you run n / web / upload — not at shell startup — so new shells stay fast and values stay current after VPN/wifi changes.
Notes
~/.bash_aliases with the repo copy.install.sh appends again and can duplicate the block; edit ~/.zshrc or install only once.~/.bash_aliases unless you source it from ~/.zshrc.RECON
1. Domain
2. Person
SCANNING
3. Generate target list
4. CIDR
5. List
6. IP, range, or URL
7. Rerun Nmap scripts and MSF aux
WEB
8. Insecure direct object reference
9. Open multiple tabs in Firefox
10. Nikto
11. SSL
MISC
12. Generate a malicious payload
13. Start a Metasploit listener
14. CVE lookup
15. Parse XML
16. Dev
17. Notes
18. Update
19. Exit
RECON
1. Passive
2. Breaches
3. Find registered domains
4. Google dorks
5. Web search
6. Active
7. Open report
8. Previous menu
Note: Passive and Active cannot be run as root.
$HOME/data/<domain>/ HTML report.Uses Amass, ARIN, DNSRecon, dnstwist, Metasploit, subfinder, Shodan CTL (free CT hostnames; no API key), theHarvester, Whois, and multiple websites.
$HOME/.theHarvester/api-keys.yaml).$HOME/data/<domain>/.pages/registered-domains.htm in an existing report. A domain with no registration email is left off the page.tools/company-manual.tsv override); social profile links when found.On Reports > Audit, Import (Discover-hosted only) targets the current engagement.
| Choice | What it does |
|---|---|
| Operator scans | Merge another operator’s unpacked report (host-scans, screenshots, Active data, their audit lines) |
| Names | Merge tools/names-manual.tsv (Name, Title, Phone; # comments; filled title/phone win) |
| Names, titles, and emails | Merge an external names dump into Names and Emails |
| Subdomains | Existing sources (Firefox / Pentest-Tools / TSV) or CSV subdomain,ip,category; optional Active on new public hosts |
CLI (same backends):
bash recon/import-names.sh --report /home/user/data/example.com --json
bash recon/import-names-titles-emails.sh --report /home/user/data/example.com --source /path/to/dump --json
bash recon/import-subdomains.sh --report /home/user/data/example.com \
--mode team-csv --import /home/user/team-hosts.csv --json
# existing: --mode existing --import firefox|/path/to/export
# optional CSV: --run-active
CSV list skips hosts already in tools/subdomains. Empty IP then dig. A host addressed 1.1.1.1, or one that resolves to 1.1.1.1, is left out. Category: Discover rules first, else CSV. Never writes recon/subdomain-categories.tsv.
Domain menu option 6. Run after Passive (and optionally Import subdomains).
Enter the location of a previous Discover scan:
/home/user/data/example.com
tools/subdomains (stored RFC1918 skipped).dig A @1.1.1.1 before httpx. A private, loopback, link-local, or 0.0.0.0 answer is left out of httpx and added to tools/private-subs (tools/dns-private.tsv). The stored public IP is not changed. VPN DNS is not used.tools/httpx.jsonl); alive = 200–399, 401, 403, or 405.recon/active-tech.py.Artifacts live under tools/ (httpx.jsonl, whatweb.json, gowitness/, software-cves-cache.json).
In operator mode only (report opened via Open report / Active at http://127.0.0.1:17322/…), Subdomains public rows with an HTTP status get a host-scan expand control (also on ?software= / ?cve= filtered views). Manual file:// open never shows chevrons. Export → Client is the exception: that package shows the same tool menu without Run and without the ⓘ button, and TXT / HTM / WEB are ordinary links (WEB opens web.htm). Expandable rows show host-scan boxes (quietest to loudest):
| Tool | Role | When shown |
|---|---|---|
| robots | Fetch /robots.txt and list Disallow paths (same idea as multiTabs, then Directories in robots.txt); TXT = raw body, WEB = open Disallow dirs in Firefox (Client export: web.htm) | Always on expand |
| nmap | TCP-only: nmap -Pn -n --open -sTV -p <ports> --stats-every 20 <host>. With UDP: sudo nmap --privileged -Pn -n --open -sTV -sUV -p T:<tcp>,U:<udp> --stats-every 20 <host> (Shodan transport, else Discover UDP= list; port 53 always TCP+UDP). UDP prompts for sudo in the host-scan terminal if needed. If raw UDP sendto is blocked (often VPN/TUN), TXT warns and does not keep tcpwrapped as a UDP fingerprint. TXT; web opens each http/https SERVICE in Firefox (ssl/unknown as https; Client export: web.htm) | Gated: Shodan ports for that IP, or the row URL is http/https (80 or 443 even if Shodan is empty). No HTTP pre-check |
| nuclei | Template recon (product tags) then auto Pass 2 CVE/KEV from the engagement software-CVE cache + CISA KEV (local nuclei templates only) | Gated: product known via ?software= or row fingerprint (Technologies / title / web server / hostname). Hidden when no product is known |
| droopescan | CMS enum (scan drupal / ...; -e a -t 4 --hide-progressbar); TXT drops percent-bar lines | Gated: supported CMS from ?software= or row fingerprint (Drupal, Joomla, Moodle, Silverstripe — not WordPress) |
| WPScan | WordPress checks (passive plugin detection + moderate enum) | Gated: WordPress from ?software= or row fingerprint. Optional WPSCAN_API_TOKEN for vuln DB |
| nikto | Web server checks (request timeout 5s, FAILURES=8, maxtime 8m, hard stop 9m); report TXT + HTM when the scan actually ran | Always on expand |
| transom |
Each box shows the tool name and a blue Run button on one line, plus last-run time and green output buttons (TXT / HTM / WEB as applicable). A Unicode ⓘ in the top-right of each box opens a modal explaining what the tool does, when it appears, what Run does, safety check, and outputs. Export → Client omits Run and ⓘ.
Reachability pre-check (HTTP expand tools): before nuclei, droopescan, wpscan, robots, nikto, transom, ffuf, or feroxbuster launches, misc/run-host-scan.sh runs a curl HTTP/1.1 GET (15s max, same User-Agent as the scan). One request records status and time; a 000 result is retried once. robots probes {origin}/robots.txt (not the site root), so a slow or 403 homepage does not skip a working robots.txt. If the probe does not answer HTTP, Discover does not run the tool. The run’s output.txt records the skip, status.json / latest.json set skip_reason=host_unreachable, and the box shows Unreachable (red) with a TXT note. Nikto and Transom do not show HTM on that skip, and robots does not show WEB (no report / no Disallow list). nmap does not use this gate (Shodan ports and/or the row HTTP port).
Google Sheet (optional): Audit Config > Google Sheet stores a spreadsheet URL for this engagement (tools/op-notes-url). Host-scan Start appends one row. Active appends one row when the scan finishes: the engagement domain, active recon (or active recon on imported hosts), and the probed and alive counts. Authorize in that panel. Empty URL means off and does not stop the scan. Append uses uv (Discover install). A missing uv, missing token, or failed write prints on the scan and stops it. Host-scan writes the row before the tool starts. nmap checks the sheet first and writes the PORT table after the scan. nuclei writes None in column F when the report’s last line is No vulnerabilities discovered. transom writes each software version from transom.htm into that same cell, one Product:version label per line, and writes a disclosed internal address on its own line. Active checks the sheet before probes and writes one row when the scan finishes. Client/defender exports omit the URL file.
Active Scope: public / private / responding hosts. Status codes count all httpx responses; screenshots, whatweb, and Categories use the alive subset.
Audit Config > APIs (or ~/.discover/api-keys, chmod 600). Shell export wins if set. Update seeds the file from resource/api-keys.example when missing.
| Variable | Purpose |
|---|---|
NVD_API_KEY | Faster Active CVSS (still runs without a key, slower). Request a key |
DISCOVER_SKIP_CVE=1 | Skip NVD queries; Software table still lists versions |
SHODAN_API_KEY | Active Enrich (Shodan). Membership key; host lookups do not use query credits. Account |
WPSCAN_API_TOKEN | Optional WPScan vuln DB |
X_API_KEY | Optional X bearer token for Alerts. Set in Audit Config > X, not the APIs panel. Developer account |
GITHUB_TOKEN | Optional. Raises the Alerts GitHub search limit. Edit ~/.discover/api-keys. The check runs without it. A token that can read public repositories is enough |
theHarvester keys stay in ~/.theHarvester/api-keys.yaml (Config APIs has a link). Saving APIs leaves X_API_KEY and GITHUB_TOKEN unchanged. CVSS values are triage leads from NVD CPE, not confirmed findings.
Shodan: Report > Active > Enrich after Active. Looks up public IPs from tools/httpx.jsonl. Without a key the flow soft-skips.
KEV: Active Enrich (KEVs checkbox) or Update downloads CISA KEV to resource/kevs.json. Enrich also rewrites tools/shodan/kev-ids.js for the open report and refreshes Active badges. Open report rewrites that file when Shodan artifacts exist (no Shodan re-query). Active Software Top CVE prefers a KEV match when present (orange KEV badge).
Report > Active, when the report is open through Discover (http://127.0.0.1:17322/). Alerts sits immediately left of Enrich. The label shows the unreviewed count (Alerts 3). A manual file:// open and Export → Client do not show the button.
The list covers software already in this report's Software versions. It shows Last check as mm/dd/yyyy - hh:mm in the Config time zone (Z when that zone is UTC). No check yet says No check yet. An empty list says No alerts yet.
Check now is the only way a check starts. Opening the report, opening Active, and opening the list do not start one. While it runs, the status adds one line per source: [*] Checking NVD. then KEV, advisories, GitHub, Metasploit, and the X accounts configured for this user ([*] Checking 4 X accounts. One account uses the singular). Check now stays disabled. Close stays available. When the check finishes, a blank line and then Check finished are added under those lines. The source lines stay.
A row opens that alert. Back, the header close, or Escape marks it reviewed and returns to the list. Close on the list leaves it unreviewed.
Sources: NVD, CISA KEV, CISA advisories, Exploit-DB, WordPress and Drupal security feeds when that product is in the report, public GitHub exploit repositories, Metasploit exploit modules installed on this machine, and posts from the X accounts in Config. A Metasploit alert means the local module list names that CVE. The check reads that list. Advisories are the CISA feed and Exploit-DB on every check. WordPress and Drupal are added only when that product is in Software versions. The first check only records what is already public. Later checks add alerts. Lookups use product and CVE identifiers. The client domain is not sent. Nothing is written to the audit log.
Config > X stores the bearer token and the account list (~/.discover/x-accounts) for this user. Optional GITHUB_TOKEN in ~/.discover/api-keys raises the GitHub search limit.
Domain menu 7. Reopen an existing report (does not re-run Passive/Active). Saves the path to ~/.discover/current-report, refreshes Audit, syncs host-scan assets, refreshes KEV badges if Shodan artifacts exist, and opens the report in a browser.
Discover-hosted Report > Audit > Export. Default output directory $HOME/data. Filename YYYYMMDD-HHMM uses the Config Time zone. Ledger and audit line stay UTC.
| Kind | Package |
|---|---|
| Client | HTML ZIP; operator IPs included; scans disabled |
| Defender | Audit log CSV only |
| Operator | Full HTML ZIP; IPs included; launches enabled |
Client and Defender packages omit tools/threat-feed/. Operator export keeps it.
Reports > Audit. Config (hosted only): Operator name, Time zone (display and metrics only; stamps stay UTC), APIs, Google Sheet, X. X opens its own modal for this user's bearer token and the accounts to watch. Delete on log rows (hosted only). Import as above.
RECON
First name:
Last name:
SCANNING
1. ARP scan
2. Ping sweep
3. Previous menu
Type of scan:
1. External
2. Internal
3. Previous menu
Using Burp, authenticate to a site, map & Spider, then log out.
Target > Site map > select the URL > right click > Copy URLs in
this host. Paste the results into a new file.
Enter the location of your file:
Open multiple tabs in Firefox with:
1. List
2. Files in a directory
3. Directories in robots.txt
4. Previous menu
Examples:
robots.txt, then open listed directoriesThis option cannot be run as root.
Run multiple instances of Nikto in parallel.
1. List of IPs
2. List of IP:port
3. Previous menu
Check for SSL certificate issues.
List of IP:port.
Enter the location of your file:
Main menu option 12.
Malicious Payloads
1. android/meterpreter/reverse_tcp (.apk)
2. cmd/windows/reverse_powershell (.bat)
3. java/jsp_shell_reverse_tcp (Linux) (.jsp)
4. java/jsp_shell_reverse_tcp (Windows) (.jsp)
5. java/shell_reverse_tcp (.war)
6. linux/x64/meterpreter_reverse_https (.elf)
7. linux/x64/meterpreter_reverse_tcp (.elf)
8. linux/x64/shell/reverse_tcp (.elf)
9. osx/x64/meterpreter_reverse_https (.macho)
10. osx/x64/meterpreter_reverse_tcp (.macho)
11. php/meterpreter_reverse_tcp (.php)
12. python/meterpreter_reverse_https (.py)
13. python/meterpreter_reverse_tcp (.py)
14. windows/x64/meterpreter_reverse_https (multi)
15. windows/x64/meterpreter_reverse_tcp (multi)
16. Previous menu
Main menu option 13.
Metasploit Listeners
1. android/meterpreter/reverse_tcp
2. cmd/windows/reverse_powershell
3. java/jsp_shell_reverse_tcp
4. linux/x64/meterpreter_reverse_https
5. linux/x64/meterpreter_reverse_tcp
6. linux/x64/shell/reverse_tcp
7. osx/x64/meterpreter_reverse_https
8. osx/x64/meterpreter_reverse_tcp
9. php/meterpreter/reverse_tcp
10. python/meterpreter_reverse_https
11. python/meterpreter_reverse_tcp
12. windows/x64/meterpreter_reverse_https
13. windows/x64/meterpreter_reverse_tcp
14. Previous menu
Main menu option 14.
CVE:
CVE-2018-7600
CVE-YYYY-NNNN, YYYY-NNNN, or a 4+ digit number for the current year.Main menu option 15.
Parse XML to CSV.
1. Burp (Base64)
2. Nessus (.nessus)
3. Nexpose (XML 2.0)
4. Nmap
5. Qualys
6. Previous menu
Main menu option 17. Opens notes/index.htm in a browser when available.
Main menu option 18 (misc/update.sh). OS packages, git pulls, locate DB, recon/dev tools, desktop handlers, Edge User-Agent, and CISA KEV catalog.
Gotchas:
/opt/nuclei-templates + git pull --ff-only (not nuclei -ut). A ~/nuclei-templates checkout is removed./opt/gowitness (not go install @latest; that module uses replace)./opt/transom (Go 1.27 or newer). Linked as /usr/local/bin/transom./opt/nikto (not the stale apt 2.1.5 package).msfupdate.Security scanners by Yiğit ibrahim (ibrahimsql). Main menu 16.
Standalone reports under $HOME/data/ (api-scan_*, cloud-scan_*, and so on). They do not write Discover’s domain HTML report ($HOME/data/<domain>/pages/*.htm). Flags and output files: each script’s -h.
1. API Security
2. Cloud Security
3. Container Security
4. OAuth and JWT Security
5. Open Redirect Scanner
6. Sensitive Information
7. WAF Detection
8. Web and API Security
9. Previous menu
| Menu | Script |
|---|---|
| API Security | dev/api-scanner.sh |
| Cloud Security | dev/cloud-scanner.sh |
| Container Security | dev/container-scanner.sh |
| OAuth and JWT Security | dev/oauth-jwt-scanner.sh |
| Open Redirect Scanner | dev/open-redirect.sh |
| Sensitive Information | dev/sensitive-scanner.sh |
| WAF Detection | dev/waf-detect.sh |
| Web and API Security | dev/web-api-scanner.sh |
| Web server checks (request timeout 10s, hard stop 11m); a full URL scans that origin only; report TXT + HTM when the scan actually ran |
| Always on expand |
| feroxbuster | Content discovery (same wordlist picker as ffuf; no recursion; auto-bail; 10 threads, 20 req/s, 5s timeout, 10m time-limit); report TXT + WEB | Always on expand |
| ffuf | Content discovery (quiet defaults); report TXT + WEB (open each finding in Firefox; Client export: web.htm) | Always on expand |