Repository navigation
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).