Disconnect3d
f6aa45547b
version command: add OS name
...
Before:
```
pwndbg> version
Pwndbg: 2025.05.30 build: d817efc32
Python: 3.13.5 (main, Jun 22 2025, 16:29:31) [GCC 15.1.1 20250425]
LLDB: 20.1
Capstone: 6.0.0
Unicorn: 2.1.3
Pwnlib: 4.14.0
```
After:
```
pwndbg> version
Pwndbg: 2025.05.30 build: d817efc32 (Linux)
Python: 3.13.5 (main, Jun 22 2025, 16:29:31) [GCC 15.1.1 20250425]
LLDB: 20.1
Capstone: 6.0.0
Unicorn: 2.1.3
Pwnlib: 4.14.0
```
4 months ago
Disconnect3d
279c1caacc
refactor pwndbg.lib.abi: use tuples instead of lists ( #3225 )
...
Use tuples instead of lists when tuples are enough.
4 months ago
Disconnect3d
adc988f9ee
setup-pwndbg-dev.md: fix lldb dev run step ( #3226 )
4 months ago
k4lizen
b3f608d15f
fix aarch64 abi ( #3224 )
4 months ago
k4lizen
0f2c02bb90
mallocng: Allow users to index into groups and metaareas ( #3216 )
...
* index into a group
* index into a meta area
* add ng-ma alias for mallocng-meta-area
* check for negative index
4 months ago
k4lizen
1b2475f6bf
improve 'start at first instruction' docs ( #3222 )
4 months ago
patryk4815
d817efc328
uv: bump lldb and gdb ( #3218 )
...
* uv: bump lldb and gdb
* bump pyproject-nix
4 months ago
patryk4815
83de3e5bd5
nix: fix unicorn for apple arm64 VM ( #3217 )
...
* nix: fix unicorn for apple arm64 VM
* fix
4 months ago
patryk4815
f9f90d9f02
Replace pwnlib.asm.asm with pwndbg.lib.zig.asm ( #3207 )
...
* Replace pwnlib.asm.asm with pwndbg.lib.zig.asm
* fix search
* move unit-tests to ci
* include pwnlib
* fix test
* fix docs
* fix comment
* fix import
* fixy
4 months ago
k4lizen
ca0b86d04c
mb ( #3213 )
4 months ago
k4lizen
450e22c1ba
docs: Add section about distro package installation ( #3208 )
...
* add section about distibution packages
* highlight
4 months ago
OBarronCS
54099990ab
RISC-V ret instruction resolution ( #3211 )
...
* Fix 'ret' alias of JALR in RISC-V, add test
* lint
4 months ago
Matt.
630eac36c8
Port tests to debugger-agnostic test group: Second Batch ( #3189 )
...
* Add even even more tests
* Fix 0
* Fix 1
* Add heap tests
* Fix 0
* Match new module layout
* Fix a couple of tests
* Backport test binary changes to GDB suite
4 months ago
jxuanli
ce96907d45
`slab` command improvments/fixes ( #3204 )
...
* slab fixup
* fixing detection of kasan configs
* improving cpu cache handling
* improving page struct handling and aarch64 vmemmap base detection
* checks and fixes
* improvments
4 months ago
k4lizen
052574f96e
align telescope columns ( #3206 )
4 months ago
Allen Chang
26db4533aa
Add command to display information about kernel syscalls ( #3103 )
...
* merge conflicts
* Fix lint errors
* ksyscalls
* Update pwndbg/commands/ksyscalls.py
* Requested changes
* docs
* merge fix
* Minor change
* Minor change in test
* Check sys_call_table symbol
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
4 months ago
k4lizen
335cc887c6
mallocng: Add tests for mallocng commands ( #3188 )
...
* build the mallocng binary as static and dynamic
* ng-slots and ng-slotu tests
* add musl to apt and pacman dev deps
* lint
* dont test for heap addr since donation is flaky
* add ng-group check
* add ng-meta test
* remove inconsistent check
* add ng-ctx test
* test ng-find
* ng-metaarea test
* make tests debugger agnostic
* buffer1 typo
4 months ago
patryk4815
b3184c7737
cymbol: use zig compiler ( #3202 )
...
* cymbol: use zig compiler
* fix lint
* fix mypy
* fix msg
* fix platform
* fixy
4 months ago
Matt.
a5d5988020
Assorted enhancements and bug fixes to LLDB ( #3190 )
...
* Add offsets to symbol names in LLDB
* Disable context line reservations if colors are disabled
* LLDB: More aggresively verify memory writes
* LLDB: Add support for disabling ASLR
* Add `-a` flag to `plt` command to show all symbols
* Start shellcode execution at next aligned instruction address, instead of current PC
* Improve execution speed for the `nextproginstr` command
* When resolving address expressions in windgb commands, try resolving as symbol firt
* LLDB: Relay exceptions from commands
* LLDB: Capture stderr in addition to stdout when capturing command output
* Move disabling of line reservations to LLDB test host
* Update docs
4 months ago
Disconnect3d
735ebbeba2
Add more "Pwndbg in the wild" talks ( #3203 )
...
* Add more "Pwndbg in the wild" talks
* Update pwndbg-users.md
4 months ago
patryk4815
ba76f19849
ziglang now supports s390x and riscv64 ( #3201 )
4 months ago
William Tan
404de92e2c
fix: exec -a is not posix compliant ( #3194 )
4 months ago
patryk4815
61298cc525
Fix release ( #3187 )
...
* fix s390x build https://github.com/NixOS/nixpkgs/pull/428446
* fix ziglang build
* arm64 build is faster than x86_64
4 months ago
Matt.
15524bcfaa
Port tests to debugger-agnostic test group: First Batch ( #3165 )
...
* Add supporting functionality
* Add initial ported test
* Fix 0
* Fix 1
* Add dbg/test_command_plist.py
* Fix 0
* Fix 1
* Fix 2
* Fix 3
* Add more tests
* Fix 0
* Add more tests
* Add even more tests
* Fix 0
* Adapt tests to module structure
* Remove coverage warning in LLDB test driver
* Remove `*_before_binary_start` tests, as they are flaky in LLDB
* Skip `test_command_break_if_x64` if not in GDB
* Update tests/host/lldb/launch_guest.py
Co-authored-by: patryk4815 <bux.patryk@gmail.com>
* Update tests/host/lldb/launch_guest.py
* Import `shlex` in `launch_guest`
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: patryk4815 <bux.patryk@gmail.com>
4 months ago
jxuanli
9aabc0b83d
Supporting kernel debugging in the absence of provided type information ( #3116 )
...
* recoverying from rm -rf
* refactored kconfig
* collapsing merge history
* cleaning up
* refactored out buddydump and slab type helpers
* improving bud and slub
* improved arch specific symbol handling
* improved handling of vmemmap and vmalloc bases when symbols do not exist
* misc
* doc
* properly naming kernel symbol files
* try except for cases where ptrace_scope is enabled
* fixing test
4 months ago
Disconnect3d
90aa3aa082
kallsyms.py: trivial refactor - use tuple instead of list ( #3184 )
4 months ago
Rachit Kumar Pandey
2f19e96f49
feat(cyclic): Add --detect flag in cyclic command ( #3162 )
...
* feat(cyclic): Add --detect flag to find patterns in registers
* regenerate docs
* Update pwndbg/commands/cyclic.py
* add tests for `cyclic --detect`
* Add timeout argument for --detect
* update docs
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
4 months ago
patryk4815
12237f4c0b
ZIGPATH cleanup ( #3175 )
...
* add ziglang to uv
* ZIGPATH cleanup
* bump uv2nix and pyproject-nix & nix fmt
* fix darwin version
* guard makefile with PWNDBG_NO_UV
* clean
* pass zigcc to makefile
* pass zigcc to makefile
* nix-ci install uv
* fix uv detection
* fix uv detection
* fix uv detection
4 months ago
patryk4815
72dc157686
Drop external `ps` calls in favor of `psutil` ( #3179 )
...
* Drop external `ps` calls in favor of `psutil`
* if pid is None, return
* fix test
4 months ago
k4lizen
bc3b5ec5dd
mallocng: Various fixups 2 ( #3180 )
...
* clarify offset extra message
* clarify free and avail slots in ng-explain
* clarify hdr reserved == 7
* fix up donated group message
* fixup is_mmaped() check
* make ng-ctx lookup more strict, better UX
* fix our ctx reference becoming stale
* simplify class Mallocng init code
* fix edge case in ng-find
* change shallow=True to always get the outermost group, instead of the first group hit
4 months ago
纯真
a6d3f4e4b2
fix typo ( #3177 )
5 months ago
k4lizen
fb8128bdd0
Set frame register for aarch64 ( #3174 )
...
* set frame register for aarch64
* check the frame == None edge case
* Update pwndbg/lib/regs.py
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
5 months ago
k4lizen
df03112578
mallocng: Add ng-metaarea and ng-ctx commands ( #3164 )
...
* add missing type annotations
* ng-metaarea to dump meta_area objects
* ng-ctx: command to dump the __malloc_context object
* autogen docs
* properly bail if we cant find the __malloc_context
* take the p var out of `from_start`
5 months ago
k4lizen
500bb9edbc
Cleanup the "find gcc" code ( #3169 )
...
* use -m64 compilation on 64-bit targets
* use the pwntools which() function
* make default in y/n obvious
5 months ago
k4lizen
0e39240186
Make ida integration work in shared libraries ( #3172 )
...
* Make ida integration work in shared libraries
* lint
* edge case happens too often
* make the check faster (and change the contract abit)
5 months ago
k4lizen
46047f6530
improve ghidra integratino docs ( #3171 )
5 months ago
patryk4815
33002925f8
bump: zig-0.13.0 -> zig-0.14.1 ( #3166 )
...
* bump: zig-0.13.0 -> zig-0.14.1
* fix
* fix musl without hard fload abi
* fix tests asm
* fix heap_bugs?
* libpthread.so.0 is required for glibc 2.33, see https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html
5 months ago
patryk4815
c24bf4046d
bump: psutil-6.1.1 -> psutil-7.0.0 ( #3167 )
5 months ago
patryk4815
dafa42a02e
bump: nixpkgs 22.07.2025 ( #3168 )
5 months ago
sh4dowkey
7d92563ab4
Refactor cymbol command to use subcommands ( #3160 )
...
* Add --show-all flag to cymbol to list all custom structure names
* Fix: Apply ruff formatting to cymbol.py
* Fix: Regenerate cymbol docs for --show-all flag
* Refactor cymbol command to use subcommands
* fixed Lint/lint prolem
* fixed Lint/lint problem
* fixed Lint/lint problem
* fixed Lint/lint problem
* added --flag
* Fix: remove --show-all causing argparse conflict
* fixed code
* Update pwndbg/commands/cymbol.py
Co-authored-by: k4lizen <124312252+k4lizen@users.noreply.github.com>
* Update docs/commands/misc/cymbol.md
---------
Co-authored-by: parrot <parrot@localhost.localdomain>
Co-authored-by: An0nAN4N7 <143926241+An0nAN4N7@users.noreply.github.com>
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: k4lizen <124312252+k4lizen@users.noreply.github.com>
5 months ago
patryk4815
7e7c47f209
fix relative imports in tests ( #3163 )
...
* fix relative imports
5 months ago
AG
b27b5bf2c2
Fixed output message when unmatched mapping was encountered in the `base` function. ( #3158 )
...
* Fixed traceback in () on unmatched mappings
* Show cleaner output for () no mapping found error
* fix docs
5 months ago
patryk4815
f7f8b31f4f
add relative imports into tests ( #3161 )
...
* add relative imports into tests
* fix lint
* fix run
* fix imports
* fix lint
* fix mocks
* fix unit_tests
* fix collect
* fix execute with nix
* fix qemu-system
5 months ago
Matt.
365af330ef
Add LLDB test driver and initial Debugger API tests ( #3120 )
5 months ago
k4lizen
032ba5fb96
mallocng: implement inspection of non-allocated slots ( #3152 )
...
* allow ng-find to return free/avail slots
also pulled out Mallocng.find_slot which returns the Slot instead of just the address
* better slot_state calculation, print it with ng-slot*
* propagate group/meta info when going through find
* add GroupedSlot to propagate find_slot information
* show GroupedSlot data to user when local reading fails
* gate the search behind a config option
* sanely handle insane slots
* use alt values for some meta fields
* get rid of set_padding
* add extra line for visual clarity
* autogen docs
* fix extra alignment
5 months ago
An0nAN4N7
63812e0043
Add --show-all flag to cymbol to list all custom structure names ( #3157 )
...
* Add --show-all flag to cymbol to list all custom structure names
* Fix: Apply ruff formatting to cymbol.py
* Fix: Regenerate cymbol docs for --show-all flag
---------
Co-authored-by: parrot <parrot@localhost.localdomain>
5 months ago
Elijah Hauber
0abe0a8066
Add tests for issue #2621 ( #3148 )
...
* Add tests for issue #2621
https://github.com/pwndbg/pwndbg/issues/2621#issuecomment-2595162380
* Update to use xuntil, use threading event, and reduce time for timeout
* fix f-string mistake
5 months ago
OBarronCS
e5530ca8f3
Correctly disable emulation on selected instructions ( #3155 )
5 months ago
OBarronCS
c189974445
Adjust relative path to .zig directory in Makefiles after directory restructure ( #3153 )
5 months ago
k4lizen
93275b45db
mallocng: add ng-slots command ( #3144 )
...
* move slot printing out to a func; add ng-slots
* make ng-find use this now
5 months ago