Comments (7)
Thanks Cryptax, I'm taking a look at this now. Pretty sure I know the issue and can fix it relatively fast.
Very nice and detailed bug report by the way 👍
from apkid.
Ok as of;
rednaga/yara-python@88877e3
Both the yara-python module and the yara module should updated with a fix that will correct the compilation errors you are having.
from apkid.
Per the comment on instructions being unclear, I think I understand what you're saying now. So for the "installing" instructions, we're simply trying to clarify that to use APKiD
currently you must install our modified yara-python
project. This, hopefully, is only until the project is merged upstream into the master yara-python
project. This is why we have you cloning only yara-python
and not APKiD
, followed by using pip
to install our package.
Does this make sense? I'm going to try and reword the README
to clarify this.
from apkid.
With commit;
9d7697b
I believe I've address some clarity issues, let us know if there are any issues now. 👍
from apkid.
Hi Tim,
I had forgotten rednaga would go to you ;) Nice to "see" you again!
I'm afraid, I'm still having issues with compilation of yara-python. To be certain, I pulled a fresh repository for yara-python and apkid.
yara/libyara/modules/dex.c: In function ‘load_proto_ids’:
yara/libyara/modules/dex.c:429:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0, p = 0; p < proto_ids_size; i += 1, p += sizeof(PROTO_ID_ITEM)) {
^
yara/libyara/modules/dex.c:429:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
yara/libyara/modules/dex.c: In function ‘load_method_ids’:
yara/libyara/modules/dex.c:486:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0, p = 0; p < method_ids_size; i += 1, p += sizeof(METHOD_ID_ITEM)) {
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I patched dex.c, with the following and then it compiled:
int i, p;
for (i = 0, p = 0; p < proto_ids_size; i += 1, p += sizeof(PROTO_ID_ITEM)) {
It's strange because your modification in rednaga/yara@6541005 has the fix. But look here, the fix is not in. I haven't investigated why.
from apkid.
Hi @cryptax , I've got the same error message. Looks like two lines 429 and 486 were not modified.
But with clang3.7.1 I built successfully and with GCC I caught this bug.
from apkid.
yep, @rojaster I saw your bug report :)
from apkid.
Related Issues (20)
- [DETECTION] Appguard packer wasn't detected HOT 6
- [DETECTION] Add Korean Protector: ExTrus AppDefence HOT 1
- [DETECTION] Add libmsaoaidsec.so (no idea about name) HOT 1
- [DETECTION] Add Unknown Packer/Protector
- Support scanning AAR/JAR HOT 8
- [DETECTION] New DexGuard v9.x version
- [DETECTION] Unknown protector
- [DETECTION] Risk & anti-fraud Shield SDK
- [DETECTION] NHNent AppGuard improve ELF rule (`libloader.so`)
- [DETECTION] Improve Ijiami packer ELF rule
- [ENHANCEMENT] Improve rule `is_apk` HOT 5
- [DETECTION] Unknown packer (classes.dex) detection HOT 7
- [DETECTION] Flutter App Packed with unknown Packer (classes.dex) HOT 6
- [DETECTION] Add Unknown Packer HOT 2
- [DETECTION] compiler : unknown HOT 4
- [DETECTION] JiaguK packer (classes.dex) detection HOT 7
- [Installation Problem] FileNotFoundError: [Errno 2] No such file or directory: 'yara-python/README.rst' HOT 1
- [DETECTION] Add Naga Reinforcement HOT 1
- [DETECTION] Missing DexGuard 9.x rule (in combo with Promon)
- Bat command no execution. HOT 2
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 apkid.