diff --git a/InjuredAndroid.apk b/InjuredAndroid.apk index d74c5b6..86cd507 100644 Binary files a/InjuredAndroid.apk and b/InjuredAndroid.apk differ diff --git a/InjuredAndroid/app/src/main/ic_launcher-web.png b/InjuredAndroid/app/src/main/ic_launcher-web.png index 00757db..7597d31 100644 Binary files a/InjuredAndroid/app/src/main/ic_launcher-web.png and b/InjuredAndroid/app/src/main/ic_launcher-web.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml index c4a603d..036d09b 100644 --- a/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml index c4a603d..036d09b 100644 --- a/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ b/InjuredAndroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.png b/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.png index efd7ee5..99f2934 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png index 1b60c6c..7d0ffae 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and b/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.png index 53dd5e6..2f1b6a9 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/InjuredAndroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.png b/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.png index d3c874d..93aea1b 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png index 4b0954e..32b12a1 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and b/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.png index 2db4ba8..62440ba 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/InjuredAndroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 05dceda..b14a601 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png index a1fe6a6..5f2039d 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and b/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png index c296836..04ff715 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/InjuredAndroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index 23b1d6f..46d56ea 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png index e266985..b9062bf 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png index af6223d..7a2eb05 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/InjuredAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index d03d739..7892842 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png index 9c504fe..10c0ed4 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png index 9327ef9..4883e8d 100644 Binary files a/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/InjuredAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/InjuredAndroid/app/src/main/res/values/ic_launcher_background.xml b/InjuredAndroid/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..09a756b --- /dev/null +++ b/InjuredAndroid/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #26A69A + \ No newline at end of file diff --git a/flutter_module/lib/main.dart b/flutter_module/lib/main.dart index 9764483..cfb37ae 100644 --- a/flutter_module/lib/main.dart +++ b/flutter_module/lib/main.dart @@ -14,6 +14,7 @@ class MyApp extends StatelessWidget { return MaterialApp( title: appTitle, + debugShowCheckedModeBanner: false, theme: ThemeData( primaryColor: PrimaryColor, ), diff --git a/flutter_module/lib/profile.dart b/flutter_module/lib/profile.dart index 970d798..d50a081 100644 --- a/flutter_module/lib/profile.dart +++ b/flutter_module/lib/profile.dart @@ -49,10 +49,11 @@ class MapScreenState extends State child: new Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ - 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), @@ -335,6 +336,7 @@ class MapScreenState extends State String runMyFuture(String stringValue) { getStringValuesSF().then((stringValue) { return flutterWebviewPlugin.evalJavascript(stringValue); + }); return stringValue; } diff --git a/flutter_module/lib/run_javascript.dart b/flutter_module/lib/run_javascript.dart index 663ad63..1002eaf 100644 --- a/flutter_module/lib/run_javascript.dart +++ b/flutter_module/lib/run_javascript.dart @@ -24,7 +24,6 @@ class _MyHomePageState extends State { // 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..."); @@ -51,7 +50,7 @@ class _MyHomePageState extends State { 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), @@ -60,7 +59,6 @@ class _MyHomePageState extends State { child: Icon(Icons.refresh), onTap: (){ flutterWebviewPlugin.reload(); - // flutterWebviewPlugin.reloadUrl(); // if you want to reloade another url }, ), @@ -102,10 +100,13 @@ class _MyHomePageState extends State { 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(); @@ -114,21 +115,18 @@ class _MyHomePageState extends State { 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...'), ),) - - ); } } \ No newline at end of file