patryk4815
1507888a1f
arch.py: fix arch detection for riscv ( #1962 )
...
* arch.py: fix arch detection for riscv again
* arch.py: fix arch detection for riscv again
* arch.py: fix lint
2 years ago
Disconnect3d
fb2777c065
Update LICENSE.md ( #1963 )
2 years ago
dependabot[bot]
06a0c18fd8
Bump paramiko from 3.3.1 to 3.4.0 ( #1961 )
...
Bumps [paramiko](https://github.com/paramiko/paramiko ) from 3.3.1 to 3.4.0.
- [Commits](https://github.com/paramiko/paramiko/compare/3.3.1...3.4.0 )
---
updated-dependencies:
- dependency-name: paramiko
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Disconnect3d
9d0621c4d7
Fetch stacks from vmmap if they exist (also stacks.update -> stacks.get) ( #1959 )
...
Hopefully fixes #1947 by fetching stacks only when they are used instead
of doing it on each stop event. It will also first try to compute stacks
dictionary based on vmmap and if it fallbacks to exploring stacks if
vmmap is not present.
2 years ago
keymoon
03e97e9ea8
Implement a way to resolve multiple process in attachp ( #1956 )
...
* implement various resolve method to attachp
* add tests
* lint tests
* fix resolve_none test
* fix procps issue
* remove unused function
* Update pwndbg/commands/attachp.py
* Update pwndbg/commands/attachp.py
* first/last -> oldest/newest
* change default value to ask
* Provide informations about the config
* fix test
* fix lint
* catch eoferror
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
2 years ago
patryk4815
40b7928d9e
fix missing cryptography 41.0.6 dependency in "nix" + add "release" workflow on pull_requests ( #1955 )
...
* add checking if "releases" build successfully on pull requests
* flake.lock: fix missing cryptography 41.0.6 dependency
2 years ago
Disconnect3d
0c61ed5d27
mmap command: update return value message ( #1954 )
...
Updates the mmap return value message from just "0x1234" to "mmap syscall returned 0x1234"
2 years ago
Matt
dfd5f95b56
Add mmap command that executes the mmap syscall in the inferior ( #1952 )
...
* Initial implementation of the mmap command
- Additionally, moves syscall execution and general inferior-scoped code
execution facilities into a single, new file, in 'pwndbg/gdblib/shellcode.py'
* Add warnings and fix a few nits
* Lint
* Update pwndbg/commands/mmap.py
* Update pwndbg/commands/mmap.py
* Update pwndbg/commands/mmap.py
* Update pwndbg/commands/mmap.py
* Update pwndbg/commands/mmap.py
* Update pwndbg/gdblib/shellcode.py
* Update pwndbg/commands/mmap.py
* Update pwndbg/commands/mmap.py
* Make mmap faster for `--force`
* Add initial tests for `mmap`
* Update tests/gdb-tests/tests/test_mmap.py
* Add a testcase for fd-backed mmap calls
---------
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
2 years ago
intrigus-lgtm
427bf8c96e
Port gdb-tests from bash to python ( #1916 )
...
* [WIP] Port gdb-tests from bash to python
* Use threads instead of processes
* Port gdb tests to python
* Linting
* Fix coverage "again"
* Remove bash tests
---------
Co-authored-by: intrigus <abc123zeus@live.de>
2 years ago
dependabot[bot]
13f467b024
Bump cryptography from 41.0.5 to 41.0.6 ( #1945 )
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 41.0.5 to 41.0.6.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/41.0.5...41.0.6 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
kotee4ko
bbfd109037
[heap] `hi` command -- feature to check if an address belongs to a chunk. ( #1938 )
...
* add hi -- heap_info
* add default return after first hit
* fix
* ready
* + Add __contains__ method of Chunk class
+ Update verbose output features
* heap_info: new chunk detection feature
* heap_info: new chunk detection feature (lint >_<)
* heap_info: new chunk detection feature (lint >_<) 2
* eap_info: new chunk detection feature (lint >_<) 3
---------
Co-authored-by: Administrator <admin@example.com>
Co-authored-by: Th3C4t <swagcat228@gmail.com>
2 years ago
psondej
05f0dbf9f9
releases.yml: add support for aarch64 packaging
2 years ago
OB
01e6657a43
sorted lists
2 years ago
OB
7eb09f6f23
lint
2 years ago
OB
80d83456a1
comment
2 years ago
OB
2393ccc155
add arm as well
2 years ago
OB
6b41c07e5b
Add sigreturn for i386 and aarch64
2 years ago
OB
209d2a9d77
lint
2 years ago
OB
e3c8cd3e87
Add --print flag to optionally print addresses of frame values
2 years ago
OB
34ddc89103
Clarifying comment
2 years ago
OB
8e77b8ce4a
Pull values from pwntools, make more architecture agnostic
2 years ago
OB
d0c3c764ad
comment additions
2 years ago
OB
d70b07830d
Implement --all flag
2 years ago
OB
380e4df03a
Print sigreturn frame, x86-64
2 years ago
psondej
68e53bcc56
README.md: add portable info
2 years ago
psondej
8a22162495
README.md: add portable info
2 years ago
Levente Polyak
139b7542cd
fix: allow site installation without enforcing a venv
...
Currently the only way to circumvent the venv checks is setting an
environment variable. However, this is not sufficient for distro site
packaging:
- if the variable is not set, its a rather bad and unexpected user
experience to somehow magically set PWNDBG_PLEASE_SKIP_VENV
- if the variable is set globally as login shell profile, this means
skipping venv is always enforced which means if gdb is loaded with a
pwndbg gdbinit.py from a git clone, its rather unexpected to skip the
venv
This patch checks for a `.skip-venv` file alongside the `gdbinit.py`
which means for site installations that use de-vendored dependencies
like during distro packaging, this file can simply be touched. It would
skip the venv when pwndbg is loaded from the site installation but at
the same time would not skip loading the venv when pwndbg is started
from a git clone.
2 years ago
Disconnect3d
61787b3597
Update pwndbg/commands/checksec.py
2 years ago
Disconnect3d
7498db42b4
Update pwndbg/commands/checksec.py
2 years ago
Disconnect3d
5e605ccf26
Update pwndbg/commands/checksec.py
2 years ago
Disconnect3d
49853b97bb
Update pwndbg/commands/checksec.py
2 years ago
Disconnect3d
4a9a3de6d5
Update pwndbg/commands/checksec.py
2 years ago
CristhianMotoche
72e45fd3fe
fix: Wrap in normal to go back to reset color
2 years ago
CristhianMotoche
bbf69a8000
ref: Use already defined colors
2 years ago
CristhianMotoche
fe1b539145
fix: Apply black
2 years ago
CristhianMotoche
5a21adf388
fix: Apply isort
2 years ago
CristhianMotoche
a399ab787f
attempt: Colorize checksec output
2 years ago
psondej
ff8ecada5c
pyproject.toml: use upstream gdb-pt-dump
2 years ago
psondej
57cbe2a3d0
introduce github-ci lockfile checking for: flake.lock, poetry.lock
...
Signed-off-by: psondej <patryk.sondej@grupawp.pl>
2 years ago
psondej
015c33772b
README.md: fix typo
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
psondej
3fddf03f0a
remove submodule gdb-pt-dump
2 years ago
psondej
d5b6601c34
flake.lock: fix lock after changing repo in flake.nix
2 years ago
psondej
ee5920a740
poetry.lock: fix missing packages after bump in pyproject.toml
2 years ago
OB
8f9a5e0793
Use existing function, gdblib.vmmap.find, to get page
2 years ago
OB
4d709511c0
lint
2 years ago
OB
dbaf68ec4a
Add check for no pages
2 years ago
OB
beaa52268c
Distance command can now print the offset to the addresses's page base
2 years ago
OB
c37030633a
Remove redundant None check
2 years ago
OB
0451daebcc
Refactor, move function to global scope and ensure frame exists in register set
2 years ago