Skip to main content

PortSwigger Lab Automation Tool

Project description

Burplabs

burplabs is a modular, Python-based CLI tool that automates solving labs from PortSwigger Web Security Academy.
Its like like netexec, but made for web apps.

Basically, this is a python package named 'burplabs' which is an PortSwigger's Web Security Academy labs soluction in the form of python script. Each script includes the lab's name, proxy settings, and step-by-step solution, as well as any additional notes.


It currently has 113/269 labs and I am adding rest of the labs daily.

I know this not something new but this helped me to get better with Python Scripting and I adjusted many other things. I recommend to try this when you know how lab is solved and just want to solve it. Please do not use this before understanding the concepts.

Features

  • CLI interface
  • Modular architecture – each lab is a standalone Python file
  • Custom Proxy and No Proxy also support (--proxy, --no-proxy)
  • Docker-compatible
  • Easily extensible - add your own code if you want!

Installation

Option 1: Install via pip (recommended)

Windows

python -m venv burplabs-venv
.\burplabs-venv\scripts\Activate.ps1
pip install burplabs

Option 2: Git clone

git clone https://github.com/spbavarva/portswigger-labs-scripts.git
cd portswiggerlab
pip install .

(Docker will be added soon)


Usage

View Help

burplabs -h

burplabs help

List All Available Labs

burplabs --list-labs

Interactive Mode

burplabs --interactive

and then just follow the steps. You can even enter custom proxy when it prompts or if you want to use burp proxy then just open burp and hit 'Y' when it prompts for default proxy to get requests on your burp.

Or you can hit 'n' when it prompts and you don't need to open burp at all.

Interactive Mode


Adding New Labs

To add a new lab:

  1. Create a new file in burplabs/labs/name-of-the-folder, e.g. sql_lab3.py
  2. It must define a run(url, payload, proxies=None) function
  3. That’s it! The lab will be auto-detected and usable like:
portswiggerlab sql_lab3 --url ... --payload ...

Author and Support

Credit to Rana Khalil for inspiring me for this!

Built by Sneh aka mystic_mido Portfolio: snehbavarva.com If you like it, give it a ⭐ on GitHub! That will really helps a lot to motivate me and show the significance of this small project. Thank you!

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

burplabs-0.2.0.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

burplabs-0.2.0-py3-none-any.whl (123.8 kB view details)

Uploaded Python 3

File details

Details for the file burplabs-0.2.0.tar.gz.

File metadata

  • Download URL: burplabs-0.2.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for burplabs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4bcadc05c943f1abbab92b09dd804350bc3522094d4ac2f698933386f7efb6af
MD5 b1df0e87cf9c528e11aae4b6169784c3
BLAKE2b-256 4959117c7ba5048e032f54dd534bec2357c0630ecbb4e26849a4dd37a22124d1

See more details on using hashes here.

File details

Details for the file burplabs-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: burplabs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 123.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for burplabs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68413a620c881382fcab6bafd5a4cde9f9f9c189d1a7c30a36d3519ec75fe221
MD5 c13195c1424f5b1c314f4a5dc1174c59
BLAKE2b-256 102dc12c99a359b29fd93b489d31ccd89745fcc25d26ceab4dbab389de0f8a04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page