Skip to content

Instantly share code, notes, and snippets.

@genialkartik
Last active June 16, 2024 16:13
Show Gist options
  • Save genialkartik/9f198025fdb5d8d4e1348e741dc02170 to your computer and use it in GitHub Desktop.
Save genialkartik/9f198025fdb5d8d4e1348e741dc02170 to your computer and use it in GitHub Desktop.
This gist will help you to understand some basic workin of laravel with php.

Phishing Detector

Introduction

Phishing Detector is a web application built in PHP using Laravel (a web application framework) with expressive and elegant syntax. We developed this web app to provide the users and customers from fake websites whose intent is to garble user’s privacy and information. Phishing can be done in many way for instance: Fraudsters send fake emails or set up fake websites that mimic browsing to trick the user into disclosing his protected information like username, password, account details, OTP, etc. This practice is know as ‘Phishing’.

Sign of Phishing Site:

  • Suspicious URL (in correct company name, http:// (unsecured)).
  • Unusual Pop-ups and Alert message.
  • Unintentional redirect of URL, etc.

Installation Guide

Install the Package through Composer. Run the Composer require command from the Terminal

  • git clone https://github.com/genialkartik/Phishing-Detector ProjectName
    To clone and save the project files locally

  • cd ProjectName

  • composer install
    By here now, all dependencies packages will get installed by default. If now then run:

  • php artisan package:discover --ansi

    • Discovered Package: facade/ignition
    • Discovered Package: fideloper/proxy
    • Discovered Package: fruitcake/laravel-cors
    • Discovered Package: laravel/tinker
    • Discovered Package: nesbot/carbon
    • Discovered Package: nunomaduro/collision
  • php artisan key:generate
    Now, Create a database (ex: PhishingDB) and inform the same in .env file (create if not exist in root folder).
    ** hint: copy code form .env.example file into .env file and change database name which you’ve created and password.

  • php artisan migrate --seed
    To create tables and populate it

  • php artisan key:generate
    Laravel generate an encryption key to transact.

  • php artisan Serve
    Finally, to start the app on: http://127.0.0.1:8000

    Woah!!✨ You did it. I hope you may have installed the project successfully, if got stuck or got a glitch, feel free to connect @genialkartik . To contribute fork the repo and create a pull request. Good Luck🤟.


A Quick Tour

  • HomePage ( / ) : Search here for a phishing website.
  • Sign up ( /register ) : Create your Account.
  • Sign in ( /login ) : Login using your email and password
  • Submit Phishing Site ( /insertURL ) : To submit a vulnerable website to review.
  • List of Phishing Sites ( /phishedURL ) : To enlist the phishing websites.
  • Session : once logged in you need not to login recursively.

Hands-on experienced

  • _Route Handling
  • _Models
  • _Controllers
  • _DB Migration
  • _Views/Templates
  • _Authentication & Validation
  • _Sessions
  • _Compiling Assets
  • _Error handling
  • _Form requests, events, providers etc
  • _Unit Testing using Tinker
  • _Custom Modulation and commands

Packages included

  1. Tinker : php artisan tinker
  2. Laravel Collection : laravelcollective/html
  3. Bootstrap
  4. Animated Vectors ( CDN ): lottiefiles

Screenshots

Screenshot Screenshot5 Screenshot-1 Screenshot-2 Screenshot-3

NOTE : Internet connection is required to compile cdn vector lottiefiles and some other included packages.

Connect Me on: [LinkedIn] | [Twitter] | [Facebook] | [Instagram]
Visit: [kartiktyagi.me]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment