Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 617 Bytes

File metadata and controls

9 lines (6 loc) · 617 Bytes

Spying-Socks-Proxy

Implementation of a limited version of SOCKS v4 proxy server, with an additional feature: grabbing usernames and password from HTTP Basic Authentication (as mentioned in RFC7617).

Main.java - Create a Socket listening on port 8080 and enable 20 concurrent connections.

ConnectionHandler.java - Handle SOCKS CONNECT Request and SOCKS CONNECT Reply. Afterwards, create two threads running DataThread.java class. Finally, close connections.

DataThread.java - Check for HTTP features using Regex - GET request method, password in Authorization header and optional sub-URL. Finally, transfer data.