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
OB
6a45c854e8
linting
2 years ago
OB
5eabb70c04
comment
2 years ago
OB
2defa89324
Add -f flag to stack command, add stackf command
2 years ago
OB
5a485c0aa9
Add ability to print framepointer offset for each address in telescope output
2 years ago
Filip Grzywok
d497bac847
feat: Move gdb version to gdblib, do not depend on file exec feature in vmmap
2 years ago
patryk4815
15a0cb0a65
flake.nix: fix syntax error
2 years ago
disconnect3d
0a189f7fa9
flake.nix: add comment about distros
2 years ago
Disconnect3d
0abeaa13af
Update pwndbg/gdblib/vmmap.py
2 years ago
Disconnect3d
a3ec30c35c
Update pwndbg/commands/vmmap.py
2 years ago
Disconnect3d
0f0bb922db
Update pwndbg/commands/vmmap.py
2 years ago
Filip Grzywok
bad56cd682
fix: wrong flake nix
2 years ago
Filip Grzywok
ed4a4408a9
fix: Typo in flake nix
2 years ago
Filip Grzywok
80aa1a9cc1
fix: Formatting
2 years ago
Filip Grzywok
bc51c5c782
fix: Only use info proc mappings on supported qemu vesions
2 years ago
Filip Grzywok
e5a3a50a70
feat: Back vmmap with info proc mappings on newer qemu versions
2 years ago
dependabot[bot]
8dd9382b73
Bump urllib3 from 2.0.6 to 2.0.7
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.6...2.0.7 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
CptGibbon
42b2fa42ff
Add `threads` command
2 years ago
CptGibbon
b0445e5563
Always show selected thread in thread context
2 years ago
dependabot[bot]
23e36ce780
Bump cryptography from 41.0.3 to 41.0.4
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 41.0.3 to 41.0.4.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/41.0.3...41.0.4 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
92de6123ab
Bump urllib3 from 2.0.4 to 2.0.6
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 2.0.4 to 2.0.6.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.4...2.0.6 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
CptGibbon
d41e4a518c
Remove redundant call to `frame.pc()`
2 years ago
CptGibbon
1ecfd6d207
Add context-max-threads config
...
Change the number of threads displayed by the `context` command.
Use `set context-max-threads` to change this value, defaults to 4.
Add a total threads count to the banner.
2 years ago
CptGibbon
d050893dac
Initialize banner rather than inserting it
2 years ago
CptGibbon
43b9aefd70
Don't request frames from running threads
...
This was causing errors when gdb was in non-stop mode
2 years ago
CptGibbon
8a7ba1c515
Only inspect valid threads
2 years ago
CptGibbon
b554b95db4
Rename variable
...
Rename `selected_thread` to `original_thread`.
I think this makes its purpose clearer.
2 years ago