-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0d00891
Showing
7 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.spec | ||
*.pyc | ||
|
||
/build/* | ||
/dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# GameRCON Client | ||
This is a console based RCON for most games that utilize source rcon. | ||
|
||
## Supported Games | ||
- Minecraft | ||
- Ark: Survival Ascended | ||
- Palworld | ||
- Path of Titans | ||
Any game using the [Source RCON Protocol](https://developer.valvesoftware.com/wiki/Source_RCON_Protocol) | ||
|
||
## Usage | ||
> gamercon -host "127.0.0.1" -port "25575" -pass "rcon passoord" -command "Info" | ||
Options | ||
- -host | ||
- Server address (default: 127.0.0.1) | ||
- -port | ||
- RCON Port (default: 25575) | ||
- -pass | ||
- RCON/Admin Password | ||
- -command | ||
- Execute a command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
pyinstaller --onefile --icon=gamercon\gamercon.ico .\gamercon\gamercon.py | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$0")" | ||
|
||
pyinstaller --onefile --icon=gamercon/gamercon.ico gamercon/gamercon.py | ||
|
||
exit |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import argparse | ||
import asyncio | ||
from gamercon_async import GameRCON | ||
|
||
# Command line parsing | ||
parser = argparse.ArgumentParser(description='GameRCON command executor.') | ||
parser.add_argument('-host', required=True, help='Server host address') | ||
parser.add_argument('-port', required=True, type=int, help='Server port') | ||
parser.add_argument('-pass', dest='password', required=True, help='RCON password') | ||
parser.add_argument('-command', required=True, help='Command to execute on the server') | ||
args = parser.parse_args() | ||
|
||
# Sends command to game server | ||
async def main(): | ||
async with GameRCON(args.host, args.port, args.password, timeout=10) as rcon: | ||
response = await rcon.send(args.command) | ||
print(response) | ||
|
||
# Entry point | ||
if __name__ == "__main__": | ||
asyncio.run(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pyinstaller==6.4.0 | ||
gamercon-async==1.0.6 |