File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
cSploit/src/org/csploit/android Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -943,6 +943,15 @@ public static void reset() {
943
943
mTargets .add (gateway );
944
944
mTargets .add (device );
945
945
946
+ scanThemAll ();
947
+ }
948
+ }
949
+
950
+ public static void scanThemAll () {
951
+ if (!mCoreInitialized ) {
952
+ return ;
953
+ }
954
+ synchronized (mTargets ) {
946
955
for (Target t : mTargets ) {
947
956
Services .getNetworkRadar ().onNewTargetFound (t );
948
957
}
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ public void onNewTargetFound(final Target target) {
72
72
if (target .getType () == Target .Type .NETWORK )
73
73
return ;
74
74
75
+ if (!System .isCoreInitialized ()) {
76
+ return ;
77
+ }
78
+
75
79
ThreadHelper .getSharedExecutor ().execute (new Runnable () {
76
80
@ Override
77
81
public void run () {
@@ -143,6 +147,7 @@ public void onHostLost(InetAddress ipAddress) {
143
147
@ Override
144
148
public void onStart (String cmd ) {
145
149
sendIntent (NRDR_STARTED );
150
+ System .scanThemAll ();
146
151
}
147
152
148
153
public void onEnd (int exitValue ) {
You can’t perform that action at this time.
0 commit comments