Simple Firebase + Flutter example

Downloaded this:

https://github.com/lohanidamodar/flutter_firebase_starter.git

And "flutter build apk" immediately result in an error that leads to this:

https://fluttercorner.com/your-flutter-application-is-created-using-an-older-version-of-the-android-embedding-it-is-being-deprecated-in-favor-of-android-embedding-v2/

Following the steps, after modify according to the website above, the patch applied are as follows:

diff –git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 6a552d4..c026b8a 100644
— a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,7 +6,7 @@
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. –>
<application
– android:name="io.flutter.app.FlutterApplication"
+ android:name="${applicationName}"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher">
<activity
@@ -24,6 +24,11 @@
<action android:name="FLUTTER_NOTIFICATION_CLICK" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
+ <!– Don’t delete the meta-data below.
+ This is used by the Flutter tool to generate GeneratedPluginRegistrant.java –>
+ <meta-data
+ android:name="flutterEmbedding"
+ android:value="2" />
</activity>
<activity
android:name="com.yalantis.ucrop.UCropActivity"

Trying out "flutter build apk" again:

Because firebase_auth >=0.18.4 <0.18.4+1 depends on firebase_auth_web ^0.3.2+2 and firebase_auth ^0.18.4+1 depends on firebase_auth_web ^0.3.2+3, firebase_auth ^0.18.4 requires firebase_auth_web ^0.3.2+2.
And because no versions of firebase_auth match >0.18.3+1 <0.18.4 and firebase_auth 0.18.3+1 depends on firebase_auth_web ^0.3.2+1, firebase_auth ^0.18.3+1 requires firebase_auth_web ^0.3.2+1.
And because firebase_auth_web >=0.3.0-dev.1 <0.4.0-1.0.nullsafety.0 depends on intl ^0.16.1 and ev

And looking at the version:

well, I think the problem will need more time for solution.

How to compile the Flutter-based Space Empire games as found in github?

There is s Space Empire game I found on github:

https://github.com/SatyamX64/space_empires.git

and after downloading it, "flutter build apk" immediately results in errors. Following through the errors:

https://stackoverflow.com/questions/70389267/error-member-not-found-packageroot-in-flutter

And the first hint as suggested is to upgrade the version:

flutter channel stable
flutter upgrade
flutter pub upgrade

Then we tried compiling again:

The contents of android/app/

Modified it to become:

After some modifications:

https://gist.github.com/tthtlc/15773f6707d0d0d70d454d07fe333f0e

We finally execute "flutter run":

References:

https://reactnative.dev/docs/signed-apk-android.html

https://stackoverflow.com/questions/57883438/signingconfig-release-is-missing-required-property-keypassword

https://stackoverflow.com/questions/48017376/keystore-not-found-for-signing-config-release-react-native

Multi-stage shellcode using egghunters

https://barriersec.com/2018/11/linux-x86-egghunter-shellcode-slae-assignment-3/

https://epi052.gitlab.io/notes-to-self/blog/2018-07-29-x64-linux-egghunter-shellcode/

https://fluidattacks.com/blog/vulnserver-kstet/

https://resources.infosecinstitute.com/topic/buffer-overflow-vulnserver/

https://www.coalfire.com/the-coalfire-blog/the-basics-of-exploit-development-3-egg-hunters

https://www.exploit-db.com/docs/english/18482-egg-hunter—a-twist-in-buffer-overflow.pdf

https://www.fuzzysecurity.com/tutorials/expDev/4.html

How to create a new Laravel Application?

For Ubuntu 20.04, first you will need to have php-cli:

sudo apt-get install php7.4-cli

and this will install the command line /usr/bin/php.

Next is to download composer:

https://getcomposer.org/download/

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"

Copy the downloaded file "composer.phar" into a path in your home directory (where you have write control, eg, $HOME/bin):

(you can also get the Ubuntu’s composer from its distribution via "sudo apt-get install composer" but will be not the latest, just compare and check via "composer.phar –version")

export PATH=$PATH:$HOME/bin
mv composer.phar ~/bin/composer2310

(to emphasize the version is 2.3.10)

Detail installation instruction are available here:

https://laravel.com/docs/7.x/installation

So to install laravel the command will be "composer2310 global require laravel/installer" instead.

Halfway you may encounter errors like this:

The cause of the error is because I have installed other stuff with composer before, and the composer is Ubuntu’s original version, thus resulting in version pollution. To overcome these, delete the entire directory where composer dependencies are installed:

"mv ~/.config/composer/ /tmp" as shown below:

Now laravel installation succeeded, and it goes into $HOME/.config/composer/vendor/bin directory, so put that into the $PATH (so that you can issue laravel command):

export PATH=$PATH:$HOME/.config/composer/vendor/bin

(You can put that into the .bashrc and start a new terminal)

The "autoload" files you see above are located in the following directories:

Now use the laravel command (https://laravel.com/docs/7.x/installation):

An error occurred.

Similarly following alternatively instruction at:

https://www.tutorialspoint.com/laravel/laravel_installation.htm

composer2310 create-project laravel/laravel –prefer-dist

I got this error:

Solution is to install:

sudo apt-get install php-xml

Retry again:

And ending with:

the command "php artisan" being to complete certain tasks.

And finally to serve the webpages:

And the new blog command succeeded as well:

And at the end of of creation:

http://127.0.0.1:8001

More information about composer are here:

https://getcomposer.org/doc/01-basic-usage.md

https://stackoverflow.com/questions/64523505/php-artisan-failed-to-open-stream-no-such-file-or-directory

How to setup a Student Management System

This is based on the opensource software at:

https://github.com/amirhamza05/Student-Management-System.git

First install nginx and configure it to run PHP:

https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Nginx-PHP-FPM-config-example

https://www.digitalocean.com/community/tutorials/php-fpm-nginx

Next download via git the Student Management software at:

https://github.com/amirhamza05/Student-Management-System.git

And move the entire directory to /var/www/html and let’s call it "sms", which is also the home directory of Nginx webserver.

Next change the ownership of the "sms" directory to "www-data:www-data":

chown -R www-data:www-data /var/www/html/sms

This is because sometimes the webserver will need write-access to the PHP configuration file, for example, db.php – shown below is db.php after configuration:

Next is to install MariaDB database:

sudo apt update
sudo apt install mariadb-server
sudo mysql_secure_installation

And for the PHP to talk to the MariaDB, you will need to install this component:

sudo apt-get install php-mysqli

For the database for the Student Management System:

Now login into your MariaDB and create a smsdb database, smsuser and password.

Enter all these information into the default page of the homepage at "http://localhost/sms":

If setup database is successful, you will see that a lot of tables are created when you enter the database as smsuser:

mysql -u smsuser -p > <<EOF
use smsdb;
show tables;
EOF

But

Debugging your bugs using nginx logging at /var/log/nginx:

Upon solving all the errors, after setting up the database, and login as admin you will get:

And this:

And this:

And this:

Penetration Testing Lab

Offensive Techniques & Methodologies

Astr0baby's not so random thoughts _____ rand() % 100;

@astr0baby on Twitter for fresh randomness

The Data Explorer

playing around with open data to learn some cool stuff about data analysis and the world

Conorsblog

Data | ML | NLP | Python | R

quyv

Just a thought

IFT6266 - H2017 Deep Learning

A Graduate Course Offered at Université de Montréal

Deep Learning IFT6266-H2017 UdeM

Philippe Paradis - My solutions to the image inpainting problem

IFT6266 – H2017 DEEP LEARNING

Pulkit's thoughts on the course project

the morning paper

a random walk through Computer Science research, by Adrian Colyer

The Spectator

Shakir's Machine Learning Blog

Everything about Data Analytics

big data, data analytics

calculated | content

Thoughts on Data Science, Machine Learning, and AI

%d bloggers like this: