{"id":13776068,"url":"https://github.com/llkat/rsockstun","last_synced_at":"2025-05-11T08:34:49.805Z","repository":{"id":57562829,"uuid":"153433872","full_name":"llkat/rsockstun","owner":"llkat","description":"reverse socks tunneler with ntlm and proxy support","archived":false,"fork":false,"pushed_at":"2022-08-09T09:25:50.000Z","size":7,"stargazers_count":46,"open_issues_count":2,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T17:12:29.440Z","etag":null,"topics":["pentest","pivot","redteam","socks5"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llkat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-17T09:51:11.000Z","updated_at":"2024-08-03T17:12:29.441Z","dependencies_parsed_at":"2022-09-17T14:11:37.113Z","dependency_job_id":null,"html_url":"https://github.com/llkat/rsockstun","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llkat%2Frsockstun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llkat%2Frsockstun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llkat%2Frsockstun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llkat%2Frsockstun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llkat","download_url":"https://codeload.github.com/llkat/rsockstun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225031487,"owners_count":17410084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pentest","pivot","redteam","socks5"],"created_at":"2024-08-03T17:01:59.282Z","updated_at":"2024-11-17T11:31:02.034Z","avatar_url":"https://github.com/llkat.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"01e6651181d405ecdcd92a452989e7e0\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"ea4dfcd8f33ec1852180c6283b2c8516\"\u003e\u003c/a\u003e未分类"],"readme":"rsockstun\r\n======\r\n\r\nReverse socks5 tunneler with SSL and proxy support\r\nBased on https://github.com/brimstone/rsocks\r\n\r\nUsage:\r\n------\r\n```\r\n\r\nUsage:\r\n0) Generate self-signed certificate with openssl: openssl req -new -x509 -keyout server.key -out server.crt -days 365 -nodes\r\n1) Start on VPS: rsockstun -listen :8443 -socks 127.0.0.1:1080 -cert cert  \r\n2) Start on client: rsockstun -connect clientIP:8443\r\n3) Connect to 127.0.0.1:1080 on the VPS with any socks5 client.\r\n4) Enjoy. :]\r\n\r\nAdd params:\r\n -proxy 1.2.3.4:3128 - connect via proxy\r\n -proxyauth Domain/username:password  - proxy creds\r\n -proxytimeout 2000 - server and clients will wait for 2000 msec for proxy connections... (Sometime it should be up to 4000...)\r\n -useragent \"Internet Explorer 9.99\" - User-Agent used in proxy connection (sometimes it is usefull)\r\n -pass Password12345 - challenge password between client and server (if not match - server reply 301 redirect)\r\n -recn - reconnect times number. Default is 3. If 0 - infinite reconnection\r\n -rect - time delay in secs between reconnection attempts. Default is 30\r\n \r\n\r\nCompile and Installation:\r\n\r\nLinux VPS\r\n- install Golang: apt install golang\r\n- export GOPATH=~/go\r\n- go get github.com/hashicorp/yamux\r\n- go get github.com/armon/go-socks5\r\n- go get github.com/ThomsonReutersEikon/go-ntlm/ntlm\r\n- go build\r\nlaunch:\r\n./rsockstun -listen :8443 -socks 127.0.0.1:1080 -cert cert -agentpassword Password1234\r\n\r\nWindows client:\r\n- download and install golang\r\n- go get github.com/hashicorp/yamux\r\n- go get github.com/armon/go-socks5\r\n- go get github.com/ThomsonReutersEikon/go-ntlm/ntlm\r\nIf you want to use proxy NTLM auth - patch go-ntlm\\ntlm\\payload.go packet:\r\n\tbytes := utf16FromString(value) -\u003e bytes := []byte(value)\r\n\tp.Type = UnicodeStringPayload   -\u003e p.Type = OemStringPayload\r\n- go build\r\noptional: to build as Windows GUI: go build -ldflags -H=windowsgui\r\noptional: to compress exe - use any exe packer, ex: UPX\r\nlaunch:\r\nrsockstun.exe -connect clientIP:8443 -agentpassword Password1234 -proxy proxy.domain.local:3128 -proxyauth Domain\\userpame:userpass -useragent \"Mozilla 5.0/IE Windows 10\"\r\n\r\nClient connects to server and send agentpassword to authorize on server. If server does not receive agentpassword or reveive wrong pass from client (for example if spider or client browser connects to server ) then it send HTTP 301 redirect code to www.microsoft.com\r\n\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllkat%2Frsockstun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllkat%2Frsockstun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllkat%2Frsockstun/lists"}