Commit Graph

37 Commits

Author SHA1 Message Date
Olivia Lucca Fraser 78da129e50
GPT-3 Command for Pwndbg (#1589)
* ai plugin

* ai plugin ready to ship

* ai plugin ready to use

* textwrap on the ai's answer

* linted ai.py

* relaxed openai version requirement

* added pandas to requirements

* removed dependency on openai module, using requests instead

* removed dependency on openai module, using requests instead

* incorporating suggestions on PR

* added types requests and bumped requests version up to the version i'm using here

* lowering version req on requests for ubuntu 18 compat

* removed some 'if True' kludges that i was using to debug things at one point
2023-02-23 10:31:17 +01:00
Disconnect3d b62e3a4fa5
requirements.txt: bump pwntools to 4.0.9 (#1527)
Updates the pwntools dependency to version 4.0.9 - https://github.com/Gallopsled/pwntools/blob/dev/CHANGELOG.md#490-stable
2023-01-16 19:39:08 +01:00
Gulshan Singh 10228899e6
More type fixes (#1506)
* More type fixes

* Properly handle missing imports during typechecking

* Fix endian type
2023-01-05 00:12:03 -08:00
Gulshan Singh 612328a0a7
Upgrade dependencies (#1476) 2022-12-27 18:37:19 -08:00
Mario Haustein d5f6b4669d Remove dependency to `python-future` (#1250)
`python-future` isn't used in the entire code and abandoned upstream. The
module `__future__` is a Python builtin instead.

Closes #1250
2022-12-26 20:46:43 +01:00
Gulshan Singh caa22ce04e
Added command to list slabs (#1442) 2022-12-22 09:24:20 -08:00
profesorek96 0b6f351146
fix #1364: update unicorn to 2.0.1 (#1366)
Removed version lib unicorn in file requirements.txt. This change allow run pwndbg in Parallels MacBook with M1
2022-11-10 23:59:54 +01:00
Gulshan Singh 13e1608ecd
Cleanup dependencies (#1251) 2022-10-08 04:48:28 +02:00
Gulshan Singh 0d73e9d8c9
Cleanup requirements and run full setup in lint CI job (#1230) 2022-10-05 18:15:18 -07:00
Disconnect3d 446f5d5ae2
add patch command (#1150)
* add patch command

This commit adds the `patch`, `patch_list` and `patch_revert` commands
and adds the `pwntools==4.8.0` as Pwndbg dependency.

The current implementation could be further improved by:
- adding tests :)
- maybe moving `patch_list` and `patch_revert` to `patch --list` and
  `patch --revert` flags?
- better handling of incorrect args/pwnlib exceptions

* lint
2022-09-20 00:30:45 +02:00
syheliel 7e8c999795
Fix IDE's auto-complete support (#1106)
Co-authored-by: syheliel <syheliel@gmail.com>
2022-08-30 20:46:16 +02:00
disconnect3d 697c32e84b Move pytest to dev-requirements 2022-08-28 23:12:00 +02:00
Gulshan Singh 2bde0cc1d8
Update CI to test 18.04, 20.04, and 22.04 (#1100)
* Fix requirements.txt for Python 3.6

* Install coverage from setup-test-tools.sh

* Update CI to test Ubuntu 18.04, 20.04, and 22.04
2022-08-28 23:11:16 +02:00
disconnect3d ee1f0e493c update unicorn to 2.0.0 2022-07-16 15:43:14 +01:00
Hubert Bryłkowski cf7917c64b freeze requirements 2022-07-16 15:29:12 +01:00
Mez0ne 5dd1f80b69 Bump Unicorn Version to 1.0.3 2022-04-20 13:29:29 +02:00
Disconnect3d af4198660e Bump capstone to 4.0.2
We will e.g. have https://github.com/aquynh/capstone/pull/1625 which is useful for debugging Pwndbg capstone related features
2021-10-09 02:08:25 +02:00
0x4848 2a77b2d20b Bump Unicorn Version 2021-08-22 14:33:26 +02:00
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