forked from SoftSec-KAIST/TikNib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- modifies regex in `tiknib/utils.py` to match any version of gcc/clang - adds `config/path_variables.py` to enable ease of use. note: `path_variables.py` was written to work in Bash and Python universally. - fixes a problem with the ase18 dataset and the coreutils debug information which caused all v6.5 functions to be discarded. - adds tablulate to print out a formated ROC table. - adds `-P+` to enable compressing the IDA Pro databases. Saves a lot of storage space for this massive dataset! For example objdump reduces from 48M to 6M. ``` 6.8M Dec 2 2018 /tmp/notpacked/binutils-2.30_clang-7.0_arm_64_O0_objdump.elf 48M Jan 28 10:43 /tmp/notpacked/binutils-2.30_clang-7.0_arm_64_O0_objdump.elf.i64 6.8M Dec 2 2018 /tmp/packed/binutils-2.30_clang-7.0_arm_64_O0_objdump.elf 6.2M Jan 28 10:41 /tmp/packed/binutils-2.30_clang-7.0_arm_64_O0_objdump.elf.i64 ```
- Loading branch information
Showing
20 changed files
with
178 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_all.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_arm_arm.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_arm_mips.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_arm_x86.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_mips_arm.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_mips_mips.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_mips_x86.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_x86_arm.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_x86_mips.yml | ||
/home/dongkwan/tiknib/config/openssl/config_openssl_x86_x86.yml | ||
config/openssl/config_openssl_all.yml | ||
config/openssl/config_openssl_arm_arm.yml | ||
config/openssl/config_openssl_arm_mips.yml | ||
config/openssl/config_openssl_arm_x86.yml | ||
config/openssl/config_openssl_mips_arm.yml | ||
config/openssl/config_openssl_mips_mips.yml | ||
config/openssl/config_openssl_mips_x86.yml | ||
config/openssl/config_openssl_x86_arm.yml | ||
config/openssl/config_openssl_x86_mips.yml | ||
config/openssl/config_openssl_x86_x86.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,47 @@ | ||
#!/bin/bash | ||
|
||
source config/path_variables.py | ||
|
||
SECONDS=0 | ||
echo "Processing IDA analysis ..." | ||
python3 helper/do_idascript.py \ | ||
--idapath "/home/dongkwan/.tools/ida-6.95" \ | ||
--idc "tiknib/ida/fetch_funcdata.py" \ | ||
--idapath "${IDA_PATH}" \ | ||
--idc "${IDA_FETCH_FUNCDATA}" \ | ||
--input_list "example/input_list_find.txt" \ | ||
--log | ||
|
||
echo "Extracting function types ..." | ||
|
||
echo "Extract source file names and line numbers... ${SECONDS}s" | ||
python3 helper/extract_lineno.py \ | ||
--input_list "example/input_list_find.txt" \ | ||
--threshold 1 | ||
|
||
|
||
echo "Filtering functions... ${SECONDS}s" | ||
python3 helper/filter_functions.py \ | ||
--input_list "example/input_list_find.txt" \ | ||
--threshold 1 | ||
|
||
|
||
echo "Counting functions..." | ||
python3 helper/count_functions.py \ | ||
--input_list "example/input_list_find.txt" \ | ||
--threshold 1 | ||
|
||
|
||
echo "Extracting function types ... ${SECONDS}s" | ||
python3 helper/extract_functype.py \ | ||
--source_list "example/source_list.txt" \ | ||
--input_list "example/input_list_find.txt" \ | ||
--ctags_dir "data/ctags" \ | ||
--threshold 1 | ||
|
||
echo "Extracting features ..." | ||
echo "Extracting features ... ${SECONDS}s" | ||
python3 helper/extract_features.py \ | ||
--input_list "example/input_list_find.txt" \ | ||
--threshold 1 | ||
|
||
echo "Testing features ..." | ||
echo "Testing features ... ${SECONDS}s" | ||
python3 helper/test_roc.py \ | ||
--input_list "example/input_list_find.txt" \ | ||
--config "config/gnu/config_gnu_normal_all.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.