Commit Graph

455 Commits (82dc478359fc55f97250306351cace61559f8e93)

Author SHA1 Message Date
Aaron Adams c85d16b246
fix trailing whitespace everywhere (#2188)
2 years ago
Gulshan Singh d6abb33e02
Fix and re-enable unit tests (#2182)
2 years ago
Aaron Adams 416ea74226
Refactor tests.py and small tweaks for running on nix (#2181)
2 years ago
Lennard Hofmann 2b9beef7af
Small fixes for RISC-V (#2172)
2 years ago
Aaron Adams 5d083d471c
Modify python test scripts to work from nix (#2168)
2 years ago
Aaron Adams 68c648bee0
Make shebangs and other bash usage portable (#2179)
2 years ago
Piotr Zarycki 92640c7131
Fix tests on Arch Linux (#2163)
2 years ago
Gulshan Singh 00adfbbb5e
Only look for readable address in retaddr command (#2143)
2 years ago
CptGibbon 5d744513bb
Fetch C struct as Python dictionary (#2082)
2 years ago
jetchirag da94871adb
Malloc chunk dump (#2085)
2 years ago
OBarronCS 50c47f4452
Annotate disasm (#2001)
2 years ago
charif 7df87c93c6
improve kbase (#2097)
2 years ago
Aryaman Sharma 3ef485a256
Added tests for --asm search (#2114)
2 years ago
jetchirag ebcff7cd59
WIP: Fix Flake8 warnings (#2101)
2 years ago
jetchirag e7548c7f14
Fix flake8 warnings (#2100)
2 years ago
Gulshan Singh 5be38a5bf3
Add test for setflags command (#2056)
2 years ago
Gulshan Singh 3d57de2eda
Enable more lint checks (#2048)
2 years ago
Gulshan Singh 5ab3ed0888
Update dev requirements (#2046)
2 years ago
Alan Li c8292e8f1d
Add a helper command for one_gadget (#2018)
2 years ago
Gulshan Singh 0948712555
Allow multibit register bitflags (#2029)
2 years ago
Gulshan Singh 8dad24d375
Allow customizing qemu image download URL from command line (#2031)
2 years ago
Matt 0cb1ce61d4
Add support for glibc heap UAF detection (#1841)
2 years ago
Alan Li 6a38ded24e
Fix the bug when showing the state of i386 GOT (#2017)
2 years ago
Albert Gierlach 6b58f90bd8
Fix the limit in the search command (#2012)
2 years ago
Hubert Jasudowicz ab90df12b4
Add $base function (#2005)
2 years ago
Disconnect3d 9d0621c4d7
Fetch stacks from vmmap if they exist (also stacks.update -> stacks.get) (#1959)
2 years ago
keymoon 03e97e9ea8
Implement a way to resolve multiple process in attachp (#1956)
2 years ago
Disconnect3d 0c61ed5d27
mmap command: update return value message (#1954)
2 years ago
Matt dfd5f95b56
Add mmap command that executes the mmap syscall in the inferior (#1952)
2 years ago
intrigus-lgtm 427bf8c96e
Port gdb-tests from bash to python (#1916)
2 years ago
disconnect3d 85eb6c8bf9 fix arch ci tests
2 years ago
disconnect3d ac306872a5 fix shlint
2 years ago
Aaron Adams ee0377d3bf Update tests to gracefully handle multiple qemu processess running
2 years ago
duckl1ng 32336487dd fix lint
2 years ago
Aaron Adams d008d14f4b -s/--step First skipping blocks of memory between results
2 years ago
smiley 7abeef6560 fix embedded null in cmdline string
2 years ago
smiley 41c5dc7a49 show cmdline and cwd in procinfo
2 years ago
ntsleep dbdce5d72d Fixed linters
2 years ago
ntsleep cd616cf28b Added tests for command `telescope --frame`
2 years ago
duckl1ng 16a0f3b57b
Enable thread context by default (#1844)
2 years ago
Disconnect3d 9e9f328ccc
Update code to Python >= 3.8 (#1840)
2 years ago
Disconnect3d 1cb2be2f35
get_one_instruction: clear "cont" cache on mem/reg changed (#1828)
2 years ago
Disconnect3d 13cd7d8d86
config: change 'Def' to 'Default' (#1827)
2 years ago
Disconnect3d 26f7c442bc
Rename chain command to plist (print list) (#1817)
2 years ago
Disconnect3d b2bd87939f
Remove support for Ubuntu 18.04 (#1812) (#1814)
2 years ago
Disconnect3d 2552f95e1f
Remove support for Debian 10 (#1812)
2 years ago
SlidyBat 1fb1b24a19
Fix glibc-fastbin-bug option of find_fake_fast (#1774)
2 years ago
Matheus Branco Borella 3e8b597929
Add a `chain` command to traverse liked lists (#1795)
2 years ago
Matheus Branco Borella cb053dda41
Adds `break-if-taken` and `break-if-not-taken` (#1799)
2 years ago
Matheus Branco Borella 29fea60b21
Add `stepuntilasm` command (#1798)
2 years ago
NT Sleep e37591b25d
Print real size in heap command #1748 (#1781)
2 years ago
intrigus-lgtm f7cb2f9cb9
Bringt back Archlinux CI. Fixes #1772, closes #1783 (#1800)
2 years ago
intrigus-lgtm 7d9d2dc1de
Fix codecov (#1792)
2 years ago
Disconnect3d cc13296abe
Fix #1785: remove unused PWNDBG_GITHUB_ACTIONS_TEST_RUN (#1786)
2 years ago
Alan Li d7d54cb895
Enhance got command (#1771)
2 years ago
NT Sleep 89b1f437fb
` telescope -r` should always display the input address #1240 (#1779)
2 years ago
peace-maker a6cc19aa5c
Improve RISCV support (#1770)
2 years ago
Disconnect3d 44d75e3bd6
Fix #1728: racing test (#1764)
3 years ago
Gulshan Singh 91f3081e4b
Add more type hints (#1743)
3 years ago
Gulshan Singh a3b66dae5b
Convert format strings to f-strings (#1738)
3 years ago
Gulshan Singh 37376c8ac7
Covert printf format strings to f-strings (#1735)
3 years ago
Gulshan Singh b5a1219e2f
Update QEMU image download URL (#1731)
3 years ago
theguy147 e830dcb500
Support slab command for all available cpus (#1725)
3 years ago
dan "smiley" murray 56d3e8509d
Add a test binary that has very long symbols (#1719)
3 years ago
theguy147 c40f143edd
address translation only works with debug symbols (#1723)
3 years ago
dan "smiley" murray cd4217fa03
By default remove the context backtrace f prefix #1288 (#1727)
3 years ago
theguy147 f9731bb04b
refactor: move slab business logic to gdblib (#1711)
3 years ago
theguy147 608fa83b04
Add `slab contains` command (#1707)
3 years ago
Unknown Sentinel 14bb546efe
Fix test command procinfo (#1706)
3 years ago
theguy147 6ffc3de08f
Repair slab info command (#1699)
3 years ago
Disconnect3d fec8418b58
Increase killthreads timeout to 10s to fix CI issues (#1701)
3 years ago
theguy147 6ff05bbcc8
Test more kernels (#1684)
3 years ago
theguy147 a9ec60c727
Fix and Improvements for ArchOps (#1676)
3 years ago
Disconnect3d 9bb0d91bec
Add pwndbg.lib.cache test (#1691)
3 years ago
Disconnect3d 0e0a293be6
New lib/cache.py: make caching great again (#1671)
3 years ago
Gulshan Singh 89b22f4cf0
Add unit tests for which.py (#1686)
3 years ago
Gulshan Singh 7720b81cc7
Fix unit tests (#1685)
3 years ago
theguy147 e1dad2e8c7
feat: make qemu-system tests more flexible (#1682)
3 years ago
theguy147 91c72a001e
feat: use pytest for qemu-system tests (#1679)
3 years ago
theguy147 d80e55c4e3
add `krelease()` function (#1673)
3 years ago
Albert Koczy 6f2f5279c6
feature: Add `killthreads` command (closes #1580) (#1581)
3 years ago
CptGibbon e744ebf3fb
Add smallbins size tests for x64 & i386_big (#1669)
3 years ago
CptGibbon 9d3ee52ea6
Largebins size range tests for x64 & i386_big (#1658)
3 years ago
neryaz bdbd4ed7db
Add print all chunks in vis_heap_chunks (#1604)
3 years ago
Disconnect3d 86b512979c
Fix #1610: symbol.get with duplicated symbols (#1611)
3 years ago
Disconnect3d 6d7d06710e
Fixes #1600, #752: invalid symbol.get results (#1605)
3 years ago
Alan Li 5ecd5d000f
Hopefully fix the bug when using LD_PRELOAD to load libc (#1602)
3 years ago
Disconnect3d 9d22acc1d7
Hopefully fix vmmap recursion issues (#1585)
3 years ago
Alan Li 449070557d
Rewrite some unreliable methods for the heap heuristics (#1579)
3 years ago
Disconnect3d ee832c80d2
Fix plt and gotplt commands (#1576)
3 years ago
Alan Li ca33d16dac
Enhance the checks before accessing the memory for the heap heuristics (#1558)
3 years ago
Alan Li 0f67d08acb
Bug fix for error handling of the heap commands (#1543)
3 years ago
lebr0nli d7ef76ae3a Rename config
3 years ago
lebr0nli 6f696cc82b Bug fix for `gdb.PARAM_ZUINTEGER*` with GDB < 9
3 years ago
lebr0nli dbfd8d88d7 Add tests for opcode
3 years ago
Gulshan Singh b9c9f12efc Add qemu tests to CI
3 years ago
Alan Li 2a5f563444
TLS related enhancements (#1536)
3 years ago
Gulshan Singh 52a479211c Update QEMU test scripts
3 years ago
Gulshan Singh 0757878b80 Update qemu image download script
3 years ago
Gulshan Singh d4562ea462
Update qemu test scripts and images (#1529)
3 years ago
Disconnect3d 2462468f89
Improve hexdump collapse display (#1526)
3 years ago
Disconnect3d 825efda796
cyclic command: improve UX (#1522)
3 years ago
Gulshan Singh 6aa66095d9
Fix some type and pylint errors (#1515)
3 years ago
Gulshan Singh 65462f63dd
Refactor nearpc (#1498)
3 years ago
Disconnect3d 6847a6a77f
gdb-tests/tests.sh: don't do make clean on each run (#1497)
3 years ago
Gulshan Singh ebc915483d
Add commands to categories (#1478)
3 years ago
Gulshan Singh a58e08e899
Add support for command categories (#1477)
3 years ago
Gulshan Singh 768cb04257
Better error handling in bugreport command when no command history (#1464)
3 years ago
Gulshan Singh 513dcdf870
Don't print aliases as commands in pwndbg output (#1460)
3 years ago
Gulshan Singh 0467886258
Cleanup command docstrings (#1461)
3 years ago
Gulshan Singh d08c6af337
Start a env_parallel session to avoid argument too long errors (#1446)
3 years ago
Gulshan Singh fa8a033749
Fail tests if an error occurs (#1445)
3 years ago
lebr0nli 2b1b6d567a Improve the docs of some configs
3 years ago
lebr0nli 0b394a440d Some improvements to configuration
3 years ago
Gulshan Singh 1bd4e4a482
Move some env_parallel code into the else branch (#1432)
3 years ago
Gulshan Singh 3b482a6485
Add basic QEMU system testing scripts (#1428)
3 years ago
Gulshan Singh d52011877b
Add simple qemu-aarch64 test (#1423)
3 years ago
Disconnect3d f78e3250c7
Fix archlinux ci tests (#1411)
3 years ago
Disconnect3d 1c609eba15
Fix #1399: cymbol command on old GDB (#1409)
3 years ago
Disconnect3d 275b9c9786
tests.sh: fix --pdb (set SERIAL when --pdb is set) (#1410)
3 years ago
Disconnect3d c5d880020e
fix #1188: incorrect 32-bit syscall display on x64 (#1407)
3 years ago
CptGibbon 2d537b5751
Fix find_fake_fast command test (#1397)
3 years ago
Alan Li 39ebd66539
Add `default-visualize-chunk-number` config and refactor some code related to config (#1388)
3 years ago
Disconnect3d c6ab8dc671
Fix vmmap coredump test (#1391)
3 years ago
Disconnect3d 117e69f842
tests reference-binary.c: dont rely on connect to 1.1.1.1 (#1390)
3 years ago
Disconnect3d 8c30304c32
fix test_loads_binary_with_core_without_crashing on debian10 (#1389)
3 years ago
Lonny Wong ee86808628
Add test for context-source-code-tabstop (#1385)
3 years ago
Disconnect3d bf3cac0505
Fix debian10 ci (#1383)
3 years ago
Disconnect3d cf670df0ed
tests zig cc: silence unused vars warnings (#1382)
3 years ago
Disconnect3d f2ba99ec71
Fix tests reporting in parallel execution (#1379)
3 years ago
CptGibbon f71a4aa65d
Reduce heap code redundancy (#1346)
3 years ago
Disconnect3d 15b80caede
tests.sh: del joblog if --keep not passed (#1360)
3 years ago
Gulshan Singh e6d118c08c
Don't run pwn commands in test (#1358)
3 years ago
Gulshan Singh 525bfaf2c2
Support running tests serially (#1357)
3 years ago
Alan Li d8fbdc1b88
Support `malloc_par` of GLIBC 2.35 (#1353)
3 years ago
Alan Li 41c407036a
Fix some issues about GDB < 9.x (#1333)
3 years ago
Szymon Borecki 3b56329acc
Port pwntools cyclic into pwndbg (#1337)
3 years ago
George Dhmosxakhs 4b01ad6738
added cymbol command (#1301)
3 years ago
Gulshan Singh d43606e5d0
Improved test_commands.py (#1350)
3 years ago
Gulshan Singh d0b14eea56
Add new flags to tests.sh (#1348)
3 years ago
Gulshan Singh d4a796e2e7
Only show the output of failing tests (#1336)
3 years ago
Gulshan Singh f94bc27cb1
Run tests in parallel with GNU parallel (#1332)
3 years ago
Gulshan Singh 779dcccbaf
Display failed tests in test output (#1329)
3 years ago
Alan Li 5b56071746
Some enhancements about `pwndbg.gdblib.config` (#1315)
3 years ago
Tingfeng Yu 61ad340d25
made codecov optional, enable it with -c or --cov (#1322)
3 years ago
Gulshan Singh 5a323b4967
Fix bins command (#1313)
3 years ago
alufers e8a8e737c8
Add a header to the vmmap table (#1311)
3 years ago
Disconnect3d 20417c1b06
Fix parameter default values (#1307)
3 years ago
Disconnect3d 9a580eaa84
Fix setting empty ctx sections (#1310)
3 years ago
Disconnect3d dd26c60e7a
Fix invalid zig path in tests makefile & suppress compilation warning (#1308)
3 years ago
Tingfeng Yu 177df59c12
integrated Bin classes (#1304)
3 years ago
Gulshan Singh 4be16dcd5d Fix heap_config
3 years ago
Gulshan Singh 78065e8ba9 Fix config and theme commands
3 years ago
Gulshan Singh eb18b04e54 fix coverage generation
3 years ago
Gulshan Singh f0ea79575d Add unit-test for find_fake_fast command
3 years ago
Gulshan Singh 9a67233cd1 Store coverage files in .cov directory
3 years ago
Gulshan Singh c73f79340c Move .coveragerc config to pyproject.toml
3 years ago
Gulshan Singh 8a417091b5 Add mocks
3 years ago
Gulshan Singh e63d289b95 Move tests/ to tests/gdb-tests/
3 years ago
alufers 1c06c52b47
fix: make mprotect command truly multi-arch (#1162)
3 years ago
Gulshan Singh dac5340b18 Add tests for find_fake_fast --align
3 years ago
Gulshan Singh e6574f447f
Add find_fake_fast test (#1286)
3 years ago
CptGibbon 1a0bbbf26a
Add multithreaded malloc_chunk tests (#1277)
3 years ago
Alan Li b4cdcdfcfc
Unit tests and some bugs fix for the heap heuristics (#1283)
3 years ago
Gulshan Singh e456b317d7 Convert all vmmap references to pwndbg.gdblib.vmmap
3 years ago
E. Rivas b5da3e8237
Add ignore command (from #1257) (#1276)
3 years ago
Lonny Wong cf11443735 add test for max-visualize-chunk-size
3 years ago
Gulshan Singh 4647ccca57 Fix windbg test
3 years ago
Gulshan Singh 2220918866 Cleanup hexdump implementation
3 years ago
Gulshan Singh 084eb36813
Add a test for config triggers (#1225)
3 years ago
Gulshan Singh eabab316d2
Split config.py into lib/ and gdblib/ (#1134)
3 years ago
Gulshan Singh fd5e722cbc Add hexdump test
3 years ago
Disconnect3d 478a569cb3
Fix #1256: fixes next cmds hangs on segfaults (#1268)
3 years ago
Gulshan Singh bfbb2b8652
Move symbol.py to gdblib (#1259)
3 years ago
CptGibbon ec8addd602
Build malloc_chunk tests with libpthread (#1265)
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 2eccf02b50
GDB Refactor [15/N]: Move stack.py to gdblib/stack.py (#1244)
3 years ago
Gulshan Singh 23caabdb76 Split heap tests into their own files
3 years ago
Gulshan Singh 6c1ddb451c Moved heap tests into tests/heap
3 years ago
CptGibbon 91505a47b1
Add `malloc_chunk` command tests for heuristic heap (#1234)
3 years ago
Gulshan Singh ebadd88220
Add --shell argument to pwndbg command (#1233)
3 years ago
CptGibbon ef89d417d6 Add malloc_chunk command test
3 years ago
disconnect3d 55ab0ae091 fix pipe:X in test
3 years ago
disconnect3d e728fa8614 allow for pipe:X in test
3 years ago
disconnect3d b209ada229 Fix disable_colors formatting & test ctx disasm showing fds
3 years ago
Disconnect3d 521514b204
fix #1190: telescope -r with addr as count (#1198)
3 years ago
disconnect3d ea98cfae77 silence heap_bugs.c build warnings
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 02eb8e6dd7 fix libc objfile name in tests
3 years ago
disconnect3d 11f878977e add nextproginstr tests
3 years ago
ntsleep 96d90d18a5 Added test for procinfo command before binary srat
3 years ago
ntsleep e27c25f54a Added test for procinfo command
3 years ago
Disconnect3d cc3f86d5bc
Improve vmmap on coredump files (#1149)
3 years ago
CptGibbon 636db8b25f
Add regression test for `find_fake_fast` command (#1147)
3 years ago
Disconnect3d 88c610116e
fix distance command (#1146)
3 years ago
Gulshan Singh ccc56b9a58
Remove unused imports (#1139)
3 years ago
Gulshan Singh 512db53edd
Split memory into lib/ and gdblib/ (#1128)
3 years ago
Gulshan Singh a002e29bc1
Split regs.py into lib/ and gdblib/ (#1121)
3 years ago
Disconnect3d b7ddf3a070
fix #1111 errno command edge case (#1126)
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
Disconnect3d 1d9c95d07a
Fix Dwarf Errors with old GDBs in docker
3 years ago
Gulshan Singh 2d483fcb12
Add smoke test (#1113)
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
disconnect3d 015888684b Fix test_vis_heap_chunk_command on Ubuntu 18.04
3 years ago
Gulshan Singh 7c53bdeaa8
Minor test cleanup (#1099)
3 years ago
NT Sleep 5d358585b1
Add support for telescope to show previous addresses #1047 (#1094)
3 years ago
Artur Czepiel 4ee225b115
Make ZIGPATH configurable and provide defaults (#1090)
3 years ago
alufers 36ee7d238d
tools: change zig to install from a tarball (fixes: #1085) (#1089)
3 years ago
Disconnect3d d111c8ddcf
Fix heap test binaries build (#1087)
3 years ago
Disconnect3d 546d6ffa19
fix vis_heap_chunk test on CI? (#1086)
3 years ago
disconnect3d 902d732816 add vis_heap_chunk testcase
3 years ago
Disconnect3d b51b07de77
Revert "Refactor heap code (#1063)" (#1084)
3 years ago
Gulshan Singh a0f3744743
Refactor heap code (#1063)
3 years ago
Artur Czepiel a4eb1e6610
Fix xor and memfrob (#1057)
3 years ago
Hubert Bryłkowski 5c9bd146c8 added docker-compose and instructions how to run tests there
3 years ago
disconnect3d a53abc8376 test attachp with inexistent pid: add timeout proper handling
3 years ago
disconnect3d dbd55e650f test attachp with inexistent pid: add timeout
3 years ago
Samanta Navarro 38c38aacfa Fix typos
4 years ago
cnwangjihe bd7c3aa2d2 add test for heap bins
4 years ago
Disconnect3d 95e3bb09df Fix lint
4 years ago
Disconnect3d 0ec31801a0 Hopefully fix windbg commands tests on CI
4 years ago
Disconnect3d 1d70e14418 Fix #932,#788: fix command parsing
4 years ago
Disconnect3d d861d6e2fc Skip attachp tests when cant attach
4 years ago
Disconnect3d ef86a5ca3c Remove shebang and coding lines
4 years ago
Disconnect3d 6fd42dd5ab Add attachp command and tests for it
4 years ago
Disconnect3d 1e28920440 Stop skipping tests
4 years ago
Daniel Ebert fb8927d8cd remove "matches for example ..." comments
4 years ago
Daniel Ebert e7193db69b remove .swp file
4 years ago
Daniel Ebert 1d8568c45b generate core just-in-time
4 years ago
Daniel Ebert 83e385a764 generate core just-in-time
4 years ago
Daniel Ebert 9613310e8c compile binary just-in-time
4 years ago
Daniel Ebert 0608fc8dd1 replace "bash" binary with "div_zero_binary" in CI tests
4 years ago
Daniel Ebert 62df89e54c fix CI tests
4 years ago
Israel Alberto RV bf49bf8356
Unit test fix (#868)
5 years ago
Disconnect3d 301012abf2
Py3k (#817)
5 years ago
Paweł Płatek e3b910c5d5
Try heap (#744)
6 years ago
StalkR ce96491487 typeinfo: more types for golang and tests (#652)
7 years ago
Disconnect3d f2ebe4bce0
Fix nearpc following jumps when used w/o emulation (#499)
8 years ago
Disconnect3d 87aa167599
Run each test in a separate GDB session (#498)
8 years ago
Disconnect3d 2bc872cf7f
Fix isort (#493)
8 years ago
ecx86 ed2c92f6c3 Leak offset probing tool (#492)
8 years ago
Disconnect3d e225ba9f64
Tests framework (#375)
8 years ago
Meng-Huan Yu e0c02a4484 Make de-reference only works on known pages in bare metal mode and add commands to manually add pages (#385)
8 years ago
Disconnect3d 52abfbf791
Adds $rebase(offset) function (#374)
8 years ago
Zach Riggle eae961289c Add shebang and encoding to each file
9 years ago