Gulshan Singh
060106b1e6
Switch from `black` to `ruff format` in lint script ( #2130 )
...
* Update ruff version
* Switch from black to ruff format
* Reformat with ruff format
* Remove dependency on black
2 years ago
charif
7df87c93c6
improve kbase ( #2097 )
...
Fix kbase for newer kernels and allow automatically rebasing kernel symbol information
2 years ago
jetchirag
ebcff7cd59
WIP: Fix Flake8 warnings ( #2101 )
...
* Fix F811
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
* A003 doesn't flag anymore, rule was changed
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
* W505
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
* Revert "W505"
This reverts commit 2494a34c20 .
* Revert "A003 doesn't flag anymore, rule was changed"
This reverts commit d342ac7aae .
* Removed a commented line
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
* Mistakenly modified another variable
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
* Replace not None assertion to not empty string
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
---------
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
2 years ago
jetchirag
e7548c7f14
Fix flake8 warnings ( #2100 )
...
* Initial commit for running GH tests
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
* Removed/Fixed unused variables - flake8 F841 warnings
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
---------
Signed-off-by: Chirag Aggarwal <thechiragaggarwal@outlook.com>
2 years ago
dependabot[bot]
f55198b6e1
Bump black from 24.2.0 to 24.3.0 ( #2079 )
...
Bumps [black](https://github.com/psf/black ) from 24.2.0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/24.2.0...24.3.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Gulshan Singh
da817b2378
Install dev dependencies with poetry ( #2065 )
...
* Add dev dependencies to pyproject.toml
* Add poetry.toml file
* Remove dev-requirements and install dev dependencies with poetry
* Update pwndbg.nix
2 years ago
Gulshan Singh
da3f0f3b26
Re-enable attr-defined typecheck error for some modules ( #2060 )
2 years ago
Gulshan Singh
c2b96d268f
Add more type annotations ( #2059 )
2 years ago
Gulshan Singh
037cb8a1f4
Re-enable name-defined type checks in auxv.py ( #2058 )
2 years ago
Gulshan Singh
d346499d19
Add ipython as a dependency ( #2041 )
2 years ago
Gulshan Singh
3d57de2eda
Enable more lint checks ( #2048 )
...
* pyupgrade py36-plus
* Enable ruff C4 checks and fix issues
* Enable ruff ISC checks and fix issues
* Enable ruff SLOT checks and fix issues
* Enable ruff FLY checks and fix issues
* Enable some RET ruff checks and fix errors
* Enable PGH ruff checks and fix errors
* Fixed some more lint issues
2 years ago
Gulshan Singh
5ab3ed0888
Update dev requirements ( #2046 )
...
* Update dev-requirements
* Reformat after black upgrade
* Update ruff configuration after version upgrade
* Fix new ruff errors
2 years ago
Gulshan Singh
03f4dd0638
Disallow any-generics ( #2045 )
2 years ago
Matt
0cb1ce61d4
Add support for glibc heap UAF detection ( #1841 )
...
* Add support for breaking on UAF
* Small fixes and documentation
* Add a command to enable and disable tracking, better diagnostics
* Add initial support for calloc and realloc
* Better safeguard against matching ld.so malloc
* Small fixes
* Better interface for managing the heap tracker. More terse and information dense diagnostics
* Add warning and fix lints
* Update poetry lock
2 years ago
Disconnect3d
e8f423ac4f
Prepare 2024.02.14 release ( #2020 )
2 years ago
Disconnect3d
fe27e16a14
Fix Pwndbg on Py3.12: add setuptools as dependency ( #2008 )
...
It turned out that in some cases - e.g. when installing Pwndbg on Fedora 39 which uses Python 3.12, Pwndbg does not work failing with:
```
Traceback (most recent call last):
File "/home/hhlp/.pwndbg/gdbinit.py", line 74, in <module>
import pwndbg # noqa: F401
^^^^^^^^^^^^^
File "/home/hhlp/.pwndbg/pwndbg/__init__.py", line 9, in <module>
import pwndbg.commands
File "/home/hhlp/.pwndbg/pwndbg/commands/__init__.py", line 24, in <module>
from pwndbg.heap.ptmalloc import DebugSymsHeap
File "/home/hhlp/.pwndbg/pwndbg/heap/ptmalloc.py", line 18, in <module>
import pwndbg.disasm
File "/home/hhlp/.pwndbg/pwndbg/disasm/__init__.py", line 14, in <module>
import capstone
File "/home/hhlp/.pwndbg/.venv/lib/python3.12/site-packages/capstone/__init__.py", line 326, in <module>
import distutils.sysconfig
ModuleNotFoundError: No module named 'distutils'
(gdb)
```
It turns out that `distutils` package was removed in Python 3.12 and it is now provided by the `setuptools` module.
This commit fixes this issue by adding `setuptools` as a direct Pwndbg dependency.
2 years ago
psondej
ff8ecada5c
pyproject.toml: use upstream gdb-pt-dump
2 years ago
psondej
ab96e1a9b9
- remove gdb-pt-dump from all files
...
- remove submodules from all files
- bump flake.lock
- add gdb-pt-dump as dependency
- fix building Dockerfile
- fix gdb-pt-dump was broken on portable packages
2 years ago
disconnect3d
5755aabaee
Fixes 1777: update Pwntools to 4.11
2 years ago
Patryk Sondej
f3914e2696
init add portable pwndbg using nix, package for rpm,deb,arch,alpine
...
Signed-off-by: Patryk Sondej <patryk.sondej@gmail.com>
2 years ago
Disconnect3d
9e9f328ccc
Update code to Python >= 3.8 ( #1840 )
...
* isort: import __future__ annotations & pyupgrade to 3.8
* dev-requirements.txt: update vermin to 1.5.2 & dont use --quiet
* pyupgrade 3.8 fixes
* fixes
* update vermin to 3.8-
2 years ago
Gulshan Singh
487afacc7a
Switch from flake8 to ruff ( #1696 )
3 years ago
lebr0nli
5a1c10ef51
Ignore missing `rich` module for mypy
3 years ago
Maria
fd14aa0e55
Add Support for Rizin
...
Rizin is a fork of Radare2 with almost near perfect command compatibility with r2. Any r2 related plugins need to be replaced with their rz counter parts. Solves #1566
3 years ago
Gulshan Singh
47e4e09db2
Fix more pylint warnings ( #1520 )
...
* Fix super lint issues
* Fix chained comparison lint warnings
* Fix consider-using-in lint warnings
* Fix miscellaneous lint issues
* Fix consider-using-from-import lint warnings
* Fix some pointless-string-statement lint warnings
3 years ago
Gulshan Singh
20f9c8d941
Update pylint config and fix lint issues ( #1519 )
...
* Add pylint config
* Fix pylint issues
3 years ago
Gulshan Singh
bc59a8eddd
Fix memoize type issues and enable mypy in lint script ( #1518 )
...
* memoize type fixes
* Add mypy to lint script
* Add mypy to dev-requirements.txt
3 years ago
Gulshan Singh
7e519bb660
Fix some misc type errors ( #1509 )
...
* Fix some misc type errors
* Add missing return type hints
3 years ago
Gulshan Singh
3a45e3c669
pwndbg.gdb.regs type fixes ( #1508 )
3 years ago
Gulshan Singh
10228899e6
More type fixes ( #1506 )
...
* More type fixes
* Properly handle missing imports during typechecking
* Fix endian type
3 years ago
Gulshan Singh
65462f63dd
Refactor nearpc ( #1498 )
3 years ago
Gulshan Singh
fef5077eef
Fix type issue in ida.py ( #1474 )
3 years ago
Gulshan Singh
c53ad59aae
More type fixes ( #1473 )
3 years ago
Gulshan Singh
7221a371b3
More type hints ( #1472 )
3 years ago
Gulshan Singh
9568859cfa
Automatically add types with pyannotate ( #1471 )
3 years ago
Gulshan Singh
806943f58f
Add mypy configuration to pyproject.toml ( #1468 )
3 years ago
Gulshan Singh
eb18b04e54
fix coverage generation
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
13e1608ecd
Cleanup dependencies ( #1251 )
3 years ago
Gulshan Singh
340dd2d43b
Minor linter/formatter configuration changes ( #1105 )
...
* Don't format gdb-pt-dump with black
* Move isort configuration into pyproject.toml
* Exclude gdb-pt-dump from flake8
* Set flake8 max line length to 100
3 years ago
Disconnect3d
b3a560eff0
black all da code ( #1103 )
3 years ago