It would make life so much easier while updating lua scripts on dedicated server...
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Send RCON remotely
8 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
It would make life so much easier while updating lua scripts on dedicated server...
![file](img/i_file.png)
![cs2d](img/icons/cs2d.png)
But the tool requires Microsoft .NET Framework, making it pretty much Windows-only.
Also note that external RCon can be a security risk and that it only works when the server is configured correctly. Features like
![cs2d cmd](img/i_codehelp.png)
1
data = bytearray([1,0,242,4,'test',12,'sv_name test'])
This format one doesn't work
![](img/smiles/thoughtfully2.gif)
Edit:
1
2
2
MESSAGE = "1.0.242.4.test.12.sv_name test" data = MESSAGE.encode('utf-8')
This one sends the line but server doesn't execute the command
![](img/smiles/thoughtfully2.gif)
edited 1×, last 04.07.18 09:15:17 am
![user](img/i_friend.png)
![IMG:https://i.imgur.com/a8qsL5x.jpg](https://i.imgur.com/a8qsL5x.jpg)
I am on correct path already but I am stuck with converting password string to bytes + ascii
![](img/smiles/thoughtfully2.gif)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
password = 'test' command = 'sv_name test' first = (1).to_bytes(1, byteorder='big') second = (0).to_bytes(1, byteorder='big') third = (242).to_bytes(1, byteorder='big') fourth = (4).to_bytes(1, byteorder='big') fifth = ???? msg = first + second + third + fourth print('message: ', msg) ///Output: message: b'\x01\x00\xf2\x04'
![](img/smiles/tongue.gif)
Btw if there was a working example line it would be much easier for a noob like me to send that line
![](img/smiles/ugly.gif)
I made this but have no idea if server can accept it:
b'\x01\x00\xf2\x04test\x0c\x00sv_name test'
Ok I tried this line just for the sake of it and it works
![](img/smiles/ugly.gif)
Success in something you have no idea at feels good
![](img/smiles/xlaugh.gif)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)