Skip to content

This repository demonstrates a PHP-based technique for retrieving someone's IP address by disguising it as an image using MOD re-write. It showcases how IP addresses can be captured covertly within web applications, emphasizing the importance of robust security measures.

License

Notifications You must be signed in to change notification settings

haxinja/image-ip-grabber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Image IP Grabber/Logger

Overview

The Image IP Grabber project is a simple demonstration of how an image file can be used to log visitors' IP addresses when accessed through a web server. It includes an index.php file that logs visitors' IP addresses and serves an image file, along with a .htaccess file for URL rewriting.

🛈 Note: This project utilizes PHP for server-side scripting and Apache's mod_rewrite module for URL rewriting.

⚠️ Disclaimer

  • This project is for educational and demonstration purposes only.
  • Any misuse or unlawful use of this project is beyond the responsibility of the developer.

Setup

  1. Clone or download this repository.
  2. Upload the entire ip_grabber directory to your website directory.
  3. Ensure that the server has PHP and Apache with mod_rewrite enabled.
  4. Set permissions for writing logs if necessary.
  5. Access the meow.jpg file through a web browser to trigger the IP logging functionality.
  • (You can change the meow.jpg/image file name this on index.php line 29)

Directory Structure

  • LICENSE
  • README.md
  • ip_grabber
    • index.php
    • .htaccess
    • assets
      • 404.html
      • cute_cat.png

Usage

  • The index.php file logs visitors' IP addresses when accessed through the web server.
  • Accessing the index.php file with the filename meow.jpg will serve the cute_cat.png image file and log the visitor's IP address.
  • Accessing the index.php file with the filename ip_logs.txt and the correct password query parameter (?p=mypassword123) will serve the IP log file.

License

This project is licensed under the terms of the MIT License.

Contributing

Contributions are welcome! Feel free to submit pull requests, suggest new features, or report issues.

About

This repository demonstrates a PHP-based technique for retrieving someone's IP address by disguising it as an image using MOD re-write. It showcases how IP addresses can be captured covertly within web applications, emphasizing the importance of robust security measures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published