Skip to content

For Encoding and Decoding a payload in URL encoding, quick and simple.

License

Notifications You must be signed in to change notification settings

occupythemind/URL_encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” URL Encoder/Decoder (Multi-Layer)

A simple Python CLI tool to encode or decode URLs/payloads using quote_plus and unquote_plus from Python's urllib.parse. Supports multi-layer encoding/decoding, and also provides a full recursive decode option.


βš™οΈ Features

  • Encode or decode a payload n times
  • Automatically detect and fully decode deeply nested encodings
  • CLI and interactive modes
  • Lightweight, no external dependencies except pyinputplus and pyperclip
  • Automatically copy result payload to clipboard

πŸ› οΈ Setup

  1. Clone the repository
git clone https://github.com/occupythemind/URL_encoder/.git
cd URL_encoder/
  1. Install dependencies
pip install pyinputplus pyperclip

πŸš€ Usage

Command-line

python3 burl.py -p [payload] -m [encode|decode] -n [optional layer count]

Examples

Encode once

python3 burl.py -p "admin/dashboard" -m encode

Encode 3 times

python3 burl.py -p "admin/dashboard" -m encode -n 3

Decode once

python3 burl.py -p "%252Fadmin" -m decode -n 1

Full decode (no -n needed)

python3 burl.py -p "%252Fadmin" -m decode

🧾 Help Menu

python3 burl.py -h
USAGE:  python3 burl.py -p [payload] -m [encode/decode] -n [optional] 
where:
    -p  Specifies the payload to be encoded or decoded.
    -m  Specifies the mode. Either encode or decode.
    -n  Specifies the number of times to encode or decode. Default is 1.
         But in the case of decoding, if omitted, full decode will be applied.

πŸ’‘ Tip

If you omit -p or -m, the tool will prompt you interactively using pyinputplus.


πŸ“„ License

MIT β€” free to use, modify, and share.

About

For Encoding and Decoding a payload in URL encoding, quick and simple.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages