A website meant to look like a D-Link (mydlink) admin website. Pwn the pwner trying to grasp those lowest-hanging fruits on a network. Built as a demo of the Pragma web framework, and of course for my own enjoyment.
Find a file
2022-12-02 02:57:55 +01:00
assets feat: add initial code 2022-11-27 01:38:29 +01:00
database feat: add SQLite submodule 2022-12-02 02:54:42 +01:00
pages/EN_EN feat: add initial code 2022-11-27 01:38:29 +01:00
.env.example.ini feat: add initial code 2022-11-27 01:38:29 +01:00
.gitignore feat: add initial code 2022-11-27 01:38:29 +01:00
.gitmodules feat: add SQLite submodule 2022-12-02 02:54:42 +01:00
LICENSE Initial commit 2022-11-26 18:31:26 +01:00
README.md fix(doc): update README 2022-12-02 02:57:55 +01:00

🍯 Honeypot

Can the IP, HTTP Headers and more from anyone trying to log in to this site. Everything entered into this page will be saved to an SQLite database.

44302_

Note

This project is not related to D-Link in any form or fashion. I just chose their mydlink portal as it features both IP camera and WiFi router controls from the same interface, which I intend to implement fun dummies of in the future.

Installation

  1. Install Pragma

    This website is built on the Pragma web framwork, and is meant as a showcase of some of it's features.

    Install the Pragma framwork

  2. Clone this repo

    Clone this repo (with submodules) anywhere Pragma can read its contents.

    $ git clone http://github.com/VictorWesterlund/honeypot --recurse-submodules
    
  3. Set env var

    Make a copy of the .env.example.ini file

    $ cp -p .env.example.ini .env.ini
    

    and set the DB_POT variable to an absolute path to the SQLite database to create

    DB_POT="/home/me/pot.sql"
    

Data saved

The database will dump the contents of $_POST and $_SERVER into a JSON string along with the timestamp since Unix epoch the request was received.