{"id":15325253,"url":"https://github.com/forewing/csgo-rcon","last_synced_at":"2025-08-20T06:43:56.829Z","repository":{"id":43079295,"uuid":"285248827","full_name":"forewing/csgo-rcon","owner":"forewing","description":"Golang package for CS:GO RCON Protocol client. Also support other games using the protocol (Source Engine games, Minecraft, etc.)","archived":false,"fork":false,"pushed_at":"2023-02-24T00:09:57.000Z","size":57,"stargazers_count":26,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T02:52:35.485Z","etag":null,"topics":["counter-strike","csgo-server","golang","minecraft","rcon","source-dedicated-server"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/forewing/csgo-rcon?tab=doc","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forewing.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-05T09:58:00.000Z","updated_at":"2025-03-28T22:49:15.000Z","dependencies_parsed_at":"2024-06-19T00:44:23.173Z","dependency_job_id":"dfc83506-1a1d-42b6-8e1a-7a45227dd90c","html_url":"https://github.com/forewing/csgo-rcon","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/forewing/csgo-rcon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forewing%2Fcsgo-rcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forewing%2Fcsgo-rcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forewing%2Fcsgo-rcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forewing%2Fcsgo-rcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forewing","download_url":"https://codeload.github.com/forewing/csgo-rcon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forewing%2Fcsgo-rcon/sbom","scorecard":{"id":406916,"data":{"date":"2025-08-11","repo":{"name":"github.com/forewing/csgo-rcon","commit":"081f8216b783a0e88d6e940b6a6b0845c9365db1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 2/21 approved changesets -- score normalized to 0","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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/forewing/csgo-rcon/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/forewing/csgo-rcon/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/forewing/csgo-rcon/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/forewing/csgo-rcon/release.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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.0 not signed: https://api.github.com/repos/forewing/csgo-rcon/releases/50091417","Warn: release artifact v1.3.0 does not have provenance: https://api.github.com/repos/forewing/csgo-rcon/releases/50091417"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"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 6 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-18T21:32:03.937Z","repository_id":43079295,"created_at":"2025-08-18T21:32:03.937Z","updated_at":"2025-08-18T21:32:03.937Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271279776,"owners_count":24731902,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["counter-strike","csgo-server","golang","minecraft","rcon","source-dedicated-server"],"created_at":"2024-10-01T09:29:54.134Z","updated_at":"2025-08-20T06:43:56.761Z","avatar_url":"https://github.com/forewing.png","language":"Go","readme":"# csgo-rcon\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/forewing/csgo-rcon?style=flat-square)](https://goreportcard.com/report/github.com/forewing/csgo-rcon)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/forewing/csgo-rcon?style=flat-square)](https://github.com/forewing/csgo-rcon/releases/latest)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/forewing/csgo-rcon)](https://pkg.go.dev/github.com/forewing/csgo-rcon)\n\nGolang package for CS:GO RCON Protocol client. Also support other games using the protocol (Source Engine games, Minecraft, etc.)\n\n\u003e For the protocol specification, go to [Source RCON Protocol from Valve](http://developer.valvesoftware.com/wiki/Source_RCON_Protocol)\n\n\u003e Need a web-based admin panel? Check it out at [forewing/webrcon-server](https://github.com/forewing/webrcon-server)!\n\n## Usage\n\n1. Import the package\n\n```go\nimport \"github.com/forewing/csgo-rcon\"\n```\n\n2. Create a client with `rcon.New(address, password string, timeout time.Duration)`, assuming your server rcon are hosted at `10.114.51.41:27015`, with password `password`, and you want the connection timeout to be 2 seconds.\n\n```go\nc := rcon.New(\"10.114.51.41:27015\", \"password\", time.Second * 2)\n```\n\n3. Execute commands use `*Client.Execute(cmd string)`. Execute once if no \"\\n\" provided. Return result message and nil on success, empty string and an error on failure.\n\n```go\n// Execute a single command\nmsg, err := c.Execute(\"bot_add_ct\")\n\n// Execute multiple commands at once\n// Source engine games treat `;` as command separator\n// May not work in other games, test before use\nmsg, err := c.Execute(\"game_mode 1; game_type 0; changelevel de_dust2\")\n```\n\n4. Note: If `cmd` includes \"\\n\", it is treated as a script file. Splitted and trimmed into lines. Line starts with \"//\" will be treated as comment and ignored. When all commands seccess, concatted messages and nil will be returned. Once failed, concatted previous succeeded messages and an error will be returned.\n\n```go\ncmd := `game_mode 1\ngame_type 0\n// run_game half_life_3 (ignored)\nchangelevel de_dust2`\n\n// Execute multiple commands separately\nmsg, err := c.Execute(cmd)\n```\n\n\n## Command Line Tool\n\n### Install\n\n```\ngo get -u github.com/forewing/csgo-rcon/cmd/csgo-rcon\n```\n\nOr download from [release page](https://github.com/forewing/csgo-rcon/releases/latest).\n\n### Usage\n\n```\nUsage of csgo-rcon:\n  -a address\n        address of the server RCON, in the format of HOST:PORT. (default \"127.0.0.1:27015\")\n  -c file\n        load configs from file instead of flags.\n  -f file\n        read commands from file, \"-\" for stdin. From arguments if not set.\n  -i    interact with the console.\n  -m  file\n        read completions from file\n  -p password\n        password of the RCON.\n  -t timeout\n        timeout of the connection (seconds). (default 1)\n```\n\n1. From arguments\n\n```\n$ csgo-rcon -c config.json mp_warmuptime 999\nL **/**/20** - **:**:**: rcon from \"**.**.**.**:***\": command \"mp_warmuptime 999\"\n```\n\n2. From file (`-` for stdin)\n\n```\n$ csgo-rcon -c config.json -f commands.cfg\n```\n\n3. Interactive\n\n```\n$ csgo-rcon -c config.json -i\n\u003e\u003e\u003e bot_add_ct\nL **/**/20** - **:**:**: \"Derek\u003c4\u003e\u003cBOT\u003e\u003c\u003e\" connected, address \"\"\nL **/**/20** - **:**:**: \"Derek\u003c4\u003e\u003cBOT\u003e\" switched from team \u003cUnassigned\u003e to \u003cCT\u003e\nL **/**/20** - **:**:**: \"Derek\u003c4\u003e\u003cBOT\u003e\u003c\u003e\" entered the game\nL **/**/20** - **:**:**: rcon from \"**.**.**.**:***\": command \"bot_add_ct\"\n\u003e\u003e\u003e users\n\u003cslot:userid:\"name\"\u003e\n0 users\nL **/**/20** - **:**:**: rcon from \"**.**.**.**:***\": command \"users\"\n\u003e\u003e\u003e ^C\n```\n\n4 .Completion\n\n``` sh\n# First download the completion file from your server\ncsgo-rcon -c config.json cvarlist \u003e cmds.txt\n# and remove top 2 and bottom 2 lines\ntail -n +3 cmds.txt | head -n -2 \u003e cmds.txt.bak \u0026\u0026 mv cmds.txt.bak cmds.txt\n# then use -m flag to specify the completion file\ncsgo-rcon -c config.json -i -m cmds.txt\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforewing%2Fcsgo-rcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforewing%2Fcsgo-rcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforewing%2Fcsgo-rcon/lists"}