Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
heaptrace — Ajuda a visualizar operações de heap para pwn e depuração | Kitploit
Ferramentas/GitHubGitHub/arinerron/heaptrace
Forensia de MemóriaDepuradoresCTFAnálise de Binários
GitHubarinerron/heaptrace

heaptrace

Ajuda a visualizar operações de heap para pwn e depuração

Ver Repositório
33019há 3 anosRevisado pelo Kitploit

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar

Sobre

heaptrace é um depurador de heap para rastrear operações de heap glibc em binários ELF64 (x86_64). Seu objetivo é ajudar a visualizar operações de heap ao depurar binários ou fazer heap pwn.

screenshot.png

  • substitui endereços por símbolos fáceis de entender
  • detecta corrupção de heap e problemas de vazamento de memória
  • pode depurar no gdb a qualquer momento (--break)
  • suporta todos os binários ELF64 (x86_64) independentemente de configurações de ASLR ou compilador (incluindo binários stripped)

Como heaptrace e valgrind são diferentes?

Instalação

Lançamentos Oficiais

Veja os arquivos de lançamento .deb e .rpm, e um binário pré-compilado na página de Lançamentos.

Ubuntu PPA

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

Arch User Repository (PKGBUILD)

Use seu auxiliar AUR preferido para instalar um dos dois pacotes seguintes:

  • heaptrace-git — pacote fonte (PKGBUILD)
  • heaptrace — pacote binário (PKGBUILD)
root@kitploit:~
$ trizen -S heaptrace-git
... OR ...
$ trizen -S heaptrace

Compilar a partir do Código Fonte

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

Uso

Você pode especificar argumentos para heaptrace antes de especificar o nome do binário:

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.

  • Por exemplo, se você quisesse anexar o gdb automaticamente na operação nº3, executaria heaptrace --break=3 ./meu-binario. Por favor, veja a documentação do wiki para mais informações sobre como usar este argumento.
  • Veja a documentação do wiki para mais informações sobre como usar o argumento -s/--symbol para depurar binários stripped onde heaptrace não conseguiu identificar automaticamente as funções.
  • Defina o argumento $NO_COLOR para remover códigos de cor ANSI da saída. Esta opção ainda está em desenvolvimento e será convertida em um argumento em breve.

Suporte

Ficarei feliz em ajudar se você encontrar um bug ou tiver algum feedback. Por favor, veja a página GitHub Issues.

Baixar ferramenta