Repository navigation
Releases
v2.9.0 — bucket A grande del vault CPTS: 17 detectores que reusan lo que ya se captura
Big bucket-A batch mined from the CPTS vault and folded into palantir's existing
"detect-and-RECOMMEND, never execute" plumbing. 17 new signals/recommenders, all
pure (no network, no subprocess) and testable in --selftest; every hook only adds
findings and next-steps — nothing is executed that was not already.
Flagship (reuse data palantir ALREADY captures)
- Safe-Spray Planner (
badpwdcount-aware) — palantir already parsed the
lockout policy and already ran--spray --safe; the missing piece was
combining it with the per-userbadpwdcountthatnxc --usersexposes. Now
computes the per-account safe budget this window
(threshold − safety_margin − badpwd[u]) and names at-risk accounts in the
warning beforeconfirm_creds_sprayproceeds. - LFI→RCE decision chain — after
_lfi_probeconfirms an LFI, ONE extra
read viaphp://filter/convert.base64-encode/resource=<path>over the typical
php.inilocations; base64-decoded locally and classified:
allow_url_include=On→data://RCE;extension=expectloaded →
expect://shell; otherwise → log poisoning (User-Agent / PHPSESSID /
/proc/self/environ).disable_functionssurfaces as a warning. - SNMP loot → identities + version→CVE —
_snmp_walk_juicyalready
capturedsysContact, LanMgr users and installed-software; they were being
printed and thrown away. Now emails/users feed the unified identity pool and
every installed-software string crosses the_VERSION_CVEStable. Zero extra
network cost. - Version→CVE banner matcher (curated table of 10 CVEs: ProFTPD mod_copy,
CoreFTP <727, OpenSMTPD ≤6.6.2, BlueKeep, SMBGhost, PRTG <18.2.39,
ColdFusion 8, OpenSSH <7.8 userenum, vsftpd 2.3.4 backdoor, Shellshock) wired
intofp_ftp,fp_smtp,fp_ssh,fp_web_slowandfp_snmp. - Policy-aware wordlist filter + precise hydra form string — the
grep -E
pipeline in_wordlist_recosnow adapts to the REAL pass-policy
(min_len/complex), and thehttp-post-formstring is built from the
actual form fields katana parsed (username/password detection + CSRF token
flagged dynamic), not the placeholderusername=^USER^&password=^PASS^. - Unified identity pool — finger, SMTP-VRFY/RCPT, SNMP sysContact/LanMgr,
mailssl-certemails and web-crawled emails now funnel through the same
_merge_extra_identities(email local-part /DOM\usernormalization /
dedup case-insensitive / SIDs dropped) into the SAMEad_users.txtthat
kerbrute/SMB-RID/LDAP already write.
Quick wins (new detectors over data palantir already captures)
- SPF / TXT → internal IPs + 3rd-party provider map —
ip4:IPs in
RFC1918/CGNAT get promoted toaltafindings;include:directives map to
O365, Google Workspace, Mailgun, SendGrid, Zoho, Atlassian, Salesforce… - Cloud-storage detector (passive) — scans crawled HTML for S3 / Azure Blob
/ GCS references; recommends read-onlyHEAD/?comp=list/?prefix=. - Subdomain-takeover detector — CNAME + 11-provider can-i-take-over-xyz
fingerprint table (S3, GitHub Pages, Heroku, Azure, Fastly, Shopify,
Pantheon, Tumblr, Bitbucket, Readme); one GET per candidate to confirm the
"unclaimed" substring (confirmado→critica, otherwisealta). - Mail
ssl-cert+ capability harvester — CN/SAN → hostnames worth adding
to/etc/hosts;emailAddress=→ identities to the pool;AUTH=PLAIN
withoutSTARTTLS/STLS→altafinding "credentials travel in cleartext". - NFS
nfs-lssensitive files + UID/GID — cross-ref file names in the
nfs-ls NSE output against the SMB loot regex + marks UID=0 files; recommends
useradd -u <uid>when a non-trivial UID would be needed to read a file. - MX-based mail-stack classifier —
cloudvsself-hostedvsmixto
routes the recommendation chain accordingly (cloud →o365spray/
MailSniperinstead of pointlesshydra smtpagainst a tenant). - IPMI vendor-aware default creds — identifies the BMC vendor
(Dell/HP/HPE/IBM/Lenovo/Supermicro/Intel/Fujitsu/Oracle) fromipmi-version- banners → correct vendor creds + hashcat
-m 7300RAKP recipe with the
vendor-appropriate mask.
- banners → correct vendor creds + hashcat
Web passive (pattern-match over katana crawl output — nothing is sent)
- IDOR candidate detector + JS function-disclosure — classifies param
values by shape (seq/md5/sha1/uuid/b64/hex) and greps
crawled.jsfor the builder (CryptoJS.MD5,btoa,crypto.subtle,
HmacSHA*). Mass-enum loops only RECOMMENDED (exfil = active). - Upload-form bypass recommender —
multipart/form-data+ file field →
altafinding + 8-step bypass matrix (double-ext, alt-PHP, Content-Type
swap,GIF89a, null-byte, polyglot zip/phar, SVG+script, LFI-chain hint). - HTTP verb-tampering (OPTIONS enum) — one
OPTIONS+ oneGET; ifGET
returns 401/403 recommends alternate verbs; ifAllowlists
PUT/PROPFIND/TRACEemits the matching bypass tip (webshell upload /
WebDAV / Cross-Site Tracing). - Command-injection candidate recommender — param names that sound like
shell sinks + root-HTML context detection (strong when "Ping Tool" /
"traceroute" / "network diagnostic" appears). Emits the operator table +
blacklist-evasion table (${IFS}/ case /rev/ b64 / wildcards / Windows
caret). No active probe.
Gates
py_compile · --version · --selftest · ruff · mypy · SQLi broad-fuzz
sim — all green.
Three items intentionally deferred (cross-host NTLM-relay graph, Snaffler
--spider tiering, PRTG/Splunk/Nagios/ColdFusion/Drupal/GitLab footprints,
stack/transfer/pivot recommenders, AD hardening appendix, LLMNR passive
listener, XXE, policy-aware cracking) + the entire B/C buckets, awaiting a
focused review before implementation.
v2.8.1 — --crawl va headless automático: chequea navegador y, si no hay, ofrece instalarlo
Changed
--crawlnow crawls headless automatically when a real browser is available — no extra flags needed. When a Chrome/Chromium binary is on thePATH, katana runs with-headless -no-sandbox -system-chrome -xhr-extraction -d 3: it executes JS and captures the XHR/fetch endpoints of APIs/SPAs that the static crawl never sees, so more params and forms reach the sqlmap workflow.-system-chromeis forced so katana never downloads its own (~150 MB) Chromium over the network behind the operator's back.- No browser? It offers to install one instead of downloading silently. On a default Kali box (which ships Firefox, not Chromium) the crawl falls back to the previous static mode and recommends installing a browser as a next-step (
sudo apt install -y chromium) — it recommends, it never downloads or runs anything. - Safety net: if the headless attempt fails (broken browser, unsupported flag, timeout, empty output) the static crawl is re-run, so a crawl never silently produces nothing.
- Sharper SQLi enumeration next-step: it now makes explicit that
--dumpauto-cracks hash-looking columns of an application table (distinct from--passwords, which cracks the DBMS users' own hashes), and that--search -C/-Tis the way to locate a table/column when its exact name is unknown.
Full gate green: py_compile, --selftest (new _chrome_bin invariant), ruff, mypy, plus the wide SQLi simulation (205 _sqli_recos calls).
v2.8.0 — workflow de sqlmap/SQL injection a medida tras el crawl web
Added
-
SQL-injection / sqlmap next-steps after a real web crawl (
_sqli_recos, surfaced from the--crawl/katana block infp_web_slow). Once katana has crawled a site, palantir turns the injection points it found into a readysqlmapworkflow — recommendations only, it never runs sqlmap or any SQL query — mirroring the HTB SQL Injection Fundamentals + SQLMap Essentials modules. Full spectrum:- Detection on GET params and on POST forms (built from the form's real fields; anti-CSRF token marked via
--csrf-token/--csrf-url; logins flagged for--risk=3OR-payloads). - Authenticated / complex requests:
-r request.txt(Burp), cookie injection--cookie="id=1*", JSON-body APIs--data '{"id":1}', multipart →-r. - "Not detected" tuning:
--level=5 --risk=3,--parse-errors,--technique,--tamper,--dbms,--flush-session,--ignore-code; and the manual branch — non-standard boundary →--prefix/--suffix,AND/ORfiltered → UNION--technique=U, small tables →--sql-query. - Enumeration — only once injection is confirmed:
--banner/--current-*/--is-dba/--users/--passwords/--privileges/--schema/--search/--columns/--dump. - OS exploitation — only if the DB user is DBA:
--file-read/--file-write/--os-shell/--os-cmd.
Every escalation line is clearly gated ("only if it confirms" / "only if DBA"), emitted once, and per-endpoint lines are capped so the next-steps don't flood.
- Detection on GET params and on POST forms (built from the form's real fields; anti-CSRF token marked via
-
Deeper parsing of the katana crawl (
_parse_katana_jsonlnow also returnsparams+form_details). It surfaces GET-param URLs over non-static resources as injection candidates (static assets likeapp.js?v=9/style.cssfiltered out), extracts each form'smethod/action/enctype/parameters(confirmed against katana's own Go structs) to build the--data, and parsesresponse.xhr_requests— the XHR/fetch endpoints a headless crawl captures (API/SPA endpoints the static crawl never visits) — plus parameters hidden inside JS. When the app looks JS-heavy, palantir also recommends a deeper headless re-crawl (katana -headless -d 3).
v2.7.0 — wordlists a medida tras el crawl web (CeWL/Username Anarchy/CUPP)
Added
- Custom-wordlist next-steps after a real web crawl (
_wordlist_recos, surfaced from the
--crawl/katana block infp_web_slow). Once katana has crawled a site and surfaced its real
attack surface (forms, emails, on-page words), palantir now recommends the natural follow-up —
building a target-specific wordlist instead of reaching for genericrockyou/SecLists — mirroring
the HTB "Custom Wordlists" workflow: CeWL to scrape the site's own words into a dictionary,
Username Anarchy to turn a real name (e.g. from a crawled email) into username candidates, and
CUPP to turn an OSINT profile into a password list (with the password-policygrepfilter).
When katana saw a login form, it closes the loop with a readyhydra http-post-formagainst that
exact login — host, port, path and-S(SSL) all derived from the form's own URL — using the
tailored list rather thanrockyou. Suggestions only, nothing is executed; they appear only when a
crawl actually ran, and the HTML report's existing next-step dedup collapses the generic ones across
ports. Form-URL port parsing tolerates a malformed port without raising, and the CeWL command puts
the URL last (canonical "options then url").
v2.6.0 — subdomain fuzzing real por DNS
Added
- Active subdomain fuzzing by real DNS resolution (
fuzz_subdomains/fp_subdomains_active,
Fase 5) — complements the existing vhost fuzzing (Fase 7, Host-header based) with a
genuinely different confirmation method: whether<candidate>.<domain>actually resolves in
DNS, not just whether the same web server answers any Host header the same way. Finds
subdomains that aren't even web servers (mail/vpn/ns/dc2…). Shares--vhost-wordlistwith the
vhost fuzzing and is skipped by the same--no-vhost-fuzz; results feed straight into Fase 7's
existing confirmed-first vhost wordlist alongside crt.sh subdomains. Queries the system
resolver when it knows the domain, falling back to the scanned target directly otherwise (same
criterionfp_dns_nameserversalready used); filters DNS wildcard catch-alls the same way
fuzz_vhostfilters an HTTP catch-all.
Fixed
--no-fuzz's help text said "Salta las Fases 5 y 6", but the singleif not args.no_fuzz
block it gates wraps Fase 6 (directory fuzzing) and Fase 7 (vhost fuzzing) — Fase 5
(credentials) was never part of it. Now correctly says "Fases 6 y 7".
v2.5.1 — fix de CI (matriz 3.8/3.9) y cierre del changelog
Fixed
- CI's Python 3.8/3.9 selftest jobs failed outright on
setup-python@v5("version not found
for Ubuntu 26.04"). Not a code bug:ubuntu-latestnow resolves to Ubuntu 26.04, and
setup-pythonno longer ships prebuilt binaries for 3.8/3.9 (both EOL upstream) on that
image. Those two matrix entries now pinruns-on: ubuntu-22.04(which still has them);
3.10–3.13 keepubuntu-latest.requires-python = ">=3.8"stays accurate — the code itself
needs nothing newer.
Housekeeping
- CHANGELOG.md's single
[Unreleased]block (which had drifted to hold both the already-shipped
v2.4.0 content and the new v2.5.0 content together) is now split correctly into[2.4.0]and
[2.5.0], with this release's fix recorded as its own[2.5.1]entry.__version__bumped
to match (palantir --version→palantir 2.5.1).
v2.3.0 — rutas de -o siempre absolutas, usuarios de RID cycling guardados, brutespray deja de perderse el SMB de Samba
Added
- RID-cycling-discovered users (null-session
enumdomusers) are now persisted to
ad_users.txt, merged in like every other writer of that file (machine accounts
filtered) — previously only reported in the finding text, never written to disk.
Fixed
-
-o/--outdiris now always resolved to an absolute path at startup. Every path that
hangs offbase(report.html, commands.log, ad_users.txt, findings.json, …) inherits this
automatically, instead of only being absolute when the operator happened to pass-othat
way themselves. -
Several suggested commands (AS-REP roast, password spraying) still hardcoded the bare
ad_users.txtfilename, even though the file itself was already written to the real
<base>/ad_users.txt. New_ad_users_path(base)fixes the spots that had it wrong. -
brutespray never actually tested SMB against a real Samba target, and bruteforced an
unasked-for HTTP service instead. brutespray's own.gnmapparser only recognizes nmap's
literal service-name string for SMB (microsoft-ds/cifs) — but nmap always renames the
service tonetbios-ssnthe moment its-sVsignature matches Samba, a name brutespray
doesn't recognize at all, while "http" is on its list. Rewritten to use repeatable
-H service://ip:portarguments built directly from palantir's own already-computed service
names — no longer depends on any nmap file on disk or on how nmap named the port.
v2.2.4 — searchsploit dejaba colar "Sambar Server" (producto sin relación) entre los exploits de Samba
Fixed
searchsploit's substring matching for "Samba" also pulled in "Sambar Server": a
completely unrelated, discontinued web server (Cogent/Watcher, ~2000-2004). Confirmed from a
real run against a Debian box with Samba 4.13.13, where 10 "Sambar Server" EDB entries showed
up as "alta" — unaffected by the version-based downgrade from 2.2.3, since "Sambar Server 4.1
Beta" happens to share the same major version (4) as the real Samba install. New
_downgrade_wrong_product_exploits(): an exploit whose title doesn't mention the searched
product as a whole word (\bSamba\bnever matches "Sambar") gets downgraded tobajawith a
note. Needs no known version, so it runs unconditionally alongside the existing check.
v2.2.3 — deja de sugerir RID cycling redundante y afina los exploits de Samba por versión real
Fixed
-
The RID-cycling next-step was always suggested, even when it was already redundant:
fp_smbreported null-session usernames found viaenumdomusersand, in the same breath,
suggested manually redoing exactly that via RID cycling. Moved the suggestion to the branch
whereenumdomusersactually finds nothing, where it's useful. -
Samba exploit-db matches were almost all noise from 20-year-old versions: nmap's
-sV
only gives the major version ("Samba smbd" version "4"), producing 60+ "critica" hits for
Samba 1.x-3.x exploits that can't apply to a real 4.x install. The precise version (e.g.
4.13.13-Debian) is already printed in the IPC$ share commentnxc/smbclientcapture during
footprinting — now parsed and used to downgrade exploits whose title only mentions an earlier
major tobaja, with a note, the same way a pre-Windows-10 CVE is downgraded against a
confirmed modern host. A title with no parseable version, or one from the same/later major, is
left untouched.
v2.2.2 — ms17-010/SMBGhost/webdav ya no se lanzan contra un Samba confirmado
Fixed
- ms17-010/SMBGhost/webdav ran against a confirmed Samba target: nmap's own service
detection already confirmsSamba smbdbefore these three nxc checks run, butfp_smb
never used that signal. All three are bugs/services exclusive to the real Windows codebase
(srv.sys/srv2.sysfor MS17-010/SMBGhost, the WebClient service forwebdav) that Samba
never shares or implements, so they can never produce a true finding against it. New
_is_samba(ports)gates the three checks on an explicit "Samba" product string — deliberately
narrower than the existing_target_is_windows()heuristic (used elsewhere for a lower-stakes
decision), since a wrong skip here would hide a real vulnerability rather than just add noise.