Skip to content

A python module of commonly used utilities that can be included or used by itself to speed up common processes, like url encoding and decoding!

Notifications You must be signed in to change notification settings

pwnpanda/python_hacking_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_hacking_utils

A python module of commonly used utilities that can be included or used by itself to speed up common processes, like url encoding and decoding!

Install

pip install -r requirements.txt (potentially python -m pip install -r requirements.txt)

Usage

You can use this as a library or as a command line tool.

  1. Usage as a library:
    1. python or python3 NB: hackutils.py should be in the current folder you are executing from - e.g. the current directory when running python/python3
    2. import hackutils
    3. Call function:
      • hackutils.Payload().list()
      • hackutils.Decode().url("%3c")
  2. Usage as command line tool:
    1. python hackutils.py p -l
    2. python hackutils.py d -url "%3c"

Overview of functions:

All functionality is split into logical subclasses based on functionality, then into functions under that class.

These work by calling: subclass.function(data)

Example: encode.url("/")

Subclasses

  • Encode / Decode

    • b32 (base32)
    • b64 (base64)
    • b64url (base64 url format)
    • url (url encoding)
    • html (html encoding)
    • hex (hex string)
    • hexint (hex integer)
    • hexweb (hex with \x infront of every hexvalue, e.g. \x61\x62\x63 for abc)
    • unicode
  • Analyze

    • parquet (hadoop data storage format)
  • Payload

    • list (List all payloads)
    • generate (Generate payloads with a target set - e.g. a URL or an IP)

ToDo

  • Payload listing
  • Payload generation
  • Have tests to ensure correct functionality
  • Encode/Decode only special characters
  • to Hex
  • to unicode
  • Chars to homoglyphs
  • list characters with homoglyphs
  • Analyze file formats
  • Look for:
    • Common file formats needing analysis
    • Common encoding / decoding
    • Common payloads & test-strings (E.G. ACAR)

About

A python module of commonly used utilities that can be included or used by itself to speed up common processes, like url encoding and decoding!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages