https://github.com/karmek-k/minisnatch
Tiny, one-file IP grabber
https://github.com/karmek-k/minisnatch
Last synced: 4 months ago
JSON representation
Tiny, one-file IP grabber
- Host: GitHub
- URL: https://github.com/karmek-k/minisnatch
- Owner: karmek-k
- License: mit
- Created: 2022-03-24T15:38:56.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T17:04:59.000Z (about 3 years ago)
- Last Synced: 2025-01-11T01:51:01.171Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minisnatch
A tiny one-file IP grabber that saves its results in a JSON file.
Should work with PHP 7 or greater.
(The code isn't clean on purpose, I wanted to compress everything in a single file.)
## How to use
Feel free to change the script's filename!
Use query parameters to route the redirects.
For example, for the default routes:`/minisnatch.php?k=gnu` - captures data to the `gnu` key
`/minisnatch.php?k=linux` - captures data to the `linux` key
`/minisnatch.php` (or any other `k` parameter) - captures data to the `default` key
## Config
Edit the file directly, there is a `CONFIG SECTION` block,
you probably won't have to touch anything else.## Disclaimer
I am not responsible for what you do with this script. Do not use it for illegal purposes.