Commit Graph

1023 Commits (945f12a267d16eb1cab1be6e16f2ce4aa3ee2281)

Author SHA1 Message Date
Lonny Wong b218f34a36
add max display size for vis_heap_chunks (#1275)
3 years ago
Alan Li fbedf0b497
Add more comments about the changes in #1273 (#1274)
3 years ago
CptGibbon fc33d6fb7c
Develop Arena class (#1266)
3 years ago
Alan Li 42caec2552
Fix the bug in the heuristic for `main_arena` and `mp_` (#1273)
3 years ago
Alan Li 75ece8e2a8
Don't catch the error of the heap commands when `set exception-* on` (#1270)
3 years ago
Disconnect3d 8da9c5b9f9
Fix #1189: fixes patch command's arch=... value (#1269)
3 years ago
Alan Li db3a86abb4
Fix #1271 (#1272)
3 years ago
Disconnect3d 478a569cb3
Fix #1256: fixes next cmds hangs on segfaults (#1268)
3 years ago
Disconnect3d d42444274e
allow setting gdblib.regs.<reg>=<val> (#1267)
3 years ago
Gulshan Singh bfbb2b8652
Move symbol.py to gdblib (#1259)
3 years ago
Alan Li d79dbb672c
Enhances the error handling of the heap heuristic (#1242)
3 years ago
Gulshan Singh 6856e9294c
Move elf.py to gdblib (#1260)
3 years ago
Gulshan Singh 63b988a997
Move file.py to gdblib and improve procinfo test (#1258)
3 years ago
Gulshan Singh bb342a9286
GDB Refactor [18/N]: Move proc to gdblib/proc.py (#1247)
3 years ago
Gulshan Singh c3c8975b7a
GDB Refactor [19/N]: Move gdbutils/functions.py to gdblib (#1253)
3 years ago
Gulshan Singh 83a2fb0ba5
Move remote_files_dir into file.py (#1249)
3 years ago
Gulshan Singh 0bd3d3a37f
Remove unnecessary imports in __init__.py (#1252)
3 years ago
Gulshan Singh 13e1608ecd
Cleanup dependencies (#1251)
3 years ago
Gulshan Singh b0249dda6b
Cleanup load_gdblib() (#1248)
3 years ago
Gulshan Singh 8fdc423841
Move net.py to lib (#1246)
3 years ago
Gulshan Singh 6a40c09057
GDB Refactor [16/N]: Move tls.py to gdblib/tls.py (#1245)
3 years ago
Gulshan Singh 2eccf02b50
GDB Refactor [15/N]: Move stack.py to gdblib/stack.py (#1244)
3 years ago
Gulshan Singh 135ced5c9e Load commands and gdblib explicitly in __init__.py
3 years ago
Disconnect3d e5043535a3
Fix #1197: dont display ctx on reg/mem changes (#1239)
3 years ago
Disconnect3d 59889f1330
events.py: remove unused Pause class (#1223)
3 years ago
Gulshan Singh ebadd88220
Add --shell argument to pwndbg command (#1233)
3 years ago
lebr0nli 0237c1deff Make `CStruct2GDB` support `gdb.types.has_field()`
3 years ago
disconnect3d 32166d0ed3 fix #1221: ipi command multi-line inputs
3 years ago
lebr0nli c67f6ea412 Make the heuristic compatible with new heap code
3 years ago
Amogh Desai 3be4559970
leakfind should default to $sp (#1218)
3 years ago
disconnect3d 3974364e6d improve bugreport text
3 years ago
disconnect3d ae9661b7f3 bugreport command: use code listings
3 years ago
disconnect3d 12d4012142 remove defcon.py
3 years ago
disconnect3d 86e4679f79 add show-flags and show-compact-regs to ctx regs banner
3 years ago
disconnect3d b209ada229 Fix disable_colors formatting & test ctx disasm showing fds
3 years ago
disconnect3d 21794a6ec4 tips: add set show-flags on tip
3 years ago
CptGibbon 4069400262 Revert Chunk.size meaning, add Chunk.real_size
3 years ago
CptGibbon 74f07b33c5 Integrate Chunk class into malloc_chunk command
3 years ago
CptGibbon 36aaaf5a16 Remove redundancy in malloc_chunk command
3 years ago
CptGibbon 1542949443 Add bk_nextsize property to Chunk class
3 years ago
CptGibbon a25cdfe976 Add fd_nextsize property to Chunk class
3 years ago
CptGibbon ef6a84e821 Add flags mask to Chunk.size
3 years ago
CptGibbon 9aafed82be Change Chunk.size to Chunk.size_field
3 years ago
CptGibbon 10117946f2 Remove unused variable in flags property
3 years ago
Disconnect3d 521514b204
fix #1190: telescope -r with addr as count (#1198)
3 years ago
syheliel f571d5ca84 fix lint
3 years ago
syheliel 26ec474eae fix lint
3 years ago
syheliel 5324ba1d2a fix test
3 years ago
syheliel d5d39c85eb Add more type hint
3 years ago
syheliel ce7de2d443 fix `unpack(self, data: bytes) -> int:`
3 years ago
syheliel fe0c279c70 add type for ./pwndbg/lib/
3 years ago
disconnect3d d8a62f1120 Cleanup: remove ParsedCommand and fix search help string
3 years ago
Disconnect3d 8453ddc680 search command: remove unused string optional arg
3 years ago
lebr0nli bddaa408f8 Switch to default stdio before `import ipdb`
3 years ago
lebr0nli 87b1bed2c2 Use `pwndbg.lib.stdio.stdio` to refactor the code
3 years ago
lebr0nli 3f3746beb2 Print a warning for users if they don't have ipython
3 years ago
lebr0nli c7a72e226f Restore `sys.excepthook` after leaved IPython
3 years ago
lebr0nli 33d9e35b0f Avoid invoking a function of property when auto-completing
3 years ago
lebr0nli 6a3faa0a17 Support starting the Ipython prompt with `ipi`
3 years ago
CptGibbon df26a11b57 Remove `template_heap_command`
3 years ago
CptGibbon a138f7f890 More versatile chunk field name matching
3 years ago
CptGibbon 6e16c51edf More convenient access to individual chunk flags
3 years ago
CptGibbon 1a27176058 Lint
3 years ago
CptGibbon 1b3ac5ceac Add Chunk class & template_heap_command
3 years ago
disconnect3d 1ca4d2d33c Enhance heap with for static-linked binaries & remove typeinfo bloat
3 years ago
lebr0nli 4ad2d76327 Show less error when trying to load a non-exist type
3 years ago
disconnect3d 3b2f7796d6 Fix #1165: set context-clear-screen on resetting scrollback
3 years ago
Albert Koczy 30cd4c7372 fix: lint
3 years ago
Albert Koczy 9e84c18c44 fix: mprotect command and add tests for it
3 years ago
disconnect3d d2ba9955b5 fix lint
3 years ago
disconnect3d f322fae4a2 Show arch and emulation status on disasm banner
3 years ago
disconnect3d 703a7bdab9 Fix #1153 nextproginstr command
3 years ago
NT Sleep 560e1fc1e2
Fixed android check in procinfo (#1156)
3 years ago
Disconnect3d 446f5d5ae2
add patch command (#1150)
3 years ago
Disconnect3d cc3f86d5bc
Improve vmmap on coredump files (#1149)
3 years ago
Disconnect3d f125afc9aa
fix qemu vmmap showing coredump mappings (#1148)
3 years ago
Disconnect3d 88c610116e
fix distance command (#1146)
3 years ago
CptGibbon 8dae55490b
Add gdb.MemoryError check to get_heap() (#1145)
3 years ago
syheliel dea9a691d4
add color for modified registers (#1127)
3 years ago
syheliel 2296999ed9
add type for `./pwndbg/lib` (#1135)
3 years ago
Gulshan Singh ffdff0f966
Move argv.py to gdblib (#1141)
3 years ago
Gulshan Singh ccc56b9a58
Remove unused imports (#1139)
3 years ago
Gulshan Singh 40c4bf17da
Add types for some modules in lib/ (#1137)
3 years ago
Gulshan Singh 544ea0eab7
Linting/formatting improvements (#1138)
3 years ago
Gulshan Singh 84bba1b4de
GDB Refactor [11/N]: Move stdio.py to lib/ (#1133)
3 years ago
Gulshan Singh 2ea32b089a
Move qemu.py and remote.py to gdblib (#1130)
3 years ago
Gulshan Singh 8e212b46ef
Move strings.py and dt.py to gdblib (#1129)
3 years ago
Gulshan Singh 512db53edd
Split memory into lib/ and gdblib/ (#1128)
3 years ago
Gulshan Singh 869366bbf7
Fix incorrect import (#1131)
3 years ago
Gulshan Singh 6d573290ac
Move some modules into gdb/ (#1125)
3 years ago
Gulshan Singh eba90ee56b
GDB Refactor [6/N]: Move gcc.py into lib/ (#1124)
3 years ago
Gulshan Singh a002e29bc1
Split regs.py into lib/ and gdblib/ (#1121)
3 years ago
Gulshan Singh 692c4b82f6
GDB Refactor [4/N]: Split abi into lib/ and gdblib/ (#1120)
3 years ago
Gulshan Singh 36aa539f62
GDB Refactor [3/N]: Split android into lib/ and gdblib/ (#1119)
3 years ago
Disconnect3d b7ddf3a070
fix #1111 errno command edge case (#1126)
3 years ago
Gulshan Singh 2b62259d7e
GDB Refactor [2/N]: move some modules to lib/ (#1118)
3 years ago
Gulshan Singh 77380eb63c
GDB Refactor [1/N]: Split arch.py and related files into lib/ and gdb/ (#1114)
3 years ago
Disconnect3d 42f32d7cc7
fix errno command (#1112)
3 years ago
Alan Li 69d357633c
Some updates about Heap heuristics (#1075)
3 years ago
Gulshan Singh 2d483fcb12
Add smoke test (#1113)
3 years ago
Disconnect3d 099c766342
improve start and entry commands description (#1109)
3 years ago
Disconnect3d d12b6ecefc
ArgparsedCommand: fix `help cmd` and `cmd --help` behavior (#1108)
3 years ago
Disconnect3d 299f30be73
vmmap: use pwndbg.info.auxv instead of gdb.execute (#1107)
3 years ago
Lonny Wong e92a45ca26
support riscv:rv64 without capstone (#1096)
3 years ago
disconnect3d cf2c3eede8 bump version
3 years ago
Disconnect3d d4850beecc
fix #1098: dX cmds trunc out on x86 binaries (#1104)
3 years ago
Gulshan Singh 1df714d700
Fix PEP8 violations and add flake8 to CI (#1102)
3 years ago
Disconnect3d b3a560eff0
black all da code (#1103)
3 years ago
NT Sleep 5d358585b1
Add support for telescope to show previous addresses #1047 (#1094)
3 years ago
Disconnect3d e8109b98c1
Remove QuietSloppyParsedCommand once and for all (#1091)
3 years ago
Disconnect3d b51b07de77
Revert "Refactor heap code (#1063)" (#1084)
3 years ago
Gulshan Singh a0f3744743
Refactor heap code (#1063)
3 years ago
disconnect3d e7b4515e46 fix vmmap for qemu user targets
3 years ago
Arusekk 023a1c19b7
Avoid bare catch-all except blocks (#1080)
3 years ago
Disconnect3d c10c8f840b
Fix coredump debugging (#1079)
3 years ago
Disconnect3d a00ba56872
small refactor of vmmap module (#1078)
3 years ago
Disconnect3d 51bc5e2245
Fixes #1068
3 years ago
Disconnect3d 87114367c1
Revert "Remove shell commands registration (#1064)" (#1073)
3 years ago
Takumi Akiyama 19d59d521f
Replace with IDA 7.x API (#1024)
3 years ago
Disconnect3d 6dd25c3617
Improve search --next speed and add --trunc-out flag (#1066)
3 years ago
Disconnect3d 06cc17b6b4
Remove shell commands registration (#1064)
3 years ago
Alan Li 2c15d03899
Add support to use heap commands without debug symbols (#1029)
3 years ago
Artur Czepiel a4eb1e6610
Fix xor and memfrob (#1057)
3 years ago
Artur Cygan f2e5c98f23
Fix context args crash on missing instruction (#1055)
3 years ago
Gulshan Singh 214f993047
Add tip about $heap_base to tips.py (#1053)
3 years ago
Artur Cygan b27a59729f
Fix aarch64 regs display (#1054)
3 years ago
Lonny Wong 23b5ab0380
fix context showing unexpectedly on first command (#1042)
3 years ago
Gulshan Singh 9f5c514d3f
Add $heap_base variable after running the heap command (#1051)
3 years ago
Janusz Kamieński 4a7f9ada3d
Remove Python 2 legacy code (#1052)
3 years ago
egoism 5e78222d50
nearpc: convert pc to pointer (#1048)
3 years ago
Disconnect3d e867d1db0c
colorful tip of the day & more tips (#1046)
3 years ago
disconnect3d ee6e9f7526 Merge branch 'dev' of github.com:pwndbg/pwndbg into dev
3 years ago
disconnect3d a9b4aa205c tips: add a tip about command
3 years ago
disconnect3d 3d7d2bed4f tips: add a tip about `vmmap`
3 years ago
disconnect3d dbdda35c94 tips: add a tip about Pwndbg instruction emulation for better ctx display
3 years ago
disconnect3d efeb90579d tips: add a tip about context display
3 years ago
disconnect3d 26d90e8f97 tips: inform about the `procinfo` command
3 years ago
disconnect3d 5b7202ed2f tips: inform about the `canary` command
3 years ago
disconnect3d a66b95e7d2 tips: add tip about how we resolve kernel memory maps
3 years ago
Disconnect3d d2b2523695
Aarch64 regs: add X30
3 years ago
disconnect3d 641ee5f5a0 Fix #1045: dont dump kernel vmmaps out of qemu kernel debug
3 years ago
Lonny Wong 52d30e2a72 vmmap supports qemu aarch64 and riscv64
3 years ago
Your Name f8860ec936 fix path
3 years ago
Your Name 9105946b8b hack-pt-dump
3 years ago
disconnect3d 5943c5e16e Fix #1020: do not show syscall name/args for non-syscall interrupt instructions on x86/x64
3 years ago
disconnect3d 695011385c nearpc: don't create list in a .extend([ ... ]) call
3 years ago
Disconnect3d 8cc0ab8b48 Update tips.py
3 years ago
Hubert Bryłkowski 3d90b2916d tip is picked at random
3 years ago
Hubert Bryłkowski 417215fada show tip of the day is default
3 years ago
Hubert Bryłkowski c8f1dbc1de run tip of the day only on startup
3 years ago
Hubert Bryłkowski 1027ff2055 Added tip of the day
3 years ago
disconnect3d 71219361f5 refactor the _fs_gs_helper code
3 years ago
lebr0nli afbe6f0c6f Try fs/gs_base registers before ptrace'ing
3 years ago
Hubert Bryłkowski f7e107c1d7 fix isort
3 years ago
Bet4 34a5847f04 Add gp register to MIPS
3 years ago
disconnect3d 748f4ce401 fix isort
3 years ago
disconnect3d d49b29d150 improve setflags command
3 years ago
David 822c463701 fix to argument doc
3 years ago
David cfc22d4de6 adjusts spacing in imports
3 years ago
David 44bd4151ff Implements a setflag command for setting or unsetting individual flags in the $eflags register.
3 years ago
Joshua Pereyda f2fcc95c64 fix splitmind compatibility issues from PR #1012
4 years ago
Vasily Galkin 1604116965 Display symbol name for computed disasm address
4 years ago
dev2ero e9b9ebe364 add argparse exception for banner
4 years ago
Disconnect3d 9dac5d2371 Update pwndbg/commands/context.py
4 years ago
dev2ero f2d0fc2a01 bugfix: cast width's type from gdb.Value to int
4 years ago
dev2ero 782429c408 bugfix: For argparse, add nargs='?' parameter for default values
4 years ago
Yuri D'Elia 3e31bbea86 Try with lowercase xpsr register first on ARM Cortex M/gdb 8+
4 years ago
Bet4 c11ac3710b Show all registers of PowerPC
4 years ago
Bet4 1b3e43d983 Make pwndbg faster
4 years ago
Lonny Wong a6d4da9d23 ignore non utf-8 characters in the source code
4 years ago
AetherBreeze 136b3b6a80 Add fortified function signatures
4 years ago
Connor Nelson eec6f741c7 Use `add-symbol-file` correctly.
4 years ago
lonnywong cddbcb5ba5 Fix search bug in kernel mode
4 years ago
Tobias Faller 8b0595368d Fixed multiple alignment issues of compact register view
4 years ago
Samanta Navarro 38c38aacfa Fix typos
4 years ago
Rivit 84e783a6fb Ignore printing vertical tabs in vis_heap_chunks command
4 years ago
Disconnect3d d348c74996 Update emulator.py
4 years ago
AnyKeyShik Rarity 9448cf5543 Fix error message on interrupts
4 years ago
Disconnect3d 5c0627d65b Update pwndbg/glibc.py
4 years ago
cnwangjihe e0e32dca79 fix ending of chain
4 years ago
cnwangjihe 94eea64307 safe-linking: use __libc_version when debug symbols loaded
4 years ago
cnwangjihe 09f2cb648b Add safe-linking support
4 years ago
Disconnect3d 1d70e14418 Fix #932,#788: fix command parsing
4 years ago
Disconnect3d eee5dbcbf1 Remove Py2 class object inheritance
4 years ago
Disconnect3d ef86a5ca3c Remove shebang and coding lines
4 years ago
Disconnect3d 89b2df582a Remove incorrect i386 regs: dil/sil/spl/bpl
4 years ago
Disconnect3d 9a17798a5d Speedup emulator by disabling debug formatting when not debugging
4 years ago
Disconnect3d 270fef38e0 Remove redundant disasm.is_call function
4 years ago
Disconnect3d e239e9c1f6
Hopefully fix recursion error
4 years ago
anthraxx 3583b5704e fix(tempdir): use safe and unpredictable cachedir location
4 years ago
Arusekk 1c633829de Do not sort auxv, use the implicit order
4 years ago
Disconnect3d 6fd42dd5ab Add attachp command and tests for it
4 years ago
Disconnect3d 34f9535c5f Fix isort
4 years ago
novafacing 44394463e0 Maintain backward compatibility with Python < 3.10
4 years ago
novafacing 07b7c754cd Migrate to 3.10 compatible abc usage.
4 years ago
Nicky Lim b73973392d fix typo in dd command
4 years ago
Disconnect3d f11afe2c68 Fix get_highlight_source line splitting
4 years ago
SecMeant 8cc218f0b8 Adding p2p command - pointer chain search
4 years ago
CptGibbon a7a554f3c4 Add square brackets to vmmap's anonymous map names
4 years ago
Disconnect3d 648c7f014e
Fix heap unprinted messages
4 years ago