Skip to content
KitploitKITPLOIT
OutilsBlog
Soumettre
OutilsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

··Flux·Contact·Confidentialité·© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
rop-tool — Un outil pour vous aider à écrire des exploits binaires | Kitploit
Outils/GitHubGitHub/t00sh/rop-tool
ExploitationRétro-ingénierieDébogueursAnalyse de BinairesDéveloppement de Charges UtilesExploitation de Binaires
GitHubt00sh/rop-tool

rop-tool

Un outil pour vous aider à écrire des exploits binaires

Voir le dépôt
612104il y a 7 ansVérifié par Kitploit

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager

rop-tool v2.4.2

Un outil pour vous aider à écrire des exploits binaires

OPTIONS

root@kitploit:~
rop-tool v2.4.2
Help you make binary exploits.

Usage: rop-tool <cmd> [OPTIONS]

Commands :
   gadget        Search gadgets
   patch         Patch the binary
   info          Print info about binary
   heap          Display heap structure
   disassemble   Disassemble the binary
   search        Search on binary
   help          Print help
   version       Print version

Try "rop-tool help <cmd>" for more informations about a command.

COMMANDE GADGET

root@kitploit:~
Usage : rop-tool gadget [OPTIONS] [FILENAME]

OPTIONS:
  --arch, -A               Select an architecture (x86, x86-64, arm, arm64)
  --all, -a                Print all gadgets (even gadgets which are not uniq)
  --depth, -d         [d]  Specify the depth for gadget searching (default is 5)
  --flavor, -f        [f]  Select a flavor (att or intel)
  --no-filter, -F          Do not apply some filters on gadgets
  --help, -h               Print this help message
  --no-color, -N           Do not colorize output

COMMANDE SEARCH

root@kitploit:~
Usage : rop-tool search [OPTIONS] [FILENAME]

OPTIONS:
  --all-string, -a    [n]  Search all printable strings of at least [n] caracteres. (default is 6)
  --byte, -b          [b]  Search the byte [b] in binary
  --dword, -d         [d]  Search the dword [d] in binary
  --help, -h               Print this help message
  --no-color, -N           Don't colorize output
  --qword, -q         [q]  Search the qword [q] in binary
  --raw, -r                Open file in raw mode (don't considere any file format)
  --split-string, -s  [s]  Search a string "splited" in memory (which is not contiguous in memory)
  --string, -S        [s]  Search a string (a byte sequence) in binary
  --word, -w          [w]  Search the word [w] in binary

COMMANDE PATCH

root@kitploit:~
Usage : rop-tool patch [OPTIONS] [FILENAME]

OPTIONS:
  --address, -a       [a]  Select an address to patch
  --bytes, -b         [b]  A byte sequence (e.g. : "\xaa\xbb\xcc") to write
  --filename, -f      [f]  Specify the filename
  --help, -h               Print this help message
  --offset, -o        [o]  Select an offset to patch (from start of the file)
  --output, -O        [o]  Write to an another filename
  --raw, -r                Open file in raw mode

COMMANDE INFO

root@kitploit:~
Usage : rop-tool info [OPTIONS] [FILENAME]

OPTIONS:
  --all, -a                Show all infos
  --segments, -l           Show segments
  --sections, -s           Show sections
  --syms, -S               Show symbols
  --filename, -f      [f]  Specify the filename
  --help, -h               Print this help message
  --no-color, -N           Disable colors

COMMANDE DÉSASSEMBLAGE

root@kitploit:~
Usage : rop-tool dis [OPTIONS] [FILENAME]

OPTIONS:
  --help, -h               Print this help message
  --no-color, -N           Do not colorize output
  --address, -a    <a>     Start disassembling at address <a>
  --offset, -o     <o>     Start disassembling at offset <o>
  --sym, -s        <s>     Disassemble symbol
  --len, -l        <l>     Disassemble only <l> bytes
  --arch, -A       <a>     Select architecture (x86, x86-64, arm, arm64)
  --flavor, -f     <f>     Change flavor (intel, att)

COMMANDE HEAP

root@kitploit:~
Usage : rop-tool heap [OPTIONS] [COMMAND]

OPTIONS:
  --calloc, -C             Trace calloc calls
  --free, -F               Trace free calls
  --realloc, -R            Trace realloc calls
  --malloc, -M             Trace malloc calls
  --dumpdata, -d           Dump chunk's data
  --output, -O             Output in a file
  --help, -h               Print this help message
  --tmp, -t        <d>     Specify the writable directory, to dump the library (default: /tmp/)
  --no-color, -N           Do not colorize output

Petites explications sur la sortie de la commande heap

Chaque ligne correspond à un bloc malloc, et le heap est vidé après chaque exécution des fonctions heap (free, malloc, realloc, calloc)

  • addr : est l'adresse réelle du bloc malloc

  • usr_addr : est l'adresse retournée par les fonctions malloc à l'utilisateur

  • size : est la taille du bloc malloc

  • flags : P est PREV_INUSE, M est IS_MAPED et A est NON_MAIN_ARENA

FONCTIONNALITÉS

  • Recherche de chaînes, recherche de gadgets, correction, informations, visualisation du heap, désassemblage

  • Sortie colorée

  • Flavor Intel et AT&T

  • Prise en charge des formats binaires ELF, PE et MACH-O

  • Prise en charge du big et little endian

  • Prise en charge des architectures x86, x86_64, ARM, ARM64, MIPS, MIPS64

EXEMPLES

Recherche de gadgets basique

root@kitploit:~
rop-tool gadget ./program

Afficher tous les gadgets avec la syntaxe AT&T

root@kitploit:~
rop-tool gadget ./program -f att -a

Rechercher des gadgets dans un fichier RAW x86

root@kitploit:~
rop-tool gadget ./program -A x86

Rechercher une chaîne "scindée" dans le binaire

root@kitploit:~
rop-tool search ./program -s "/bin/sh"

Rechercher toutes les chaînes dans le binaire

root@kitploit:~
rop-tool search ./program -a

Corriger le binaire à l'offset 0x1000, avec "\xaa\xbb\xcc\xdd" et enregistrer sous "patched" :

root@kitploit:~
rop-tool patch ./program -o 0x1000 -b "\xaa\xbb\xcc\xdd" -O patched

Visualiser l'allocation heap de la commande /bin/ls :

root@kitploit:~
rop-tool heap /bin/ls

Désassembler 0x100 octets à l'adresse 0x08048452

root@kitploit:~
rop-tool dis /bin/ls -l 0x100 -a 0x08048452

CAPTURES D'ÉCRAN

root@kitploit:~
rop-tool gadget /bin/ls

Capture d'écran

root@kitploit:~
rop-tool search /bin/ls -a

Capture d'écran

root@kitploit:~
rop-tool search /bin/ls -s "/bin/sh\x00"

Capture d'écran

root@kitploit:~
rop-tool heap ./a.out

Capture d'écran

root@kitploit:~
rop-tool dis ./bin  # Many formats

Capture d'écran

COMPILATION

root@kitploit:~
git clone https://github.com/t00sh/rop-tool.git
cd rop-tool
sh scripts/set_env.sh
make

DÉPENDANCES

  • capstone

LICENCE

  • licence GPLv3

AUTEUR

Tosh (tosh at t0x0sh . org)

Télécharger l’outil