k4lizen
a049d72124
mallocng: Show slot statusline when printing meta ( #3245 )
...
* add line to dump_meta giving an overview of the allocation state of the group
* print slot state more sensically
* add and fixup status tests
4 months ago
Deepanshu Sharma
870825cd5f
changing PWNDBG_DISABLE_COLORS to NO_COLOR #3191 ( #3239 )
4 months ago
Matt.
822a32a254
Integrate Debugger-agnostic tests into the test pipelines ( #3215 )
...
* Add dbg tests to test suite
* Fix 0
* Check for OSError in OpportunisticTerminalControl
* Split tests tasks
* Fix go tests in LLDB
* Update TLS tests to handle LLDB failing to resolve %GS on LLDB
* Disable go-based x86 test for windbg commands on LLDB
* Fix listening to new modules being loaded in LLDB
* Force LLDB tests to run in series
Parallel execution is broken, anyway
* Fix mallocng tests in LLDB
* ptmalloc2: Always cast tcache counts to pointer during try-free
* Catch LLDB_INVALID_ADDRESS in LLDB symbol lookup
* Handle the binary formatting from LLDB in `test_vis_heap_chunks`
* Split GDB and DBG GDB Nix tests, remove DBG LLDB Nix tests
* Replace ParamSpec in type param list with explicit use
* Add mising dependencies in Ubuntu test targets
* Revert "Add mising dependencies in Ubuntu test targets"
This reverts commit bd56a6b9dc .
* Disable -fcf-protection in test binaries
* Disable LLDB tests on Ubuntu 22.04
We don't seem to even officially support it for pwndbg-lldb
4 months ago
k4lizen
43ce818c4c
mallocng: Add ng-vis command ( #3234 )
...
* ng-vis add simple dumping and coloring
* highlight all the in-band metadata
* pull out coloring, add legend, add decoration
* better colors
* add config option for default count
* add an ng-vis test
* swap alloc colors
* make coloring consistent in ng-slotu
* move ng-explain to the bottom of the file
* Fix mallocng tests in LLDB
* port vis test to /dbg
---------
Co-authored-by: Matt <4922458+mbrla0@users.noreply.github.com>
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
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
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>
5 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
5 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>
5 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
5 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
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
7e7c47f209
fix relative imports in tests ( #3163 )
...
* fix relative imports
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
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
jxuanli
7cec118771
Improving commands relating to paging ( #3146 )
...
* improving paging related commands
* adding command docs
* refactored x64 pagewalk
* implemented pagewalking for aarch64
* updated tests
* improved control register accesses
* detecting kernel phys start
* using pagewalk to resolve phys address for more accurate result
* updated tests
* pagewalk optimization
* fixed tests
* fixed based on comments
* improvements
5 months ago
jxuanli
040636ef2a
Improving `kconfig` ( #3145 )
...
* improving kconfig
* adding option to specify config file
* changed based on suggestions
5 months ago
jxuanli
4ee3ce2e4f
Adding custom address markers ( #3123 )
...
* added new bitflags to aarch64
* added custom address markers
* optimization
* supporting buddydump on aarch64
* supporting access to paging level
* cleaned up marker handling
* cleaned up marker handling further
* fixed doc
* supporting access to ptr_siz
* improved aarch64 vmmap
* fixed stuff based on comments
* cleaned up
* refactored
* cleaned up
* ldt remap
* improved paging commands
* improved physmap handling for aarch64
* improved physmap handling for aarch64 when ptrace scope is enabled
* improved physmap handling for aarch64 when ptrace scope is enabled
* linting
* improved caching
* cleaned up
* cleaned up kernel-vmmap=monitor handling
* cleaned up kernel-vmmap=monitor handling
* cleaned up vmemmap size calc for aarch64
5 months ago
patryk4815
df12edc0d5
Use gdb/lldb from pypi ( #3119 )
...
* add lldb/gdb pypi
* add gdb
* debug
* debug
* fix paths
* fix lldb
* add lldb-server
* bump lock
* fix nix
* fix lint
* rename gdbinit
* fix pwndbg nix
* revert missing files
* fix docs
* fix docs
* remove .skip-venv, not needed anymore
* cleanup version comment
* fix lint script
* lint
* fix nix develop
* fix docs
* fix docs script
* use 'pwndbg' binary for tests
* lint
* fix kernel tests
* fix ubuntu22.04
* bump lldb
* refactor gdbinit/lldbinit
* test1
* fix logger
* fix tests no-home
6 months ago
jxuanli
c25c60875d
Improving the slab commands ( #3135 )
...
* improving the slab command
* improved slab display
* displaying object inuse status
* removed verbose
* cleaned up
* updated test
6 months ago
Jason An
c82fbcd11f
Various arch fixes for Go dumping ( #3128 )
6 months ago
Jason An
a6cf06b8cf
Add support for dumping Go swissmaps ( #3127 )
6 months ago
Allen Chang
8bddb3d40f
Add command to display information about kernel modules ( #3106 )
...
* merge conflicts
* Fix lint errors
* fix test
* requested changes
* Fix lint errors
* Fix lint errors
6 months ago
Disconnect3d
dc46ade886
Disable Go dumping tests until we handle Go 1.24 properly ( #3122 )
...
* Disable Go dumping tests until we handle Go 1.24 properly
* Update test_go.py
* Skip tests instead of xfail
6 months ago
Allen Chang
0a4f9f8832
Add command to display information about kernel tasks ( #3099 )
...
* oops, merge conflicts fixed v3
* Fix lint errors
* ktask commit
* add uid/gid
* Fix lint errors
6 months ago
Matt.
31dd105e52
Rework structure of testing framework ( #3101 )
...
* First draft
* Second draft
* Add `TEST_USE_GDBINIT` toggle to gdb test library
* Fix qemu-system tests
* Split `qemu` into `qemu-user` and `qemu-system`
* Fix qemu-user tests
* Add coverage information for parallel tests
* Update dockerignore and documentation
* Update docs/contributing/writing-tests.md
---------
Co-authored-by: patryk4815 <bux.patryk@gmail.com>
6 months ago