bsdphk / pyreveng3 Goto Github PK
View Code? Open in Web Editor NEWPython based Code Reverse Engineering tool -- Take 3
License: Other
Python based Code Reverse Engineering tool -- Take 3
License: Other
I know it never works like that, but one can only try, right?
So, I went running "git pull" thru my reverse engineering projects dump, and noticed that among many projects dead yours is still running "strong". As you guessed, I have the same problem, even more: I now have 3 times more commits and a bunch more code for program analysis. There're differences too:
Intermediate Language
This is not exactly LLVM's IL. The we use it as a "generic" assembly
language for human consumption, not for precise directives to code
generators. However, it is the intent that conversion to proper
LLVM IL a trivial exercise in dumb text-processing
So, my project, https://github.com/pfalcon/ScratchABlock, explicitly rejects LLVM IR as something not really human readable. Nor it's trivial to produce LLVM IR, unless of course you mean to convert your registers to memory variables and load/store them. That's definitely doable, though probably not the dumbest of all the dumb text-processing, but then LLVM indeed will take care of converting your code to SSA form. Otherwise that needs to be done by you, and SSA conversion isn't exactly trivial.
What can be more human readable than C? That's the idea behind ScratchABlock's IL. It's more or less described in https://github.com/pfalcon/ScratchABlock/blob/master/docs/PseudoC-spec.md . Examples of decompilation can be found in https://github.com/pfalcon/ScratchABlock/tree/master/tests/decomp .
https://github.com/pfalcon/ScratchABlock/tree/master/tests/decomp/sub_5fac in particular was contributed by a guy who wrote PowerPC -> PseudoC converter. (The rest of example (growing) come from my Xtensa work).
Well, I'd be really interested to hear from someone trying it for "HP nanoprocessor" and other CPUs I never heard of. Feel free to give it a thought ;-).
Happy New Year!
I get this when I run any of the examples. For example:
$ python3 examples/HP1345A/example.py
examples/HP1345A/example.py
HP1345A graphics 122-2c8 rendered to /tmp/_.HP1345A.122.svg
HP1345A graphics 31e-400 rendered to /tmp/_.HP1345A.31e.svg
Traceback (most recent call last):
File "examples/HP1345A/example.py", line 95, in <module>
listing.Listing(pj, ncol=2)
File "/home/mcmaster/doc/ext/PyReveng3/pyreveng/listing.py", line 60, in __init__
lo = asp.lo
AttributeError: 'Job' object has no attribute 'lo'
Ubuntu 16.04.6, Python 3.5.2. Please let me know if you'd like any additional information
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.