Skip to content

Commit

Permalink
Release v1, update copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebFenton committed Mar 9, 2017
1 parent fd9c208 commit eb8571c
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 27 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pip install apkid
```
usage: apkid [-h] [-j] [-t TIMEOUT] [-o DIR] [FILE [FILE ...]]
APKiD - Android Application Identifier v0.9.5
APKiD - Android Application Identifier v1.0.0
positional arguments:
FILE apk, dex, or directory
Expand All @@ -39,8 +39,8 @@ optional arguments:

# Submitting New Packers / Compilers / Obfuscators

If you come across an APK or DEX that APKiD does not recognize, please open a GitHub issue and tell us:
* what you think it is
If you come across an APK or DEX which APKiD does not recognize, please open a GitHub issue and tell us:
* what you think it is
* the file hash (either MD5, SHA1, SHA256)

We are open to any type of concept you might have for "something interesting" to detect, so do not limit yourself solely to packers, compilers or obfuscators. If there is an interesting anti disassembler, anti vm, anti* trick, please make an issue.
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Usage

usage: apkid [-h] [-j] [-t TIMEOUT] [-o DIR] [FILE [FILE ...]]

APKiD - Android Application Identifier v0.9.5
APKiD - Android Application Identifier v1.0.0

positional arguments:
FILE apk, dex, or directory
Expand All @@ -53,7 +53,7 @@ Usage
Submitting New Packers / Compilers / Obfuscators
================================================

If you come across an APK or DEX that APKiD does not recognize, please
If you come across an APK or DEX which APKiD does not recognize, please
open a GitHub issue and tell us: \* what you think it is \* the file
hash (either MD5, SHA1, SHA256)

Expand Down
6 changes: 3 additions & 3 deletions apkid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2016 RedNaga. http://rednaga.io
Copyright (C) 2017 RedNaga. http://rednaga.io
All rights reserved. Contact: [email protected]
Expand All @@ -27,10 +27,10 @@
"""

__title__ = 'apkid'
__version__ = '0.9.5'
__version__ = '1.0.0'
__author__ = 'Caleb Fenton & Tim Strazzere'
__license__ = 'GPL & Commercial'
__copyright__ = 'Copyright (C) 2016 RedNaga'
__copyright__ = 'Copyright (C) 2017 RedNaga'

import argparse

Expand Down
2 changes: 1 addition & 1 deletion apkid/apkid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (C) 2016 RedNaga. http://rednaga.io
Copyright (C) 2017 RedNaga. http://rednaga.io
All rights reserved. Contact: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/apk/common.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
4 changes: 2 additions & 2 deletions apkid/rules/apk/packers.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down Expand Up @@ -38,7 +38,7 @@ rule dxshield : packer
$res = "assets/DXINFO.XML"
condition:
is_apk and ($decryptlib and $res)
is_apk and ($decryptlib and $res)
}

rule secneo : packer
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/dex/abnormal.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/dex/anti-vm.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/dex/common.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/dex/compilers.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/dex/obfuscators.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/dex/packers.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/elf/anti-vm.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
2 changes: 1 addition & 1 deletion apkid/rules/elf/packers.yara
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 RedNaga. http://rednaga.io
* Copyright (C) 2017 RedNaga. http://rednaga.io
* All rights reserved. Contact: [email protected]
*
*
Expand Down
13 changes: 6 additions & 7 deletions prep-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,30 @@
import yara

rules_dir = 'apkid/rules/'
compiled_rules_path = "%srules.yarc" % rules_dir
compiled_rules_path = os.path.join(rules_dir, 'rules.yarc')

print "[*] Converting Markdown README to reStructuredText"
print("[*] Converting Markdown README to reStructuredText")
rst = pypandoc.convert_file('README.md', 'rst')
with open('README.rst', 'w+', encoding='utf-8') as f:
f.write(rst)
print "[*] Finished converting to README.rst ({} bytes)".format(len(rst))
print("[*] Finished converting to README.rst ({} bytes)").format(len(rst))

yara_files = {}
for root, dirnames, filenames in os.walk(rules_dir):
for filename in fnmatch.filter(filenames, '*.yara'):
path = os.path.join(root, filename)
yara_files[path] = path

# print yara_files
print "[*] Compiling {} Yara rule files".format(len(yara_files))
print("[*] Compiling {} Yara rule files").format(len(yara_files))
rules = yara.compile(filepaths=yara_files)
rules.save(compiled_rules_path)

count = 0
for _ in rules:
count += 1
print "[*] Saved {} rules to {}".format(count, compiled_rules_path)
print("[*] Saved {} rules to {}").format(count, compiled_rules_path)

# print "[*] Registering ..."
# print("[*] Registering ...")
# os.system("python setup.py register")

# print "[*] Cleaning up ..."
Expand Down

0 comments on commit eb8571c

Please sign in to comment.