tkmru / nao Goto Github PK
View Code? Open in Web Editor NEWSimple No-meaning Assembly Omitter for IDA Pro (This is just a prototype)
License: GNU General Public License v3.0
Simple No-meaning Assembly Omitter for IDA Pro (This is just a prototype)
License: GNU General Public License v3.0
It is troublesome to check operation using IDA.
Hello,
I tried running this plugin on a CTF binary from GreHack 2015 (This one) and the plugin crashes when I try to run dead code elimination.
Here is the python traceback :
Traceback (most recent call last):
File "D:/Logiciels/IDA6.8/scripts/nao/nao.py", line 201, in create_view
view.Create()
File "D:/Logiciels/IDA6.8/scripts/nao/nao.py", line 104, in Create
self.load(ea)
File "D:/Logiciels/IDA6.8/scripts/nao/nao.py", line 118, in load
if not self.eliminate_deadcode(ea):
File "D:/Logiciels/IDA6.8/scripts/nao/nao.py", line 149, in eliminate_deadcode
if b'\x90' != i[1][0]: # check dead code
IndexError: string index out of range
use PyQt IDLE event.
copyed from handle infinite loop · Issue #19 · tkmru/nao
Windows 10 1607
IDA PRO 7.5
Python 3.8
looks like a very useful tool! linked to your project from our site now: http://www.unicorn-engine.org/showcase/
keep it up, cheers.
To resolve issue, make PLUGIN_ENTRY function.
hook write and read memory, check address and write data to memory.
nao> python -m unittest discover
E
======================================================================
ERROR: tests.test_eliminate (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_eliminate
Traceback (most recent call last):
File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
__import__(name)
File "C:\Downloads\nao\tests\test_eliminate.py", line 6, in <module>
from nao import eliminate
File "C:\Downloads\nao\nao\eliminate.py", line 6, in <module>
import idaapi
ImportError: No module named idaapi
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
mov ecx, ds:?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A ; std::basic_istream<char,std::char_traits<char>> std::cin
stc
cmc
This does not get removed by nao for some reason.
Can you update it to new version?
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.