Skip to content

AbdulCyber-sec/NFC-ATM-card-Hacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFC Card Reading Using My Prototype

Overview

  • "An ethical hacking project focused on exploring vulnerabilities in NFC-enabled ATM cards. It analyzes security flaws and attack vectors, demonstrating potential exploits in NFC-based financial systems for educational purposes. This project is part of my cybersecurity studies to enhance understanding of NFC security risks."
  • This project is an educational initiative designed for ethical hacking and cybersecurity purposes. It demonstrates how NFC (Near Field Communication) technology can be leveraged in an ATM-like system to detect, validate, and log NFC card data securely. The purpose of this project is entirely educational and ethical, aimed at helping students and professionals understand cybersecurity vulnerabilities and solutions.

Badge: Version Badge: License Badge: Status

Ethical Use Disclaimer

This project is strictly for educational purposes and adheres to ethical hacking principles. It is not intended for unauthorized or malicious activities. The author is a student of ethical hacking and cybersecurity, committed to enhancing security awareness and developing secure systems.


About the Project

  • An ethical hacking project focused on exploring vulnerabilities in NFC-enabled ATM cards. It analyzes security flaws and attack vectors, demonstrating potential exploits in NFC-based financial systems for educational purposes. This project is part of my cybersecurity studies to enhance understanding of NFC security risks.

  • This project is an educational initiative designed for ethical hacking and cybersecurity purposes. It demonstrates how NFC (Near Field Communication) technology can be leveraged in an ATM-like system to detect, validate, and log NFC card data securely. The purpose of this project is entirely educational and ethical, aimed at helping students and professionals understand cybersecurity vulnerabilities and solutions.


Key Technologies:

  • Arduino-based NFC reader using ESP8266 and PN532 module.
  • Python Flask server for data storage and visualization.
  • SQLite database for persistent storage.
  • HTML, CSS, and JavaScript for web-based data display.

Prototype

prototype

components

Features

1. NFC Reader (Arduino-based)

  • Reads NFC card data (UID, type, length, and expiration date).
  • Detects cloned cards using pre-configured known UIDs.
  • Sends NFC data to a Python Flask server over Wi-Fi.
  • Indicates success or failure with an onboard LED.

2. Python Flask Server

  • Receives and stores NFC data into an SQLite database.
  • Serves data as JSON for programmatic access.
  • Provides an intuitive web interface to view stored data in both tabular and card-style formats.

3. Web Interface

  • Table View: Displays all NFC transactions in a clean, sortable table.
  • Card View: Visualizes each NFC card's data in a stylish, animated format.

Installation

Hardware Wire Connections

wire connection

Prerequisites

  • Arduino IDE installed.
  • Python 3.x installed.
  • Flask and SQLite libraries.
  • Wi-Fi-enabled hardware (e.g., NodeMCU with ESP8266).

Arduino Setup

  1. Hardware Connection:

    • PN532 NFC module connected to ESP8266 or Arduino as per the pin configuration in the code.
  2. Code Upload:

    • Open the Arduino IDE.
    • Replace the placeholder values in the code:
      const char* ssid = "Enter_your_ssid";
      const char* password = "Enter_your_password";
      const char* serverUrl = "Enter_your_ip/save_nfc_data";
    • Upload the sketch to the ESP8266 or Arduino.

Python Flask Server Setup

  1. Install required Python libraries:

    pip install flask
  2. Initialize the SQLite database:

    python server.py

    The server will create the nfc_data.db file automatically.

  3. Run the server:

    flask run --host=0.0.0.0 --port=5000

Web Interface

  1. Access the server at http://<server_ip>:5000.
  2. View the NFC data in both tabular and card formats.

File Structure

.
├── Nfc_reading.ino         # Arduino code for the NFC reader.
├── server.py                   # Flask server for handling NFC data.
├── templates/
│   └── index.html           # Web interface template.
└── nfc_data.db              # SQLite database file (auto-generated to save).

Usage

  1. Power on the Arduino-based NFC reader.
  2. Swipe an NFC card on the reader.
  3. The card data will be:
    • Logged on the Arduino's serial monitor.
    • Sent to the Flask server for storage.
  4. View the data on the web interface at http://<server_ip>:5000.

Contributing

Contributions are welcome to improve the project! Please ensure all updates maintain the ethical intent of the project.


License

This project is licensed under the MIT License. See the LICENSE file for details.


Author: Abdul AJ

Email: rahmana8154@gmail.com

About

"An ethical hacking project focused on exploring vulnerabilities in NFC-enabled ATM cards. It analyzes security flaws and attack vectors, demonstrating potential exploits in NFC-based financial systems for educational purposes. This project is part of my cybersecurity studies to enhance understanding of NFC security risks."

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors