Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
InjuredAndroid 1.0.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
B3nac committed Jun 4, 2020
1 parent a011ffd commit be3bda0
Show file tree
Hide file tree
Showing 23 changed files with 21 additions and 16 deletions.
Binary file modified InjuredAndroid.apk
Binary file not shown.
Binary file modified InjuredAndroid/app/src/main/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Binary file modified InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#26A69A</color>
</resources>
1 change: 1 addition & 0 deletions flutter_module/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class MyApp extends StatelessWidget {

return MaterialApp(
title: appTitle,
debugShowCheckedModeBanner: false,
theme: ThemeData(
primaryColor: PrimaryColor,
),
Expand Down
10 changes: 6 additions & 4 deletions flutter_module/lib/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ class MapScreenState extends State<ProfilePage>
child: new Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Icon(
Icons.arrow_back_ios,
color: Colors.black,
size: 22.0,
InkWell(
child: Icon(Icons.arrow_back),
onTap: (){
Navigator.of(context).pop(); // for going back
},
),
Padding(
padding: EdgeInsets.only(left: 25.0),
Expand Down Expand Up @@ -335,6 +336,7 @@ class MapScreenState extends State<ProfilePage>
String runMyFuture(String stringValue) {
getStringValuesSF().then((stringValue) {
return flutterWebviewPlugin.evalJavascript(stringValue);

});
return stringValue;
}
Expand Down
18 changes: 8 additions & 10 deletions flutter_module/lib/run_javascript.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class _MyHomePageState extends State<MyHomePage> {
// TODO: implement initState
super.initState();
_onchanged = flutterWebviewPlugin.onStateChanged.listen((WebViewStateChanged state) {
//flutterWebviewPlugin.evalJavascript(widget.test);
if (mounted) {
if(state.type== WebViewState.finishLoad){ // if the full website page loaded
print("loaded...");
Expand All @@ -51,7 +50,7 @@ class _MyHomePageState extends State<MyHomePage> {
hidden: true , // put it true if you want to show CircularProgressIndicator while waiting for the page to load

appBar: AppBar(
title: Text("Flutter"),
title: Text("Flutter XSS"),
centerTitle: false,
elevation: 1, // give the appbar shadows
iconTheme: IconThemeData(color: Colors.white),
Expand All @@ -60,7 +59,6 @@ class _MyHomePageState extends State<MyHomePage> {
child: Icon(Icons.refresh),
onTap: (){
flutterWebviewPlugin.reload();
// flutterWebviewPlugin.reloadUrl(); // if you want to reloade another url
},
),

Expand Down Expand Up @@ -102,10 +100,13 @@ class _MyHomePageState extends State<MyHomePage> {
InkWell(
child: Icon(Icons.account_circle),
onTap: (){
flutterWebviewPlugin.evalJavascript(widget.test); // for going forward
if (widget.test == "onclick=alert(1)") {
flutterWebviewPlugin.evalJavascript(widget.test);
storeFlagState() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
prefs.setString('flagFourteenButtonColor', "Flag fourteen found!");
SharedPreferences prefs = await SharedPreferences
.getInstance();
prefs.setString(
'flagFourteenButtonColor', "Flag fourteen found!");
}
storeFlagState();
flutterWebviewPlugin.hide();
Expand All @@ -114,21 +115,18 @@ class _MyHomePageState extends State<MyHomePage> {
MaterialPageRoute(
builder: (context) => ProfilePage(),
));
}
},
),

],// make the icons colors inside appbar with white color

),


initialChild: Container( // but if you want to add your own waiting widget just add InitialChild
color: Colors.white,
child: const Center(
child: Text('waiting...'),
),)


);
}
}

0 comments on commit be3bda0

Please sign in to comment.