Commit Graph

332 Commits (a1edabdf12ca08bb71c1227fc871a3c7a731e6f8)

Author SHA1 Message Date
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
Dominik Czarnota 34ee630def Add pwndbg commands list filtering (#93)
9 years ago
Zach Riggle 0c60dda07b Add core files for testing purposes
10 years ago
Zach Riggle 373272aecd sixize
10 years ago
Zach Riggle d97847b872 Add isort, config, and pre-CI hook
10 years ago
Gulshan Singh 269b47f6e1 Added .travis.yml (#55)
10 years ago