diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..736e041 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +demo_env.sh diff --git a/frida/.gitignore b/frida/.gitignore index 2c0ce8e..552d099 100644 --- a/frida/.gitignore +++ b/frida/.gitignore @@ -1,3 +1,4 @@ __pycache__ +dist theseus_frida/StackConsumer.dex.b64 consumer/build diff --git a/frida/pyproject.toml b/frida/pyproject.toml index 0197fd1..f38ef4e 100644 --- a/frida/pyproject.toml +++ b/frida/pyproject.toml @@ -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"] } +] diff --git a/test_apks/reflection/soot_test/soot-infoflow-cmd-jar-with-dependencies.jar b/test_apks/reflection/soot_test/soot-infoflow-cmd-jar-with-dependencies.jar new file mode 100644 index 0000000..2666528 Binary files /dev/null and b/test_apks/reflection/soot_test/soot-infoflow-cmd-jar-with-dependencies.jar differ diff --git a/test_apks/reflection/soot_test/source_sink.txt b/test_apks/reflection/soot_test/source_sink.txt new file mode 100644 index 0000000..b5cec8f --- /dev/null +++ b/test_apks/reflection/soot_test/source_sink.txt @@ -0,0 +1,3 @@ + -> _SOURCE_ + -> _SOURCE_ + -> _SINK_ diff --git a/test_apks/reflection/soot_test/test.sh b/test_apks/reflection/soot_test/test.sh new file mode 100644 index 0000000..25da5a1 --- /dev/null +++ b/test_apks/reflection/soot_test/test.sh @@ -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}"