add flowdroid tests
This commit is contained in:
parent
0b92b87bbe
commit
9b4eccfc70
6 changed files with 24 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
demo_env.sh
|
||||
1
frida/.gitignore
vendored
1
frida/.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
__pycache__
|
||||
dist
|
||||
theseus_frida/StackConsumer.dex.b64
|
||||
consumer/build
|
||||
|
|
|
|||
|
|
@ -21,3 +21,8 @@ build-backend = "poetry.core.masonry.api"
|
|||
[tool.poetry.scripts]
|
||||
collect-reflection-data = 'theseus_frida.__init__:main'
|
||||
|
||||
[tool.poetry]
|
||||
include = [
|
||||
{ path = "theseus_frida/hook.js", format = ["sdist", "wheel"] },
|
||||
{ path = "theseus_frida/StackConsumer.dex.b64", format = ["sdist", "wheel"] }
|
||||
]
|
||||
|
|
|
|||
Binary file not shown.
3
test_apks/reflection/soot_test/source_sink.txt
Normal file
3
test_apks/reflection/soot_test/source_sink.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<com.example.theseus.Utils: java.lang.String source()> -> _SOURCE_
|
||||
<com.example.theseus.Utils: java.lang.String source(java.lang.String)> -> _SOURCE_
|
||||
<com.example.theseus.Utils: void sink(android.app.Activity,java.lang.String)> -> _SINK_
|
||||
14
test_apks/reflection/soot_test/test.sh
Normal file
14
test_apks/reflection/soot_test/test.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SDK_TOOLS="${HOME}/Android/Sdk/"
|
||||
VERSION='34.0.0'
|
||||
VERSION_B=$(echo "${VERSION}" | sed 's/\..*//')
|
||||
ANDROID_JAR="${SDK_TOOLS}/platforms/android-${VERSION_B}/android.jar"
|
||||
|
||||
FOLDER=$(dirname "$(realpath $0)")
|
||||
|
||||
FLOWDROID="${FOLDER}/soot-infoflow-cmd-jar-with-dependencies.jar"
|
||||
SOURCE_SINK="${FOLDER}/source_sink.txt"
|
||||
JAVA='/usr/lib/jvm/java-17-openjdk/bin/java'
|
||||
|
||||
"${JAVA}" -jar "${FLOWDROID}" -a "${1}" -p "${ANDROID_JAR}" -s "${SOURCE_SINK}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue