Skip to content

v2.8.0 — workflow de sqlmap/SQL injection a medida tras el crawl web

Choose a tag to compare

@salitress salitress released this 02 Dec 23:16
· 9 commits to main since this release

Added

  • SQL-injection / sqlmap next-steps after a real web crawl (_sqli_recos, surfaced from the --crawl/katana block in fp_web_slow). Once katana has crawled a site, palantir turns the injection points it found into a ready sqlmap workflow — 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=3 OR-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/OR filtered → 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.
  • Deeper parsing of the katana crawl (_parse_katana_jsonl now also returns params + form_details). It surfaces GET-param URLs over non-static resources as injection candidates (static assets like app.js?v=9/style.css filtered out), extracts each form's method/action/enctype/parameters (confirmed against katana's own Go structs) to build the --data, and parses response.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).