guedou / r2m2 Goto Github PK
View Code? Open in Web Editor NEWradare2 + miasm2 = ♥
License: GNU Lesser General Public License v3.0
radare2 + miasm2 = ♥
License: GNU Lesser General Public License v3.0
Currently, r2m2 only works on 32 bits architectures. That can be modified in the plugins:
.bits = 16|32|64,
After opening /bin/ls the architecture is switched to x86 by r2:
docker run --rm -it -e 'R2M2_ARCH=x86_64' guedou/r2m2
-- Are you a wizard?
[0x00000000]> e~arch
anal.arch = r2m2
[..]
[0x00000000]> o /bin/ls
4
[0x0000487f]> e~arch
anal.arch = x86
[..]
Also, there is an OverflowError on the first call.
Simplify the installation using a requirements.txt
file.
Dear developers,
Good morning. How are you?
Unfortunately, I haven't gotten correctly compiling the r2m2 as shown below:
root@ubuntu1:~/r2m2# make all install
python tools/gen_includes.py /usr/include/libr
python tools/cffi_miasm.py r2m2_ad
Traceback (most recent call last):
File "tools/cffi_miasm.py", line 31, in
ffi.embedding_api(includes)
File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 110, in embedding_api
self._cdef(csource, packed=packed, dllexport=True)
File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 121, in _cdef
self._parser.parse(csource, override=override, **options)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 315, in parse
self._internal_parse(csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 320, in _internal_parse
ast, macros, csource = self._parse(csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 278, in _parse
self.convert_pycparser_error(e, csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 307, in convert_pycparser_error
*raise CDefError(msg)
cffi.error.CDefError: cannot parse "RBuffer buf_inc;"
:14:2: before: RBuffer
Makefile:47: recipe for target 'miasm_embedded_r2m2_ad.c' failed
make: *** [miasm_embedded_r2m2_ad.c] Error 1
This error occurs using Ubuntu 16.04.1 and Kali Linux 2018. The same error also happen when I tried do build the docker using "docker build -t guedou/r2m2 .". All requirements (radare2, miasm, cffi, pycparser and jinja2) are installed.
Additionally, I've tried changing the cffi and pycparser versions, but I've gotten the same error.
I hope you have an amazing day.
Alexandre.
I was using r2m2 because I was looking for a tool to emulate PEB and win32 api from r2 command line.
Does r2m2 answer to my issue? Is it implemented?
best regards.
docker run -v "$(pwd)":/home/r2m2 --rm -it -e 'R2M2_ARCH=x86_64' guedou/r2m2 bash
[r2m2@90280a71d3a6 ~]$ rasm2 -L | grep r2m2
[r2m2@90280a71d3a6 ~]$
r2pm -i r2m2
The miasm_embedded_r2m2_* files are not removed.
From highest to lowest priority:
The analyze ()
function is called more than once per instruction. This slows done r2m2 =/
SH4 architecture does not have expected miasm2 features (getpc(), getsp(), dis_engine(), ...)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.