Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
heaptrace — aiuta a visualizzare le operazioni dell'heap per pwn e debugging | Kitploit
Strumenti/GitHubGitHub/arinerron/heaptrace
Memory ForensicsDebuggerCTFAnalisi di Binari
GitHubarinerron/heaptrace

heaptrace

aiuta a visualizzare le operazioni dell'heap per pwn e debugging

Vedi Repository
330193 anni faRevisionato da Kitploit

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

Informazioni

heaptrace è un debugger dell'heap per tracciare le operazioni sull'heap di glibc in binari ELF64 (x86_64). Il suo scopo è aiutare a visualizzare le operazioni sull'heap durante il debug di binari o lo heap pwn.

screenshot.png

  • sostituisce gli indirizzi con simboli facili da comprendere
  • rileva corruzione dell'heap e problemi di perdita di memoria
  • può eseguire il debug in gdb in qualsiasi punto (--break)
  • supporta tutti i binari ELF64 (x86_64) indipendentemente da ASLR o impostazioni del compilatore (compresi binari stripped)

In cosa differiscono heaptrace e valgrind?

Installazione

Versioni Ufficiali

Vedi i file di rilascio .deb e .rpm, e un binario precompilato alla pagina Releases.

Ubuntu PPA

root@kitploit:~
$ sudo add-apt-repository ppa:arinerron/heaptrace
$ sudo apt-get update
$ sudo apt-get install heaptrace

Arch User Repository (PKGBUILD)

Usa il tuo helper AUR preferito per installare uno dei due seguenti pacchetti:

  • heaptrace-git — pacchetto sorgente (PKGBUILD)
  • heaptrace — pacchetto binario (PKGBUILD)
root@kitploit:~
$ trizen -S heaptrace-git
... OPPURE ...
$ trizen -S heaptrace

Compilazione dal Sorgente

root@kitploit:~
$ git clone https://github.com/Arinerron/heaptrace.git && cd heaptrace
$ make
$ sudo make install
...
$ heaptrace ./target

Utilizzo

Puoi specificare argomenti a heaptrace prima di specificare il nome del binario:

root@kitploit:~
Usage:
  heaptrace [options...] <target> [args...]
  heaptrace [options...] --attach <pid>

Options:
  -p <pid>, --attach <pid>, --pid <pid>
	 Tells heaptrace to attach to the specified pid 
	 instead of running the binary from the `target` 
	 argument. Note that if you specify this argument 
	 you do not have to specify `target`.


  -b <expression>, --break=<expression>, --break-at=<expression>
	 Send SIGSTOP to the process when the specified 
	 `expression` is satisfied and attach the GNU debugger 
	 (gdb) to the process.

	 This argument supports complex expressions. Please 
	 See the documentation for more information: 
	 https://github.com/Arinerron/heaptrace/wiki/How-to-Create-Breakpoints


  -B <expression>, --break-after=<expression>
	 Similar to `--break`. Replaces the tracer 
	 process with gdb, but only after the heap function 
	 returns. See the documentation for more information: 
	 https://github.com/Arinerron/heaptrace/wiki/How-to-Create-Breakpoints


  -e <name=value>, --environ=<name=value>, --environment=<name=value>
	 Sets a single environmental variable. Useful for 
	 setting runtime settings for the target such as 
	 LD_PRELOAD=./libc.so.6 without having them affect 
	 heaptrace's runtime configuration. This option can 
	 be used multiple times.


  -s <sym_defs>, --symbols=<sym_defs>
	 Override the values heaptrace detects for the 
	 malloc/calloc/free/realloc/reallocarray symbols. 
	 Useful if heaptrace fails to automatically 
	 identify heap functions in a stripped binary. See 
	 the wiki for more info.


  -F, --follow-fork, --follow
	 Tells heaptrace to detach the parent and follow 
	 the child if the target calls fork(), vfork(), or 
	 clone().

	 The default behavior is to detach the child and 
	 only trace the parent.


  -G <path>, --gdb-path <path>
	 Tells heaptrace to use the path to gdb specified 
	 in `path` instead of /usr/bin/gdb (default).


  -w <width>, --width=<width>, --term-width=<width>
	 Force a certain terminal width.


  -o <file>, --output=<file>
	 Write the heaptrace output to `file` instead of 
	 /dev/stderr (which is the default output path).


  -v, --verbose
	 Prints verbose information such as line numbers in
	 source code given the required debugging info is
	 stored in the ELF.


  -V, --version
	 Displays the current heaptrace version.


  -h, --help
	 Shows this help menu.

  • Per esempio, se volessi collegare automaticamente gdb all'operazione #3, dovresti eseguire heaptrace --break=3 ./my-binary. Consulta la documentazione wiki per maggiori informazioni su come usare questo argomento.
  • Consulta la documentazione wiki per maggiori informazioni su come usare l'argomento -s/--symbol per il debug di binari stripped in cui heaptrace non è riuscito a identificare automaticamente le funzioni.
  • Imposta l'argomento $NO_COLOR per rimuovere i codici colore ANSI dall'output. Questa opzione è ancora in sviluppo e verrà convertita in un argomento a breve.

Supporto

Sono felice di aiutare se incontri un bug o hai feedback. Consulta la pagina GitHub Issues.

Scarica lo strumento