Comments (4)
If you're too slow @hugsy will just do it for you :D
from gef-extras.
@khaoticdude If you still plan on working on this, you can use strerror
to avoid collecting manually all the Linux error codes:
from ctypes import *
libc = CDLL("libc.so.6")
libc.strerror.restype = c_char_p
libc.strerror.argtypes = [c_uint32,]
EPERM = 1
c_s = c_char_p( libc.strerror( EPERM ) )
print("%d -> %s" % (EPERM, c_s.value))
Will output something easy to plug into gef.
1 -> b'Operation not permitted'
Ping us if you have questions
from gef-extras.
Done with d255e3c
from gef-extras.
from gef-extras.
Related Issues (20)
- Gef-Extras Breaks Gef on Arch HOT 2
- Unknown format code 'x' for object of type 'str' Error when running generated <tmp_file>.py from skel.py HOT 3
- ida_interact: replace XmlRpcServer with RPyc HOT 2
- Command 'visualize-libc-heap-chunks' failed to execute properly, reason: type object 'GlibcArena' has no attribute 'TCACHE_MAX_BINS' HOT 5
- windbg alias p conflicts with p/x, p/d HOT 1
- ``visualize-libc-heap-chunks`` command seems to fail because of a mistype on a GlibcChunk class member HOT 7
- improve retdec decompilation output
- skel is_big_endian deprecated HOT 2
- some error in ubuntu20.04:AttributeError: type object 'ABCMeta' has no attribute '_cmdline_' HOT 11
- unable to use syscall-args when gef-extras configured in python3.9 HOT 6
- source syntax highlight HOT 1
- Cannot print stack frame using `stack-view` when in main method
- Install script fails to pull all dependencies HOT 3
- ropper.py breaks tab completion
- `visualize-heap` is broken HOT 1
- libc_function_args and syscall_args error when installing gef-extras HOT 6
- Trying to run unicorn-emulate with an ARM64 binary causes a syntax error HOT 4
- Restore Binja compat for `ida-interact`
- NameError: name 'register' is not defined HOT 6
- Command stack support? HOT 4
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-extras.