Commit Graph

1023 Commits (945f12a267d16eb1cab1be6e16f2ce4aa3ee2281)

Author SHA1 Message Date
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
Disconnect3d e2c899e4e5 Fix isort lint import issues
4 years ago
Disconnect3d 00e94a9b4a Fix unprinted 'Unknown register' context warning
4 years ago
Disconnect3d 8975d42c4d Better pwndbg.commands.OnlyWithFile error for QEMU targets
4 years ago
Disconnect3d c294ede7f9 pwndbg.file.get_file: better warning message
4 years ago
Disconnect3d 32cdc10442 piebase, breakrva: print error on failures
4 years ago
Disconnect3d 71291d85ba Fix vmmap_load on remote targets
4 years ago
Disconnect3d 790ba574c0 Refactor pwndbg.proc.exe and pwndbg.proc.get_file
4 years ago
Disconnect3d 933be39838 Extend pwndbg.proc.exe docs
4 years ago
Disconnect3d 3e4ad608af Fixes #955: don't return 'target:' prefix in pwndbg.proc.exe
4 years ago
Disconnect3d 56e0ce4881 Remove reset_on_new_base_address decorator
4 years ago
Disconnect3d 2bbacb27d9 Remove unused memoize import from arch.py
4 years ago
Disconnect3d 38904cc9b8 Remove unused 'long' from regs.py
4 years ago
Disconnect3d 30dd9b4479 Disable memory pages exploration for now
4 years ago
Kyle ZENG 6345078ae3 prevent pwndbg from crashing in qemu mode
4 years ago
Disconnect3d d753c0455f Fix #954
4 years ago
Disconnect3d 0068257ebe Fix qemu.is_usermode and qemu.kernel
4 years ago
cnwangjihe 2bef07faa0 Fix __libc_malloc_initialized not found in glibc 2.34
4 years ago
Disconnect3d fd3c6e2d8b Update arguments.py
4 years ago
disconnect3d 1bbc39d9bd format_args: display fd path
4 years ago
Artur Cygan c93bc3e70c Add memoize command for toggling caching, useful for debugging pwndbg
4 years ago
Disconnect3d 69094409f5 Fix aslr command and file.get_file on QEMU targets
4 years ago
Disconnect3d 27506431e8 Fix bug when restarting binary after set disable-randomization off
4 years ago
Disconnect3d dc0e1f419a elf.py: optimize get_ehdr
4 years ago
Disconnect3d 66d5d6cc51 Fix early arch detection & the 'Cannot find ELF base!' warning
4 years ago
Disconnect3d 8faa634efa vmmap: dont get on new_objfile
4 years ago
Disconnect3d cc84a1534d
Update enhance.py
4 years ago
disconnect3d 93f9b12007 Fix context when reg value deref fails
4 years ago
disconnect3d b9e7bf1a75 Fix exception when pwndbg is sourced after attach
4 years ago
Matteo Rizzo 4f8db3a7d5 vmmap: add filter for writable/executable pages
4 years ago
Disconnect3d 72ca4d8fc0
Update canary description
4 years ago
Disconnect3d 462eb53eed vmmap: name anonymous pages
4 years ago
lonnywong 5517792bd3 strip colors like \x1b[38;5;148m
4 years ago
lonnywong aefcde5b3c add columns config for registers view
4 years ago
Adam Doupe 43f69825c9 Fix broken leakfind command
4 years ago
Disconnect3d 668e53f527
Fix xinfo used with symbols that are function pointers
5 years ago
veritas501 8db8f4d25a fix: update_length() raise exception in some cases
5 years ago
Marco Bonelli 30d6745796 Make brva alias accept same args as breakrva
5 years ago
veritas501 aa25aac332 fix(disasm,emulate): support mips32r6
5 years ago
veritas501 44471dfd91 fix(emulate): refix emulate, let it works correct on unicorn-1.0.2rc1 ~ unicorn-1.0.2
5 years ago
veritas501 99a5ef39bd fix exception raised by cs.syntax when debugging mips binary
5 years ago
veritas501 5389eb668d fix(emulate): let `emulate` works on unicorn-1.0.2rc1 ~ unicorn-1.0.2
5 years ago
anthraxx 87da998fce fix(telescope): also unroll buffer if last line is skipped
5 years ago
anthraxx 05036defa0 fix(telescope): avoid superfluous whitespace after register column
5 years ago
anthraxx 75b42495b8 feature(telescope): reduce cognitive load by adding skip count label
5 years ago
anthraxx baf3fe7b5c feature(telescope): option to set min repeating values before skipping
5 years ago
anthraxx 14325af53f chore: clean up unused imports
5 years ago
anthraxx a8c2fb5342 fix(ui): fix display of addrsz to be hex formated
5 years ago
anthraxx a5c9738eec feature(radare2): add r2pipe command to execute stateful radare2 cmds
5 years ago
anthraxx 5d0441b340 feature(shell): put 'pwn' into allow list for pwntools
5 years ago
anthraxx 87bf6ac0f9 chore(ghidra): simplify logic and clean up code flow
5 years ago
anthraxx 707fe12e3d chore(ghidra): use memoize feature to cache r2pipe handle
5 years ago
anthraxx 44770fd71f fix(ghidra): handle PIE base address when opening the r2pipe
5 years ago
anthraxx 71ca7213e2 feature(ghidra): use configurable code prefix marker for line indicator
5 years ago
anthraxx a100d87fdc fix(ghidra): make if-no-source condition work as expected
5 years ago
anthraxx 6354fdce7a fix(ghidra): avoid crash if we try to decompile a faulty addr/func
5 years ago
anthraxx e8b51243c8 chore(ghidra): modularize ghidra functions into utils and commands
5 years ago
Levente Polyak b036575589
feature(radare2): add argument to set base when loading for PIE (#897)
5 years ago
Bintang Fikriguska 00c97409c7
use_info_auxv() : change regex (#894)
5 years ago
Tobias Faller 96df189e97
Changed register list to use precomputed tuples (#866)
5 years ago
Israel Alberto RV cd0cd8280e
Fixed bug when the GDB is debuggin an architecture arm-eabi (disassembly-flavor). (#889)
5 years ago
Disconnect3d 4d213a1f90
Fix #881 (#883)
5 years ago
Disconnect3d ae6f25a810
Fix #858 (#877)
5 years ago
Israel Alberto RV bf49bf8356
Unit test fix (#868)
5 years ago
Bet4 5639589f5a
Remove unimplemented dlmalloc (#874)
5 years ago
Tim Gates c31c720ded
docs: fix simple typo, divison -> division (#870)
5 years ago
Israel Alberto RV f74aa34cde
The disassembly flavor is hard-coded. It does not change from Intel to AT&T (#860)
5 years ago
GGyul-E cc92959fcc
Added comment command (#857)
5 years ago
eldipa 812278b10b
Allow return offsets and use it for 'start' method. (#864)
5 years ago
Disconnect3d 979d330744
Fixes #841
5 years ago
Konstantin Bücheler 30c816bd82
Moved filename to the end of the command (#842)
5 years ago
xmcp ea11f862df
Add basic i8086 support (#835)
5 years ago
takimata f096be7d89
Compact, [big-endian] hexdump (#839)
5 years ago
Lonny Wong 779634aef7
fix prev chunk size check (#837)
5 years ago
Tobias Faller 9250cc51d8
Compact register list for context view (#830)
5 years ago
RGDZ-GZU 7690b60722
Fixed bug: bins gets the wrong pointer offset (#832)
5 years ago
Lonny Wong d626db172d
add config context-backtrace-lines (#831)
5 years ago
Disconnect3d 487caa1e77
Fix #814: better aslr output (#818)
5 years ago
Disconnect3d 301012abf2
Py3k (#817)
5 years ago
Disconnect3d 96716ce825
Fix mprotect failing on py2
5 years ago
Disconnect3d fa326d3483
Fix disasm call target display when symbol is known (#801)
6 years ago
Disconnect3d 9c60b62473
arch.py: remove unused instruction (#800)
6 years ago
Disconnect3d 21319d31ab
Add repeat mode dX commands (#791) (#799)
6 years ago
Disconnect3d 79140e3c15
Fix dqs windbg command (#798)
6 years ago
disconnect3d b5775f73fc Fix typo in exception-verbose parameter
6 years ago
disconnect3d 64f75c9508 vmmap command: fixes #795 - usage w/o argument
6 years ago
Disconnect3d f5432052bf
vmmap command: show offset for single addresses (#795)
6 years ago
Les De Ridder 8c601c4488
Fix typos (#787)
6 years ago
Paweł Płatek 5efff78cd1
return only valid arenas (#784)
6 years ago
Paweł Płatek af0b065b42
2*ptrsize mismatch (#783)
6 years ago
Disconnect3d 970ac229a8
Delete dead code in regs.py (#779)
6 years ago
WeSeekAfterKnowledge 7bad305626
Determine register sizes dynamically, do not assume ptrdiff width (#775)
6 years ago
Disconnect3d a1b2b037fb
Fixes #777 - missing pyelftools program header name (#782)
6 years ago
Disconnect3d 606eae0599
Update regs.py (#780)
6 years ago
Disconnect3d 744aa2273b
Fixes #770 - broken vmmap aliases (#778)
6 years ago
WeSeekAfterKnowledge 1cd9874ad9
Use qemu.root() instead of a hardcoded path (#774)
6 years ago
Bet4 5b9a42a5a8
Fix find_fake_fast error on older gdb version (#760)
6 years ago
layderv b361bda50b
#664 mark changed registers (#756)
6 years ago
Paweł Płatek f90db722a5
chunk printing to malloc_chunk cmd (#751)
6 years ago
Disconnect3d 5062e4afce
Fixes #749 - stop showing pc marker in disasm loops (#750)
6 years ago
Jan Mazur ac7fb64847
mprotect command injecting mprotect syscall. (#740)
6 years ago