Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
copy-as-python-requests-ng — Burp Suite extension (Jython): zamienia zaznaczony request na gotowy skrypt exploita w Pythonie - SQLi, SSTI, LFI, CMDi, XXE, deserializacja, logika/auth | Kitploit
Tools/GitHubGitHub/lukasz-rybak/copy-as-python-requests-ng
Payload GenerationWeb Proxies & InterceptionExploitationScripting & AutomationWeb Application ExploitationWeb SecurityPenetration TestingUtilities & Frameworks
GitHublukasz-rybak/copy-as-python-requests-ng

copy-as-python-requests-ng

Burp Suite extension (Jython): zamienia zaznaczony request na gotowy skrypt exploita w Pythonie - SQLi, SSTI, LFI, CMDi, XXE, deserializacja, logika/auth

1 day agoNot yet reviewed
View Repository
Share

Copy As Python-Requests NG

An extended version of the Copy As Python-Requests extension for Burp Suite. The original (Silent Signal / PortSwigger's fork) rewrites the selected request into a call to the requests library in Python. This version does the same and adds:

  • rewriting multiple requests at once into a single file, with shared values in a dictionary,
  • a payload marked with § as a function parameter, encoded depending on its location,
  • a skeleton for the vulnerability type (SQLi extraction loop, timing measurement, a place for the SSTI/LFI payload).

The extension does not exploit or scan anything itself. It produces a ready-to-run skeleton of a script. The target-specific logic - the query, the oracle, the injection context - you write yourself, in clearly marked lines ZMIEN. Nothing about any specific application is in the code.

Based on the idea and purpose of:

  • Silent Signal, burp-requests (Apache-2.0): https://github.com/silentsignal/burp-requests
  • PortSwigger's fork, copy-as-python-requests (MIT): https://github.com/PortSwigger/copy-as-python-requests

The code in this repository is an independent implementation in Jython, not a fork of the above.

Two tools

FileName in BurpWhat it's for
copy_as_python_ng.pyCopy As Python-Requests NGScript skeleton by vulnerability type (with extraction loop / timing measurement)
copy_as_script.pyCopy as scriptRaw rewriting of one or more requests into Python functions

Installation

  1. Set up Jython: Settings -> Extensions -> Python environment -> location of jython standalone jar points to jython-standalone-2.7.x.jar. Without this, no Python extension will load.
  2. Extensions -> Installed -> Add -> Extension type: Python -> select the file .py.

Do this once on the machine you work from. The extension stays in Burp's configuration.

How to mark the payload location

In the Repeater editor, surround the value that normally works with § characters:

GET /catalog?item=§42§&sort=price HTTP/1.1

The text between the markers (here 42) is only an example - the generator removes it and in its place inserts the payload, encoding it depending on the location (path / query / form / JSON). If you don't select anything, the script will still be generated, with a comment telling you to indicate the location.

The rule is the same for every type: the payload location comes from the request (the § marker), and the payload itself is a single line that you write based on code analysis - never a list of variants to guess from.


copy_as_python_ng - skeleton by vulnerability type

Select the §...§ location, right-click -> Extensions -> Copy as Python (NG) -> choose the type, and for SQLi/SSTI also the engine. A complete script is copied to the clipboard. Alternatively, the Copy As Python-Requests NG tab: paste the raw request, choose the type/engine, click Generate.

Covered types

CategoryTypeEngine-dependent
SQLiblind boolean (by response)yes
SQLiblind boolean (by record state)yes
SQLitime-based blind (sleep)yes
SQLierror-basedyes
SQLiUNION SELECTyes
RCE: template/codeSSTI -> RCEyes (template engine)
RCE: template/codePHP evalno
RCE: template/codeJS eval (Node)no
RCE: template/codeOS command injectionno
Deserializationpickle (Python)no
Deserializationjsonpickleno
DeserializationPhar (PHP)no
Deserialization.NETno
Filespath traversal / LFIno
Filesupload -> RCEno
Fileszip slipno
XMLXXE (file read)no
Logic / authpassword reset tokenno
Logic / authweak hash bypassno
Logic / authweak secret / signatureno
Logic / authprototype pollutionno
Logic / authmass assignmentno

Engines

  • SQL: mysql, postgres, mssql, oracle, sqlite. The generator itself selects the engine's syntax blocks: SUBSTRING/SUBSTR, ASCII/UNICODE, LENGTH/LEN, SLEEP/pg_sleep/WAITFOR/DBMS_PIPE, CONCAT/||/+, extractvalue/CAST/CONVERT.
  • SSTI: thymeleaf, freemarker, velocity, jinja2, ejs, pug, handlebars, twig, erb, smarty - RCE payload per engine.

SQL engine verification status:

Enginebooleantime-basedunionerrorhow verified
postgresOKOKOKOKlive
mysqlOKOKOKOKlive
mssqlsyntaxsyntaxsyntaxsyntaxper documentation
oraclesyntaxsyntaxsyntaxsyntaxper documentation
sqlitesyntaxno sleepsyntaxnoneper documentation

"syntax" = payload built per the engine documentation, not confirmed against a live engine. You confirm it with the first two tests against the target (1=1 vs 1=2).

What is ready and what you fill in

The extraction loop (binary search, timing measurement, character iteration) is written and identical for every application with a given database engine - it is a pure algorithm. You fill in only the lines marked ZMIEN:

  • the query / the value being read,
  • the injection context (whether to close ', which comment),
  • the oracle: what distinguishes TRUE from FALSE on this target.

Every SQLi script ends with the assert oracle("1=1") and not oracle("1=2") assertion - these are your first two tests against the target, confirming that the context and oracle are good. The script takes the target from sys.argv[1], and without an argument - the address from the request.

That is why it also works against a target that has never been tested: it rewrites your request and inserts the same algorithm. New target = the same ZMIEN lines to fill in.

Skeleton from multiple tasks

Select several requests in HTTP history, right-click -> Copy as Python (NG) -> Skeleton from selected (multiple tasks). A single file is created:

  • a function per request, with the payload wired in where you marked §,
  • shared values (the same key, cookie, token across several requests) moved into the dictionary SHARED at the top - you enter them once,
  • an empty exploit() with a list of functions - here you add the flow (order, passing results, conditions).

This is the boundary of safe automation: the tool rewrites what is visible in the history, but it does not guess the order or the connections between steps.


copy_as_script - rewriting requests

Select one or more requests (HTTP history or Repeater), right-click -> Extensions -> Copy as script. A script lands in the clipboard: one function per request, in the order of selection.

  • BASE instead of the address, unnecessary headers stripped, cookies injected into the session;
  • if a value from a request appeared earlier in the response of another request, it inserts wartosc = r1.text... and passes it on as a variable;
  • the fragment §...§ (or the part selected with the mouse) becomes the parameter payload, encoded depending on its location.

You write the attack logic yourself.


Boundaries

  • It does not exploit anything on its own - it hands over a skeleton, you conduct the attack.
  • It generates an engine skeleton only for classes that have a generator. A class without a generator (e.g. an exotic NoSQL/LDAP) gets a generic "multiple tasks" skeleton, not a dedicated one.
  • The tool does not guess the oracle or the query - that is knowledge about the target that you gain through analysis.
  • Payloads for engines not verified live are confirmed on the target with the first two tests.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    1.8k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    979
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    549
  • 4

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    492
  • 5

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    369
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    311

Explore all tools

Browse our collection of tools

View all tools →
Download Tool