This project is a simple implementation of an Instagram-like login form that connects to a MongoDB database. It uses Node.js, Express, and Mongoose for the backend, and basic HTML and CSS for the frontend.
Instagram-Login-Phishing-Page/
├── public/
│ ├── icons/
│ │ ├── InstagramIcon.png
│ │ ├── google.png
│ │ └── microsoft.png
│ └── styles/
│ └── style.css
├── index.html
└── server.js
- public/: Contains static assets like images and stylesheets.
- index.html: The main HTML file for the login form.
- server.js: The Node.js server file that handles form submissions and connects to MongoDB.
- Node.js and npm installed on your machine.
- MongoDB installed and running on your local machine.
-
Clone the repository:
git clone https://github.com/AbdullahMaqbool22/Instagram-Login-Phishing-Page.git cd iInstagram-Login-Phishing-Page
-
Install dependencies:
npm install
-
Ensure MongoDB is running:
Open a terminal and start MongoDB with the following command:
mongod
-
Start the server:
node server.js
The server will start on
http://localhost:3000
. -
Open the form in your browser:
Navigate to
http://localhost:3000
to access the login form.
- Open your browser and go to
http://localhost:3000
. - Fill in the username and password fields.
- Click the "Log In" button.
- The form data will be sent to the server and saved in the MongoDB database.
This project is licensed under the MIT License. See the LICENSE file for details.
- Validation and Security: This example does not include input validation or password hashing. For a production environment, you should add validation and securely hash passwords before storing them in the database.
- Environment Variables: For deployment, use environment variables to store sensitive information like database connection strings. You can use packages like
dotenv
to manage environment variables.
-
Initialize the Project and Install Dependencies:
npm init -y npm install express mongoose body-parser
-
Start MongoDB:
mongod
-
Start the Server:
node server.js
-
Open the Form in Your Browser:
Navigate to
http://localhost:3000
to access the form.