{"id":13482623,"url":"https://github.com/fengyouchao/sockslib","last_synced_at":"2026-04-06T09:10:21.446Z","repository":{"id":28937423,"uuid":"32463213","full_name":"fengyouchao/sockslib","owner":"fengyouchao","description":"A Java library of SOCKS5 protocol including client and server","archived":false,"fork":false,"pushed_at":"2023-07-16T05:48:35.000Z","size":663,"stargazers_count":295,"open_issues_count":20,"forks_count":106,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-07-12T22:36:03.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fengyouchao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-03-18T14:19:55.000Z","updated_at":"2025-07-07T06:50:35.000Z","dependencies_parsed_at":"2024-01-07T22:46:54.640Z","dependency_job_id":"535aa434-d317-43c6-a29a-7a3b10deda70","html_url":"https://github.com/fengyouchao/sockslib","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fengyouchao/sockslib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyouchao%2Fsockslib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyouchao%2Fsockslib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyouchao%2Fsockslib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyouchao%2Fsockslib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fengyouchao","download_url":"https://codeload.github.com/fengyouchao/sockslib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengyouchao%2Fsockslib/sbom","scorecard":{"id":396966,"data":{"date":"2025-08-11","repo":{"name":"github.com/fengyouchao/sockslib","commit":"fc834badb779089ffbc8aa7d645d290d30087ebc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":2,"reason":"Found 5/18 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.3.16-beta not signed: https://api.github.com/repos/fengyouchao/sockslib/releases/1217738","Warn: release artifact v0.3.26-alpha not signed: https://api.github.com/repos/fengyouchao/sockslib/releases/1093059","Warn: release artifact v1.3.16-beta does not have provenance: https://api.github.com/repos/fengyouchao/sockslib/releases/1217738","Warn: release artifact v0.3.26-alpha does not have provenance: https://api.github.com/repos/fengyouchao/sockslib/releases/1093059"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-mvr2-9pj6-7w5j","Warn: Project is vulnerable to: GHSA-8489-44mv-ggj8","Warn: Project is vulnerable to: GHSA-p6xc-xr62-6r2g"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T19:15:35.102Z","repository_id":28937423,"created_at":"2025-08-18T19:15:35.102Z","updated_at":"2025-08-18T19:15:35.102Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31466228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T08:36:52.050Z","status":"ssl_error","status_checked_at":"2026-04-06T08:36:51.267Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-07-31T17:01:03.847Z","updated_at":"2026-04-06T09:10:21.430Z","avatar_url":"https://github.com/fengyouchao.png","language":"Java","funding_links":[],"categories":["Java","\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具","网络编程"],"sub_categories":["\u003ca id=\"57b8e953d394bbed52df2a6976d98dfa\"\u003e\u003c/a\u003eSocks"],"readme":"# SocksLib [![Build Status](https://travis-ci.org/fengyouchao/sockslib.svg?branch=master)](https://travis-ci.org/fengyouchao/sockslib) [![Coverage Status](https://coveralls.io/repos/fengyouchao/sockslib/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/fengyouchao/sockslib?branch=master) [![Coverity Scan Build Status](https://scan.coverity.com/projects/6898/badge.svg)](https://scan.coverity.com/projects/fengyouchao-sockslib)\n\n**SocksLib** is a Java library for **SOCKS5** protocol.\n\nSee [Java API Documentation](http://fengyouchao.github.io/projects/fucksocks/apidocs/index.html)\n\nSee [Wiki Page](http://git.oschina.net/fyc/fucksocks/wikis/home) (Chinese)\n\nIf you are looking for a SOCKS5 server instead of a SOKCS5 library, I hope [Esocks](https://github.com/fengyouchao/esocks) can help you.\n\n\n\n\n#### References\n \n* [SOCKS Protocol Version 5](http://www.ietf.org/rfc/rfc1928.txt)\n* [Username/Password Authentication for SOCKS V5](http://www.ietf.org/rfc/rfc1929.txt)\n\n## Features\n\n### Client\n\n* TCP proxy\n* UDP proxy\n* Bind\n* Anonymous authentication\n* USERNAME/PASSWORD authentication\n* Proxy chain\n\n### Server\n\n* TCP proxy\n* UDP proxy\n* Bind\n* Anonymous authentication\n* USERNAME/PASSWORD authentication\n* Proxy chain\n* Black or white IP lists for clients\n\n## Quick start\n\n#### Environment\n\n* JDK 8+\n\n#### Dependencies\n\nYou should put following libraries in your project's *CLASSPATH*:\n\n* [log4j-slf4j-impl-2.4.jar](https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.4/log4j-slf4j-impl-2.4.jar)\n* [slf4j-api-1.7.12.jar](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.12/slf4j-api-1.7.12.jar)\n* [log4j-api-2.4.jar](https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.4/log4j-api-2.4.jar)\n* [log4j-core-2.4.jar](https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.4/log4j-core-2.4.jar)\n* [guava-18.0.jar](https://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar)\n\n### SOCKS5 Client\n\n#### CONNECT\n\n```java\n    SocksProxy proxy = new Socks5(new InetSocketAddress(\"localhost\",1080));\n    Socket socket = new SocksSocket(proxy, new InetSocketAddress(\"whois.internic.net\",43));\n```\n\nConnect SOCKS5 server using SSL connection\n\n```java\n    SSLConfigurationBuilder builder = SSLConfigurationBuilder.newBuilder();\n    builder.setTrustKeyStorePath(\"client-trust-keystore.jks\");\n    builder.setTrustKeyStorePassword(\"123456\");\n    SocksProxy proxy = new SSLSocks5(new InetSocketAddress(\"localhost\", 1081), builder.build());\n    Socket socket = new SocksSocket(proxy, new InetSocketAddress(\"whois.internic.net\",43));\n```\n\n#### BIND\n\n```java\n    SocksServerSocket serverSocket = new SocksServerSocket(proxy, inetAddress,8080);\n    InetAddress bindAddress = serverSocket.getBindAddress();\n    int bindPort  = serverSocket.getBindPort();\n    Socket socket = serverSocket.accept();\n```\n\n#### UDP ASSOCIATE\n\n```java\n     DatagramSocket socket = new Socks5DatagramSocket(proxy);\n```\n\n### SOCKS5 Server\n\n```java\n     SocksProxyServer proxyServer = SocksServerBuilder.buildAnonymousSocks5Server(); \n     proxyServer.start();// Creat a SOCKS5 server bind at port 1080\n```\n\nSSL socks server\n\n```java\n    SSLConfigurationBuilder builder = SSLConfigurationBuilder.newBuilder();\n    builder.setKeyStorePath(\"server-keystore.jks\");\n    builder.setKeyStorePassword(\"123456\");\n    builder.setClientAuth(false);\n    socksProxyServer = SocksServerBuilder.buildAnonymousSSLSocks5Server(1081, builder.build());\n    socksProxyServer.start();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengyouchao%2Fsockslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffengyouchao%2Fsockslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengyouchao%2Fsockslib/lists"}