ex 3 completed
This commit is contained in:
@@ -15,39 +15,30 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
// FLAG 1: FLAG{Gutta_cavat_
|
// FLAG 1: FLAG{Gutta_cavat_
|
||||||
// FLAG 2: lapidem_non_vi
|
// FLAG 2: lapidem_non_vi
|
||||||
// FLAG 3:
|
// FLAG 3: _sed_saepe
|
||||||
// FLAG 4: _cadendo}
|
// FLAG 4: _cadendo}
|
||||||
|
|
||||||
|
String flag = "";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_main);
|
||||||
|
|
||||||
// "com.example.victimapp/.PartOne"
|
|
||||||
|
|
||||||
Intent callIntent1 = new Intent();
|
Intent callIntent1 = new Intent();
|
||||||
callIntent1.setComponent(ComponentName.unflattenFromString("com.example.victimapp/.PartOne"));
|
callIntent1.setComponent(ComponentName.unflattenFromString("com.example.victimapp/.PartOne"));
|
||||||
startActivityForResult(callIntent1, 1);
|
startActivityForResult(callIntent1, 1);
|
||||||
|
|
||||||
|
|
||||||
Intent callIntent2 = new Intent("com.example.victimapp.intent.action.JUSTASK");
|
Intent callIntent2 = new Intent("com.example.victimapp.intent.action.JUSTASK");
|
||||||
startActivityForResult(callIntent2, 2);
|
startActivityForResult(callIntent2, 2);
|
||||||
|
|
||||||
Intent callIntent3 = new Intent();
|
Intent callIntent3 = new Intent();
|
||||||
callIntent3.setComponent(ComponentName.unflattenFromString("com.example.victimapp/.PartThree"));
|
callIntent3.setComponent(ComponentName.unflattenFromString("com.example.victimapp/.PartThree"));
|
||||||
startActivityForResult(callIntent3, 1);
|
startActivityForResult(callIntent3, 3);
|
||||||
|
|
||||||
Intent callIntent4 = new Intent("com.example.victimapp.intent.action.JUSTASKBUTNOTSOSIMPLE");
|
Intent callIntent4 = new Intent("com.example.victimapp.intent.action.JUSTASKBUTNOTSOSIMPLE");
|
||||||
startActivityForResult(callIntent4, 4);
|
startActivityForResult(callIntent4, 4);
|
||||||
|
|
||||||
// Intent resultIntent = new Intent();
|
|
||||||
// setResult(Activity.RESULT_OK, resultIntent);
|
|
||||||
|
|
||||||
// String result = callIntent.getDataString();
|
|
||||||
// Intent data = new Intent();
|
|
||||||
// onActivityResult(0, RESULT_OK, data);
|
|
||||||
// Log.d("MOBIOTSEC", "onCreate: " + data.getDataString());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -76,6 +67,8 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Log.d("MOBIOTSEC", ">> FLAG (follow the value... 6 TIMES RLY?): " + extra.getString("never ending story"));
|
Log.d("MOBIOTSEC", ">> FLAG (follow the value... 6 TIMES RLY?): " + extra.getString("never ending story"));
|
||||||
|
} else if(resultCode == 3) {
|
||||||
|
Log.d("MOBIOTSEC", ">> FLAG: " + extra.getString("hiddenFlag"));
|
||||||
} else {
|
} else {
|
||||||
Log.d("MOBIOTSEC", ">> FLAG: " + extra.getString("flag"));
|
Log.d("MOBIOTSEC", ">> FLAG: " + extra.getString("flag"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user