Comments (3)
I don't think we have that interface in angr
right now.
One thing you can do, is adding up sizes of all basic blocks inside a function, and subtract the duplicate parts.
I'm running out of cycles for the next three days. Maybe someone else in the team has time to implement this feature - or we are happy to take your contribution :-)
from angr.
This is a value exported by the elf symbols, if they are present! If your binary is not stripped, the symbol with your function's name, accessible through CLE, has an attribute size
or sh_size
or something that gives you the size of the function, if memory serves.
In the case of stripped binaries, you will need to do something similar to what ltfish described. Somehow using a normalized CFG (what's the interface for that, I forget?) will help you avoid the duplicate parts thing.
from angr.
Thanks! Both of them worked.
Opened a relates issue: angr/cle#6. Please have a look.
from angr.
Related Issues (20)
- KeyError: 'st0' when decompiling
- KeyError: 'stored' while decompiling
- UnboundLocalError: local variable 'expr' referenced before assignment while decompiling
- angr.errors.SimTranslationError: Unable to translate bytecode while decompiling
- claripy.errors.ClaripyOperationError: Extension length must be nonnegative while decompiling
- false positive functions in `p.kb.functions` due to failure in jump table detection
- Warning about untested tMRS instruction handling in pyvex HOT 4
- Empty code output on `tr.parse_str`
- Calling convention for RISCV64
- Variable arguments not recognized in some functions in binary
- angr reports Segmentation Fault, How can I find the reason. HOT 1
- Angr reports an error state to explore C++ program with `unordered_map` HOT 2
- get_nearest_pos returns an error result
- Propagation failing on push/pop saved registers
- `test_armhf_elf_static_using_armel_libc` failing on nightly CI HOT 3
- Enum support in angr decompiler
- MemoryLocation Atom Endianess Not Being Set in Reaching Definition Analysis (RDA)
- Support/fix for new style (2021) initialization code of `__libc_start_main` to work with modern binaries HOT 1
- AttributeError: 'NoneType' object has no attribute 'addr' HOT 2
- Error when attempting to do VRA with workers=1 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 angr.