https://github.com/bannsec/gef_venv
GEF in a Python Virtual Environment
https://github.com/bannsec/gef_venv
Last synced: 11 months ago
JSON representation
GEF in a Python Virtual Environment
- Host: GitHub
- URL: https://github.com/bannsec/gef_venv
- Owner: bannsec
- Created: 2017-04-03T22:55:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T21:35:12.000Z (over 8 years ago)
- Last Synced: 2025-04-09T08:47:37.419Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
This is a wrapper script to install the GDB Enhanced Features toolkit into a python virtual environment. It also installs libdislocator and exploitable and enables GEF analysis modules by default on start.
# Install
First, ensure you're in a virtual environment. The installer script will check and warn you if your python version mismatches with GDB's. Then, just run the installer:
```bash
(venv) $ ./install_gef.sh
```
It will compile and install stuff into your virtual environment. Nothing will be installed external to it.
# Running
This installer creates a wrapper named `gef`. So it's as simple as activating your virtual environment and replacing `gdb` with `gef`.
```bash
$ workon myenv
(myenv) $ gef ./a.out test
```
# Common Errors
## mprotect() failed: Cannot allocate memory
This is because libdislocator creates a TON of malloc areas. Try updating `max_map_count` to be super high:
```bash
echo 128000 > /proc/sys/vm/max_map_count
```