Giter Club home page Giter Club logo

http-fingerprinting-server's Introduction

HTTP-Fingerprinting-Server

A Python3 web server that allows only targeted IPs and attempts to fingerprint the incoming requests by capturing connection and browser information.

The hosted HTML contains JS which will POST additional data about the browsers capabilities back to the server.

fingerprinting_server_diagram

Logged Data

  • IP
  • sec-ch-ua
  • sec-ch-ua-mobile
  • sec-ch-ua-platform
  • DNT
  • userAgent
  • screenResolution
  • installedFonts
  • browserPlugins
  • timezone
  • language
  • colorDepth
  • platform
  • User Activity via mousemoved js event listener

and more.

Setup

  • Place a whitelist.txt file at the root of the project and populate it with IPv4 or 6 address ranges in CIDR notation (/24) and new line deliniated.

  • Set a GUID for the GET handler, POST handler, and in the sample_site.html postback.

  • Send a link to the target and wait to see target details in the access.log file.

Target Scoping

Whitelisting

Add IP v4 and v6 addresses to the whitelist.txt file to target the logs and to reduce noise from bots and crawlers.

GUID for Routes

Using GUIDs for GET and POST routes will greatly reduce the number of bots and crawlers hitting your endpoints and dirtying up the logs.

http-fingerprinting-server's People

Contributors

aalex954 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

http-fingerprinting-server's Issues

Chatgpt detected these problems with your script ( its not good enough to fix them properly )

IP Spoofing: An attacker can spoof their IP address to bypass the whitelist, making it appear as if they are connecting from an allowed IP address.

DNS Rebinding: An attacker can use DNS rebinding to bypass the whitelist by making the target server believe that the attacker's domain name resolves to an IP address in the allowed range.

IPv6 Tunneling: An attacker can use IPv6 tunneling techniques, such as Teredo or 6to4, to bypass the whitelist by encapsulating IPv6 packets within IPv4 packets and sending them to the server.

XSS (Cross-Site Scripting): An attacker can inject malicious scripts into the sample_site.html file, allowing them to execute arbitrary code on the victim's browser.

CSRF (Cross-Site Request Forgery): An attacker can exploit the lack of CSRF protection in the POST request handling, allowing them to trick users into unknowingly submitting malicious requests.

Insecure Deserialization: The program uses JSON deserialization without proper validation, potentially allowing attackers to exploit the deserialization process to execute arbitrary code on the server.

HTTP Header Injection: An attacker can inject malicious headers into the HTTP request, potentially causing the server to process the request in unintended ways.

Open Redirect: The program does not validate the "Referer" header, potentially allowing an attacker to perform an open redirect attack, tricking users into visiting malicious websites.

Server-Side Request Forgery (SSRF): The program does not validate the client's IP address before processing the request, potentially allowing an attacker to perform SSRF attacks to access internal resources or other systems on the network.

Path Traversal: The program does not properly sanitize the requested file path, potentially allowing an attacker to access sensitive files on the server by manipulating the requested URL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.