Skip to content

mithun50/CamPish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CamPish

CamPish is a Flask-based web application designed to capture images and gather IP-based geolocation data from users. It integrates with SSH tunnel to securely expose your local server to the internet, enabling external access.

Table of Contents

Features

  • Captures images from users and saves them locally.
  • Collects and logs geolocation data such as IP address, city, region, country, latitude, and longitude.
  • Uses SSH to expose the local Flask server to the internet.
  • Cross-platform support for Linux, macOS, Windows (Git Bash or Cygwin), and Termux on Android.

Requirements

  • Python 3.x
  • pip (Python package installer)
  • SSH installed on your Device

Installation

Clone the Repository

git clone https://github.com/mithun50/CamPish.git
cd CamPish

Run the Setup Script

The setup script will install all required dependencies and prepare your environment.

For Linux, macOS, and Termux (Android):

chmod +x setup.sh
./setup.sh

For Windows:

  1. Install Python 3.x from python.org.
  2. Install pip and figlet manually or using the Cygwin setup.
  3. Run setup.sh in Git Bash or manually install dependencies listed in requirements.txt.
  4. Install OpenSSH on your platform

Manual Setup (if not using setup.sh)

  1. Install Python dependencies after installing the python on the device:
    pip install flask pyfiglet pyngrok requests termcolor
  2. Install figlet and Openssh:
    • Debian/Ubuntu: sudo apt install figlet and sudo apt install openssh-server -y
    • Red Hat/Fedora: sudo yum install figlet and sudo dnf install openssh-server -y
    • macOS (Homebrew): brew install figlet and brew install openssh
    • Termux(android): pkg install figlet and pkg install openssh -y

Usage

  1. Expose the Server:

    • The script will use the Portforwarding using the "SSH tunnel"
  2. Access the Web Interface:

    • After starting the server, navigate to the provided URL and Send it to Victim(either local or the SSH tunnel public URL).
  3. Capture Data:

    • The server captures images and logs IP-based geolocation data whenever a user accesses the / endpoint.

Disclaimer

This project is for educational purposes only. It demonstrates basic Flask and Python scripting skills along with web-based data handling. It is not intended for malicious or unauthorized use. The author is not responsible for any misuse of this tool.

Author

About

WebCam Hacking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published