8000 Added obfuscation script · basedrhys/obfuscated-code2vec@f46650e · GitHub
[go: up one dir, main page]

Skip to content

Commit f46650e

Browse files
committed
Added obfuscation script
1 parent b2dc971 commit f46650e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scripts/obfs-script.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
###########################################################
3+
INPUT_DIR=java-large
4+
OUTPUT_DIR=java-large-test
5+
NUM_PARTITIONS=1
6+
NUM_THREADS=13
7+
ARGS="-Xmx13g"
8+
9+
###########################################################
10+
11+
mkdir -p ${OUTPUT_DIR}
12+
13+
counter=1
14+
while [ $counter -le $NUM_PARTITIONS ]
15+
do
16+
echo "Starting partition ${counter}"
17+
echo $(date +%d-%m-%Y" "%H:%M:%S)
18+
java ${ARGS} -jar java-tool.jar -s ${INPUT_DIR} -t ${OUTPUT_DIR} -pNum ${counter} -pTotal ${NUM_PARTITIONS} -threads ${NUM_THREADS} &>> obfs_output.txt
19+
killall -s 9 java
20+
((counter++))
21+
done
22+
23+
echo All done

0 commit comments

Comments
 (0)
0