Jason N. White
b06267d938
Update LICENSE.md, fix license year ( #2660 )
...
Signed-off-by: JasonnnW3000 <sufssl04@gmail.com>
11 months ago
patryk4815
ad90ec1a1a
fix hijack-fd, wrong register on x86_64 ( #2653 )
11 months ago
patryk4815
6890f2f291
Fix kernel-vmmap qemu detection ( #2652 )
...
* fix vmmap message
* lint
12 months ago
patryk4815
4e0f8a999e
Lazy argv ( #2649 )
...
* lazy argv
* lazy argv
* lazy argv
* lazy argv
* lazy argv
* lazy argv
* lazy argv
* lazy argv
* lazy argv
* fix lint
* fix regresion from PR 2240
* cleanup
* cleanup
* cleanup
12 months ago
patryk4815
2fb8a687ed
fix negative address in some places ( #2645 )
...
* fix negative
* fix negative
* fix negative
* fix negative
* fix negative
* fix negative
12 months ago
patryk4815
652b29945a
Port argv ( #2643 )
...
* Port argv
* fix update
* fix update
12 months ago
patryk4815
a476475d30
Fix binder ( #2642 )
...
* fix binder
* fix binder
* fix binder
* fix binder
* fix binder
* fix binder
* fix binder
* fix binder
* fix binder
* fix binder
12 months ago
patryk4815
f17ff92c61
Cleanup qemu-user, gdb<12, vmmap ( #2644 )
...
* cleanup qemu-user
* msg
* fix
* lint
* fix
* unused
* fix download file
* fix download file
* fix download file
* fix download file
* implement vFile api...
* implement vFile api...
* implement vFile api...
* implement vFile api...
* implement vFile api...
* implement vFile api...
* implement vFile api...
* implement vFile api...
* implement vFile api...
* implement vFile api...
* fix comments
* fix monitor
* lint
12 months ago
patryk4815
2061d74770
Add new dbg.Type methods: offsetof, enum_member ( #2639 )
...
* Add new dbg.Type methods: offsetof, enum_member
* Update pwndbg/dbg/__init__.py
* Update pwndbg/dbg/__init__.py
* fix offsetof
* fix offsetof
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
12 months ago
patryk4815
cc20bd6654
Add next part of adding kernel support for LLDB ( #2640 )
...
* add kernel support for lldb
* remove negative check
* int0
12 months ago
patryk4815
afbc93ff79
AUXV disable stack exploration ( #2641 )
...
* add auxv explore + procfs_auxv
* add auxv explore + procfs_auxv
* catch err
12 months ago
patryk4815
9f1753f4d0
Port kernel vmmap to aglib ( #2634 )
...
* Port kernel vmmap to aglib
* fix
* add comment
* add comment
* fix page
* fix page
* lint
* lint
* Update pwndbg/aglib/kernel/vmmap.py
* Update pwndbg/aglib/kernel/__init__.py
* Update pwndbg/aglib/kernel/vmmap.py
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
12 months ago
Disconnect3d
880f986dbd
codecov: disable PR annotations ( #2635 )
...
TL;DR: Disable annoying annotations about "this line is not covered by tests" from codecov when reviewing PRs
12 months ago
patryk4815
644f7c11c6
Port aglib.symbol + aglib.kernel + aglib.godbg ( #2605 )
...
* Move kernel files to aglib
* Rewrite to new aglib.symbol
* Fix argv error catch
* Rewrite to new aglib.symbol
* New dbg method lookup_symbol
* New dbg method lookup_symbol
* Fix symbol api
* Fix comments
* Fix symbols for gdb<15
* Fix mock lookup_symbol
* Fix godbg
* Fix lint
* Remove typeinfo.null, because crashing golang
* Fix regex names
* Fix lldb function types
* Port aglib.godbg
* Port aglib.godbg v2
* Fix gdb symbol
* Fix slab
* Fix kernel values
* Fix slab
* Fix enum v1
* Fix enum v2
* unused import
* Fix slab
* Fix kernel
* Fix args
* Hmm
* LLDB fields change type without none
* Fix test, function no args
* Fix kernel?
* Fix kernel?
* Lint
* Fix kernel slab
* Fix kernel slab
* cleanup
* gdb catch leaked error
* cleanup polish+enums
* Add new name_identifier in types
* Fix slab type
* Fix lint
* Fix `entry` / `start` commands
* Fix address to name in lldb
* lint
* Fix lldb resolve type
* cleanup, patch is in gdb
* fix docs
* Check for missing debug info
* Fix types
* Fix docs + add integration
* Fix typo
* fix func check
* change variable lookup
* fix cleanup regression
* fixy
* fixy
* add comment
* fixy
* fixy msg
12 months ago
patryk4815
f9d8fa0537
lldb add qemu-user ( #2628 )
...
* add qemu-user
* fixy
12 months ago
peace-maker
6e4f89b4ff
Fix context history with `cwatch`'d expressions ( #2617 )
...
The output of the expressions section changes even when running `context` multiple times after each other. The output variables in GDB are counted up when reexecuting the watched commands for example. The other sections don't change their output. This caused the history to be extended infinitely when using `ctxp` while having a `cwatch` command executed.
Special case the `expressions` context section in the history handling to avoid reevaluating the watched commands/expressions while browsing the history. This doesn't add the context output to the history when the expressions VALUES change somehow like it is done for the other sections, but since we cannot know if gdb counted up their output variable names from $1 to $2 or the value changed, this is a compromise.
12 months ago
patryk4815
6a983126da
Move gdb.py into dbg/gdb/__init__.py ( #2629 )
12 months ago
patryk4815
ea25cb5fb4
fix cleanup regression ( #2632 )
12 months ago
patryk4815
6a6203148b
Fix tls for aarch64 and arm ( #2626 )
...
* fix tls for aarch64 and arm
* fix comment
* arm register
* fix
12 months ago
patryk4815
f351f27780
Fix `entry` command ( #2627 )
12 months ago
patryk4815
ab43ce572f
Add hijack-fd command to modify the file descriptor of a process ( #2623 )
...
* add hijack fd
* fix comments
* lint
* lint
12 months ago
patryk4815
f0386821c8
fix lldb signed/unsiged values ( #2624 )
...
* fix lldb signed/unsiged values
12 months ago
CptGibbon
8a2debb9d6
Add hexdump to trailing user data for vis_heap_chunks command ( #2620 )
12 months ago
patryk4815
2c583c21d4
LLDB add command: `ipi` ( #2619 )
12 months ago
peace-maker
c6922cc644
Fix context history with disabled context-sections ( #2616 )
...
When gdb is started and context is disabled by clearing `context-sections` before a context output was ever issued, the context history failed to handle the empty history. It assumed that there would always be data in one of the sections after running the context command.
12 months ago
patryk4815
9c734cfc17
Fix readline bug ( #2622 )
...
* nix fmt
* lldbinit fix missing PWNDBG_NO_AUTOUPDATE
* gdb fix readline bug
* gdb fix readline bug
* add readline test
* fix block readline
* add readline test
12 months ago
patryk4815
c475417481
Improve pwndbg-lldb REPL ( #2625 )
...
* add pwndbg-lldb history file
* add pwndbg-lldb last_command
* fix arrow up key, history command
* fix arrow up key, history command
12 months ago
Matt.
6727be246f
Fix issues in the Heap Tracker ( #2604 )
...
* Allow reentrant memory management calls in the heap tracker
* Defer deletion of GDB breakpoints and improve handling of `free(0)` and `realloc(..., 0)`
* Display instances of `free(0)` in the output of the heap tracker
1 year ago
CptGibbon
1c3e9507aa
Remove vscode personalization from devcontainer ( #2602 )
1 year ago
Disconnect3d
029b36eb9b
Fix/improve UX of start/sstart/entry on remote targets ( #2600 )
...
* Fix/improve UX of start/sstart/entry on remote targets
Fixes #2584 by checking if the target is remote in `start`, `entry` and `sstart` commands.
* fix lint
1 year ago
K
21b0f6a1b1
add vmmap -C option ( #2595 )
1 year ago
koalajoe23
028fc7b757
Make setup.sh return non-zero for all errors ( #2599 )
...
When building a customized Docker image containing pwndbg using ubuntu:20.04 as base, the build process does not fail even when setup.sh exits because Ubuntu 20.04 isn't supported anymore.
I think setup.sh should make the Docker image build process fail by emitting non-zero return values.
1 year ago
patryk4815
53f77ad6a5
Fix readme: codecov wrong branch, install from tar.xz ( #2598 )
1 year ago
k4lizen
654a9c1b37
fix: dont start GdbFunction help text on a new line ( #2596 )
1 year ago
patryk4815
f63a47bade
Add workaround for deadlock in gdb, when calling gdb.execute inside stop event ( #2594 )
...
* Add workaround for deadlock in gdb, when calling gdb.execute inside stop event
* Add workaround for deadlock in gdb, when calling gdb.execute inside stop event
1 year ago
patryk4815
773cec7c4a
Cleanup gdblib ( #2592 )
...
* Cleanup gdblib
* Fix prompt hook
* Fix prompt hook
* Sync gdblib.memory with aglib.memory. There as missing event pause/resume
* Fix typing for kernel macros and binder
* Fix typing binder
* Update pwndbg/aglib/proc.py
* Update pwndbg/aglib/memory.py
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
1 year ago
Matt.
f4b86c7779
Add support for event suspention to the Debugger API ( #2593 )
...
* Add support for event suspention to the Debugger API
* Lints
1 year ago
Disconnect3d
5e7b406dff
Fix #2549 : block config.<name> assignments ( #2585 )
...
* Fix #2549 : block config.<name> assignments
This commit blocks `config.<param> = <value>` assignments as they should be done via `config.<param>.value = <value>`
instead.
* Update config.py
* add .value
1 year ago
Matt.
7658e2b707
Fix handling of absolute paths in `LLDBProcess._resolve_fullpath` ( #2591 )
1 year ago
Kacper Wojtowicz
1df92cb766
Strings command ( #2505 )
...
* added working strings command; no args
* added n, mapping_name and save-as arguments to strings command
* removed unnecessary whitespaces and imports (checked with ruff)
* simplified command function decorator and improve file handling
* accept multiple page names and improve argument handling
* Fix lint
* Update strings.py
* Fix lint
* Fix lint
* Update strings.py
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
1 year ago
patryk4815
1980aba40d
Added a workaround to correctly handle broken registers in unicorn ( #2587 )
...
* Added a workaround to correctly handle broken registers in unicorn
* Disable emulate when unicorn report error
* Refactor: disable emulate when error
1 year ago
Disconnect3d
ccb2fadce4
Improve tests.py stats handling ( #2586 )
1 year ago
Disconnect3d
1aa585af5d
Minor refactor of aglib/regs.py:get_register ( #2583 )
...
TL;DR: Don't check `frame` if it is not `None` already.
1 year ago
Aaron Adams
4fa42857ec
refactor: create ptmalloc2 and jemalloc command categories ( #2575 )
1 year ago
patryk4815
ce954f7448
Add workaround for gdbserver weird bug ( #2577 )
...
* add workaround for gdbserver, exception: Remote 'g' packet reply is too long
* Fix workaround for gdbserver, for single events
* cleanup redundant class
* cleanup _inner_handler
1 year ago
patryk4815
810571819f
Cleanup unused cache: Verified by disconnect3d to ensure no duplicate objfiles when using GDB remote ( #2580 )
1 year ago
patryk4815
15a80ad4a7
Port to aglib: entry ( #2567 )
...
* start: Port to aglib
* start: fix message on missing entry
1 year ago
patryk4815
64bd3fee8e
Port to aglib: ropgadget ( #2563 )
...
* Port to aglib: ropgadget, rop
* rop: fix capstone mode
* rop: fix msg
1 year ago
patryk4815
921ba71cf4
Port to aglib: onegadget ( #2564 )
...
* Port to aglib: onegadget
* onegadget: fix error handling
1 year ago
patryk4815
0076f108ab
Port to aglib: dt ( #2568 )
...
* dt: move dir
* dt: port to aglib
1 year ago