Commit Graph

19 Commits

Author SHA1 Message Date
fishykz cfe93ab7ec
fix for ubuntu 20.04 (#850) 2020-10-23 14:01:12 +02:00
Weston d3ec217e60
fix for ubuntu 20.04 (#748) 2020-05-04 17:48:31 +02:00
Disconnect3d 068bcffbf1
Bump Capstone to 4.0.1 (#591) 2019-01-15 14:18:21 +01:00
Disconnect3d 8295c179e7
Update capstone to 4.0 (#589)
Note that there is already Capstone 4.0.1 but it hasn't been released to
pypi yet.

The current `next.zip` points to Capstone 5.0 and currently breaks
pwndbg (due to bindings and capstone versions mismatch).
2019-01-13 01:44:17 +01:00
Disconnect3d e225ba9f64
Tests framework (#375)
* Add prototype of unit tests for pwndbg

* Add test for pwndbg [filter]

* Fix isort, e2e tests, add pytest requirement

* Add comment about not handling exceptions for unittests

* Fixes after rebase

* Fix test_loads_without_crashing

* e2e tests: no colors & loading pwndbg tests

* Fix isort

* Add example of no file loaded test

* Move tests to unit_tests, add binary, add memory tests

* Isort fixes

* Move from e2e/unit tests to tests

* Add info about tests to DEVELOPING.md

* Fix tests

* review fixes

* commands filtering test: check for contents, not for equality

* Add tests launcher bash script

* Change tests launcher name from unittests to pytests

* Cleanup; better test file paths

* Add theme param to disable colors

* Better test_loads

* Skip some tests locally that can run on travis

* Fix test_loads according to travis

* Fix travis tests
2018-04-05 04:10:23 +07:00
Zach Riggle c02f04efa8 Ban isort==4.3.0 (#417)
See timothycrosley/isort#652 for more information. tl;dr is `pip install isort==4.3.0` fails, which is what `pip install -Ur requirements.txt` will attempt to do.

Ban this specific version as it causes issues.
2018-02-02 03:12:43 +01:00
Disconnect3d 39f60e9f64
Fix missing enum in Python 2 (#403) 2018-01-17 23:18:09 +01:00
Meng-Huan Yu cbc4f779fc Implement asm&source syntax highlight (#390)
* Syntax-highlight: Add asm lexer in color/lexer.py

* Syntax-highlight: Add pygments to requirements.txt

* Syntax-highlight: Update lexer for supporting ARM

Support symbol, constant, comments

* Syntax-highlight: Enable asm syntax highlight

* Syntax-highlight: Add source highlight utils in commnads/context.py

* Syntax-highlight: Add disasm highlight utils in color/disasm.py

* Syntax-highlight: Implement Source code highlighting in commands/context.py

* Syntax-highlight: Add syntax_highlight() in color/syntax_highlight.py

* Fix texts

* Add color theme and prefix config for context code

* Add missed utf8 magic comment

* Fix isort
2018-01-12 16:24:34 +01:00
Zach Riggle 63d107c1aa Simplify command exception debugging and make stdio work correctly (#251)
* Simplify command exception debugging and make stdio work correctly

* Make isort happy

* Reorganize exception handler, add default case

* Fix print statement

* Attempt to use ipdb where available

* Sort requirements and add ipdb

* Only use pwndbg.stdio in the exception handler

* Documentation, hook pdb.set_trace()

* Do not require ipdb

* Remove import loop, fix accidental call, set python print-stack

* Use the correct values for print-stack

* Use pdb.Pdb for better set_trace()
2017-05-15 13:42:47 -05:00
Zach Riggle 8ee0208cb7 Use "pip" versions of Capstone and Unicorn (#176)
* Use Pip version of Unicorn

* Remove capstone submodule

* Allow installation to the user site-packages for Darwin, since SIP prevents installation to the system site-packages

* Add helper functions and fix Python calls

* Remove duplicated code (rebase issues?)
2017-04-05 21:27:42 -05:00
Zach Riggle 06a03634f4 Add ROPgadget as an explicit dependency
Closes #173
2017-03-06 11:36:43 -06:00
Zach Riggle 80fa7725e6 Run futurize on pwndbg 2016-10-03 15:39:51 -07:00
Zach Riggle 42ab6eb6b3 Use six module for types 2016-06-14 12:32:22 -07:00
Zach Riggle d97847b872 Add isort, config, and pre-CI hook 2016-06-14 12:31:56 -07:00
Zach Riggle 25f72ceb7d Update requirements 2016-04-13 12:58:15 -07:00
Zach Riggle 23bc583b23 Update README and requirements 2016-03-23 11:33:08 -07:00
Zach Riggle db6672ec20 Update README and requirements 2016-03-23 11:18:52 -07:00
Zach Riggle 60396ddeff Fix missing exe (start==vma) and update requirements 2015-07-20 18:12:21 -04:00
Zach Riggle 68529bcb5c Lots of changes for automatically showing various function arguments etc. 2015-05-11 20:28:35 -04:00