├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── styles.xml │ │ │ └── dimens.xml │ │ ├── drawable-hdpi │ │ │ └── ic_stat_kd.png │ │ ├── drawable-mdpi │ │ │ └── ic_stat_kd.png │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_kd.png │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_kd.png │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_kd.png │ │ ├── drawable-hdpi-v9 │ │ │ └── ic_stat_kd.png │ │ ├── drawable-mdpi-v9 │ │ │ └── ic_stat_kd.png │ │ ├── drawable-xhdpi │ │ │ └── ic_stat_kd.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_stat_kd.png │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_kd.png │ │ ├── drawable-hdpi-v11 │ │ │ └── ic_stat_kd.png │ │ ├── drawable-mdpi-v11 │ │ │ └── ic_stat_kd.png │ │ ├── drawable-xhdpi-v11 │ │ │ └── ic_stat_kd.png │ │ ├── drawable-xhdpi-v9 │ │ │ └── ic_stat_kd.png │ │ ├── drawable-xxhdpi-v9 │ │ │ └── ic_stat_kd.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher_kd.png │ │ ├── drawable-xxhdpi-v11 │ │ │ └── ic_stat_kd.png │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── layout │ │ │ └── activity_main.xml │ │ ├── ic_launcher_kd-web.png │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── pmbento │ │ └── karmadetector │ │ ├── MainActivity.java │ │ └── WifiScannerService.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── screenshot1.png ├── dist └── karmadetector-v0.1.apk ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradle.properties ├── gradlew.bat ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/screenshot1.png -------------------------------------------------------------------------------- /dist/karmadetector-v0.1.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/dist/karmadetector-v0.1.apk -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | KarmaDetector 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/ic_launcher_kd-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/ic_launcher_kd-web.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-hdpi/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-mdpi/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi-v9/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-hdpi-v9/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi-v9/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-mdpi-v9/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-xhdpi/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-xxhdpi/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_kd.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_kd.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_kd.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi-v11/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-hdpi-v11/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi-v11/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-mdpi-v11/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi-v11/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-xhdpi-v11/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi-v9/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-xhdpi-v9/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi-v9/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-xxhdpi-v9/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_kd.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_kd.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi-v11/ic_stat_kd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pmbento/karmadetector/HEAD/app/src/main/res/drawable-xxhdpi-v11/ic_stat_kd.png -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Aug 23 23:03:05 WEST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | #*.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | 15 | # Gradle files 16 | .gradle/ 17 | build/ 18 | /*/build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | *.iml 30 | lint.xml 31 | ant.properties 32 | signing.properties 33 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.0" 6 | defaultConfig { 7 | applicationId 'com.pmbento.karmadetector' 8 | minSdkVersion 17 9 | targetSdkVersion 23 10 | versionName '0.1' 11 | } 12 | buildTypes { 13 | release { 14 | minifyEnabled true 15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 16 | } 17 | } 18 | productFlavors { 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(include: ['*.jar'], dir: 'libs') 24 | compile 'com.android.support:appcompat-v7:23.0.0' 25 | } 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KarmaDetector 2 | 3 | KarmaDetector is an Android application that tries to detect [wireless Karma attacks](http://theta44.org/karma/). 4 | 5 | The current version is still in alpha stage, but should work. 6 | 7 | 8 | 9 | ## Instructions and Implementation Details 10 | 11 | Please visit the [Wiki](https://github.com/pmbento/karmadetector/wiki) section for more details. 12 | 13 | ## Contributing Funds 14 | 15 | Please feel free to contribute with your donations. 16 | 17 | [![Donate](https://www.coinbase.com/assets/buttons/donation_large-5e1b50d6490970e32b80023f3070b1d77afc621b9e64ac996596a67a4671967b.png)](https://www.coinbase.com/pmbento) 18 | 19 | ## License 20 | 21 | Copyright 2015 Patrício Batista 22 | 23 | Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html 24 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/pmbento/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | -assumenosideeffects class android.util.Log { 20 | public static boolean isLoggable(java.lang.String, int); 21 | public static int v(...); 22 | public static int i(...); 23 | public static int w(...); 24 | public static int d(...); 25 | public static int e(...); 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 17 | 18 | 25 | 26 | 32 | 33 | 34 | 35 | 41 | 42 | 50 | 51 | 61 | 62 | 63 | 64 | 71 | 72 |