patryk4815
0ab9e902c6
fix knft for py3.10 ( #2722 )
...
* fix knft for py3.10
10 months ago
patryk4815
12207c8687
Add feature to dump kernel nftables ( #2679 )
...
* init add knft
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* Update pwndbg/commands/knft.py
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* fixy
* fixy
* fixy
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
10 months ago
OBarronCS
32f7436db6
Rename all occurences of .arch.current to .arch.name ( #2720 )
10 months ago
OBarronCS
5248b61f64
Pwndbg architecture name list ( #2712 )
...
* Create an authoritative list of architectures that Pwndbg supports. Add test to ensure some important mappings exist - add i8086 pwnlib mapping
* make pwnlib mapping 'none' by default
* Update pwndbg/dbg/gdb/__init__.py
Co-authored-by: patryk4815 <bux.patryk@gmail.com>
* Update pwndbg/lib/arch.py
Co-authored-by: patryk4815 <bux.patryk@gmail.com>
* Update pwndbg/lib/arch.py
Co-authored-by: patryk4815 <bux.patryk@gmail.com>
* More type safety with the list of supported types, handle iwmmxt, iwmmxt2, and xscale manually
---------
Co-authored-by: patryk4815 <bux.patryk@gmail.com>
10 months ago
Disconnect3d
494d9b89f5
tests.sh: print glibc version via ldd ( #2719 )
10 months ago
k4lizen
fca0e6575a
cleanup dt.py, dont print typedefs to primitives ( #2714 )
10 months ago
k4lizen
e99d4e7f0b
Relay parsing error information to argparse, don't except on command argument parse error ( #2711 )
...
* relay parsing error information to argparse
* fix gdb_mod typo in comment
11 months ago
podd0
a538b6737f
fix f string not working on older versions of python ( #2715 )
11 months ago
Disconnect3d
1ce7ee36e8
lldb: port version and bugreport commands + refactor ( #2708 )
...
* lldb: port version and bugreport commands + refactor
Port `version` and `bugreport` commands to LLDB.
Additionally, refactor them to provide better information and be less
bloated.
* fix lint
* fix lint
* fix lint
11 months ago
Matt.
3fef9a1556
Fix use of `detach` command in LLDB ( #2709 )
11 months ago
Disconnect3d
02faa58513
lldb: add support for attaching via `attach <pid|name>` ( #2705 )
...
* lldb: add support for attaching via `attach <pid|name>`
This commit adds support for the `attach <pid|name>` command so that it
can attach to a pid or full process name similarly to as in LLDB.
Please note that this LLDB command is a bit confusing.
It may seem it is an alias for `process attach` as in here:
```
(lldb) attach -n -w htop
error: 'process attach' doesn't take any arguments.
```
However, in practice it is not. It is an alias for `_regexp-attach`:
```
(lldb) help attach
Attach to process by ID or name. Expects 'raw' input (see 'help raw-input'.)
Syntax: _regexp-attach <pid> | <process-name>
'attach' is an abbreviation for '_regexp-attach'
```
...which has its own problems:
1) it does not perform any regexp match in practice. passing `hto.*`,
`hto?` or `hto[p]` will not attach to `htop`. One must pass the full process name like `htop`.
2) it can work without arguments, which is stupid and we should not
support it?:
```
(lldb) _regexp-attach
There is a running process, detach from it and attach?: [Y/n] y
Process 56358 detached
Process 56358 stopped
* thread #1 , queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0 : 0x00007ff8118bedd2 libsystem_kernel.dylib`__select + 10
libsystem_kernel.dylib`__select:
-> 0x7ff8118bedd2 <+10>: jae 0x7ff8118beddc ; <+20>
0x7ff8118bedd4 <+12>: movq %rax, %rdi
0x7ff8118bedd7 <+15>: jmp 0x7ff8118b737b ; cerror
0x7ff8118beddc <+20>: retq
```
* fixup
* Update pwndbg/dbg/lldb/repl/__init__.py
Co-authored-by: Matt. <dark.ryu.550@gmail.com>
---------
Co-authored-by: Matt. <dark.ryu.550@gmail.com>
11 months ago
OBarronCS
1f9ec9631e
Add initial support for Loongarch64 ( #2691 )
...
* Support for loongarch64. Add Loongarch64 register set definition, make a ManualPwndbgInstruction to define an instruction without a Capstone object underlying it, and detect Loongarch64 on GDB
* Update pwndbg/aglib/disasm/instruction.py
* Use Python Protocols to create an interface that the two PwndbgInstruction implementations conform to + make suggested changes
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
11 months ago
Aadish Jain
fea2f92ae5
Removing function OnlyWithArch from commands.init ( #2697 )
11 months ago
Nikoś
9d71c70aa6
Update docs workflow deploy job with README.md -> index.md ( #2701 )
11 months ago
xtex
f4ccb8360e
Remove gdbserver from package list when using oma ( #2698 )
...
On AOSC OS, gdbserver is included in gdb.
11 months ago
Nikoś
ccde99e546
Fix mkdocs warnings about used links in README.md ( #2695 )
...
Added full urls instead of relative.
11 months ago
Nikoś
eac09e7314
Replace docs index.md with README.md ( #2694 )
11 months ago
patryk4815
8493f9ce3b
implement LLDB disasm func, pwndbg fallback there when capstone is not available ( #2693 )
11 months ago
Matt.
53bc84fe86
Add support for attach to LLDB ( #2684 )
11 months ago
patryk4815
8b2952ef1b
Fix gdb16+ ( #2686 )
...
* gdb16+ now need `import gdb.types`
* gdb16+ now need `import gdb.types`
* fix core file test
11 months ago
Alan Li
246e88bd13
Suppress warnings when errors occur while running the `onegadget` command ( #2683 )
11 months ago
Disconnect3d
4148d1095e
Update FEATURES.md ( #2681 )
11 months ago
patryk4815
ef9a40317f
Port binja integration to aglib ( #2676 )
...
* port binja integration to aglib
* rem import
11 months ago
Dominik 'Disconnect3d' Czarnota
4b70da5a64
bump version
11 months ago
patryk4815
3420754653
Fix binja_integration.md ( #2680 )
11 months ago
k4lizen
6a779b0d86
Fix terminal size calculation ( #2675 )
...
* dont ask the debugger for terminal size when it is not the output target
* use stdout instead of stdin because of #2459
11 months ago
patryk4815
c61fcf5c0c
Enable ubuntu-arm on github actions ( #2678 )
...
* enable ubuntu-arm on github actions
11 months ago
patryk4815
7bda89c754
mention lldb in readme ( #2677 )
...
* mention lldb in readme
* mention lldb in readme
* mention lldb in readme
* mention lldb in readme
* add table
11 months ago
patryk4815
2546eef4ab
Fix poetry ( #2672 )
...
* fix pwndbg-gdb for portable build
* fix poetry lock
11 months ago
Richard Liu
e5b1925d8d
Add profiler command and lazy load functions table ( #2671 )
...
* lazy load functions table
- for faster startup times (around 8% faster)
* add profiler command
* add unit tests
* fix linter errors
* unit test fix comparison
Use `is` instead of `==` for strict equality.
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
* add profiler usage and allow changing output file
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
11 months ago
Richard Liu
6912875d7a
speed up pygments lexer selection ( #2670 )
...
- select a matching lexer based on filename only
- dramatically speeds up time of the first `context` when there is debug
source code that needs to be highlighted (3-4x speedup, from 0.8s to
0.2s on my machine)
- the only chance that a lexer can be selected wrong is when a plugin lexer
has the same filename pattern as a built-in lexer (in which case the
built-in lexer will always be used)
11 months ago
CptGibbon
02590b6134
Add partial overwrite support to find_fake_fast command ( #2667 )
...
* Add partial overwrite candidate to test binary
* Add --partial-overwrite option
* Add partial overwrite test case
* Implement partial overwrite feature
11 months ago
beatweichsler
882cd5ad7f
changed 2024 to 2025 in readme ( #2668 )
...
* changed 2024 to 2025
* Update README.md
changed line 15
* removed space
---------
Co-authored-by: Beat Weichsler <beatweichsler@Beats-MacBook-Pro.local>
11 months ago
patryk4815
dd75e208eb
Add support for pwndbg (gdb) on apple silicon chips ( #2666 )
...
* bump nix
* add ci
* add pwndbg to nix darwin
* fix test
11 months ago
patryk4815
d1896f9afc
Disable stack and vmmap exploration ( #2646 )
...
* disable stack exploration
* disable stack exploration
* disable stack exploration
* disable stack exploration log
* disable stack exploration
* disable stack exploration
* disable stack exploration
* remove log
* revert old code
* lint
* add page
* add page
* unused now
* fix riscv lldb
* fix send_remote
* fix send_remote
* fix send_remote
* fix send_remote
* fix send_remote
* fix send_remote
* fix stack
* fix stack
* fix stack
* fix stack
* debug
* debug
* fix vmmap
* fix vmmap
* fix vmmap
* fix vmmap
* fix vmmap
* fix vmmap
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* fix stack
* Fix docker
* add vmmap_load info sections
* add vmmap_load info sections
* fix kernel
* lldb add run-args
* lldb add run-args
* lldb add run-args
* lldb add run-args
* lldb add run-args
* fix elf auxv
* port vmmap to aglib
* port vmmap to aglib
* fix stack
* fix stack
* fix file_get
* fix lint
* fix sloppy_gdb_parse
* fix get_file
* fix qemu-user remote
* commit suggested changes for `send_remote`
* commit suggested changes for `send_remote`
* commit suggested changes for `get_custom_pages`
* commit suggested changes for `send_remote`
* commit suggested changes for objfile names
* commit suggested changes for comment
* commit suggested changes for get_memory_flags
* commit suggested changes for vmmap_add help
* lint
11 months ago
patryk4815
4b8ead3d16
Fix docker build failure caused by new Poetry ( #2662 )
11 months ago
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 )
12 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