Comments (8)
That's not implemented yet, but it's on the TODO list.
from gef.
I played with this tonight. Shouldn't be too difficult.
We need a way to have structures reference eachother.
- The name shoudn't have to be
Template
- We should allow more than one per file. Maybe they would be referenced by module? e.g.
dt heap.main_arena
, allowing something likeheap.fast_bins
to exist in the same module and obviously allow them to reference each other. - Should we allow inter-module? This gets a bit tricky because the importing between would be weird. I hacked this in a test module by editing
sys.path
which is very bad style
Note that this only works for embedded structures not pointers to structures.
from gef.
@Grazfather : I totally missed your comment on this ... I needed this feature on a CTF this weekend, so I was about to get to it. Do you already have a patch ready for that?
from gef.
Mine is super ugly, but I can push it.
EDIT: https://github.com/Grazfather/gef/tree/embed
from gef.
I'll have a look but I've also started on my end 😄
from gef.
For sure. It's easy enough to implement, I just wasn't sure a nice way to have the modules find each other (sys.path stuff) and how to make it look.
from gef.
For now, I'm using pcustom.struct_path
to "manually" load the desired module (with imp
): for every .py file in the directory, I am importing all classes from the variable exportables
. This approach allows to not touch the Python path, but also to select which class are to be visible.
from gef.
This was fixed long ago.
from gef.
Related Issues (20)
- [Bug] GEF installation error with GDB 8.2 with Python3.6 bindings HOT 3
- [Bug] read_cstring length can be set so that it reads into an unmapped region HOT 5
- [Bug] Missing update of local `/proc/{pid}/maps` in remote session when new shared library is loaded HOT 5
- [Bug] cant open under ubuntu 16.0.4 python 3.6 HOT 2
- Question about pyenv HOT 6
- [Docs] Add `pre-commit` documentation
- sth. about function and UI HOT 1
- gef for windows HOT 4
- The Gef Frame Is small HOT 2
- [Bug] AssertionError HOT 5
- Possible GEF `dereference` issue with `gef-remote` HOT 7
- Add support for LLDB HOT 1
- [Bug] GEF supports Python 3.6+ but uses f-string debugging only introduced in Python 3.8+, breaking compatibility
- [Bug] vmmap command 'offset' column actually shows size HOT 1
- [Bug] SyntaxError: unterminated triple-quoted string literal HOT 1
- display bug , after some commands ,there will be a wrong display HOT 10
- Python Exception <class 'RuntimeError'>: No session started HOT 5
- Alpine dependencies HOT 2
- variable name causes problems
- General Maintenance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gef.