Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WIP] Xon_Rcon - In-Game Rcon Tool

#1
NOTICE:
This system is not secure: it is very easy to use the rcon commands when you are not an admin.
Please do not use this.

~Mr. Bougo



Xon_Rcon
Project on GitHub



Hey I am currently working on a little project of mine that aims to make server administration easier. Xon_Rcon does this by reading the server log and issuing rcon commands depending on what is typed in chat e.g a user on the admin list types "!map stor" in the ingame chat. Xon_Rcon then looks for any map beginning with "stor". since stormkeep is the only map that matches Xon_Rcon sends the rcon command "chmap stormkeep" to the server.

This is still a work in progress.

Current Features:
  • Sends rcon commands to the server.
  • Checks to make sure the user is allowed to issue commands.
  • Receives server log over udp using "log_dest_udp"

Todo:
  • Implement rcon_secure 1 and 2
  • Command access levels. (let only certain users issue some of the commands such as "!rcon")
  • bug fixes...

Possible Features:
  • Manage multiple Xonotic servers from one Xon_Rcon instance.

Command List:
  • say ("!say hi everyone" -> "rcon say hi everyone")
  • map ("!map stor" -> "rcon chmap stormkeep")
  • gametype ("!gametype ctf" -> "rcon gametype ctf")
  • kick ("!kick player name" -> "rcon kick player name")
  • ban ("!ban player name" -> "rcon ban player name")
  • rcon ("!rcon set g_minstagib 1" -> "rcon set g_minstagib 1")

Anyways if you have any suggestions feel free to comment below. All input is welcomed.

If you want join in on the development feel free to help collaborate on GitHub.

Changelog:
Jul 29, 2012:
  • Code Cleanup - Cleaned up code for a more cleaner release. i have decided not to implement rcon_secure 1 and 2 yet
Jul 20, 2012:
  • Bug Fixes... - Sanitised incomming packets to be in a format that is easier to work with.
Jul 19, 2012:
  • More Commands - Extended the functionality of !map to also accept a third optional agument to specify the gametype and added !restart which restarts the current map.
Jul 18, 2012:
  • Functionality and Documentation - More functionality, documentation and commands.
  • Adding Rcon Security - Somewhat implemented. not at a near finished state yet. rcon_secure abouve 0 does not currently work.
  • First Commit =D - First upload to github.
Currently working on: Xon_Rcon Check it out!
Reply

#2
You don't kick via player name. You have to type "status" first and check the number.

rcon kick # X and rcon kickban #X
Can't remember if you need a space between # and X at kick or ban. But you need it somewhere. Tongue
Edit: Ban works via IP.
It used to be on DCC like this: rcon ban IP TIMEINSCEONDS REASON
i.e. rcon ban 128.0 10000 Troll

But this seems to become a nice tool. Smile
[Image: 21.png]
IRC (QuakeNet): #bot.xonotic | #xonotic.pickup | #xonotic | #xonotic.cup
Steam | Twitch.tv | YouTube
Movies: Mirification #1 | #2 | Mirificaption #1 | #3 | #4 | [BOT] Clan #3 | #5 | #6 | #7 | [BOT] Clan #4 | #8

Reply

#3
ahh ok thanks for that. i guess iv got a bit more work to do then. i havent been able to test the kick and ban commands yet. the only commands i have been able to test are say, map, and gametype. in theory the rcon command should work.
Currently working on: Xon_Rcon Check it out!
Reply

#4
Also, consider a more "silent" way to use the script than saying the command in chat. Otherwise it looks like these "look-at-my-admin-powers" irc bot. I'm not sure the command tell # 0 <message> shows up in the server log, see if that works.
[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Reply

#5
Ok so i woke up this morning and did some more work on the script after having a few days break from it. I went to town on thursday night and well on friday i didn't get out of bed till 3pm =/

Jul 20, 2012:
  • Bug Fixes... - Sanitized incomming packets to be in a format that is easier to work with.

as for looking into a silent way i cannot test "tell" as you need at least 2 players on the server to even use the command ("tell 0 message" doesn't work either because 0 is an invalid client number). if you want to do it silently you may as well just use the normal rcon through the in game console.
Currently working on: Xon_Rcon Check it out!
Reply

#6
"Big Brother Bot" tailored for Xonotic? Great news! In future GUI maybe?
Reply

#7
could be a possibility.
my main goal at the moment is to get it working with rcon_secure 1 and 2
Currently working on: Xon_Rcon Check it out!
Reply

#8
Um, majki, as said in the other B3 thread, this here project is pretty much (a part of) rcon2irc in php instead of perl. Wink
[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Reply

#9
i have decided to clean the code up a little and that i will not be implementing rcon_secure 1 and 2 for now.]

Jul 29, 2012:
  • Code Cleanup - Cleaned up code for a more cleaner release. i have decided not to implement rcon_secure 1 and 2 yet
Currently working on: Xon_Rcon Check it out!
Reply

#10
Any update??
Reply

#11
(02-23-2013, 05:05 AM)kingtiger01 Wrote: Any update??

You'd better send him an email through his profile page if you want an answer. But the git repository has not seen any update in seven months so don't keep your hopes too high.

EDIT: Wow, I read some code and this thing is pretty insecure. Please don't use it.
[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Reply

#12
I pretty much abandoned the project after i realized there is no form of getting the users identity other then their in-game name or ip address.

if Xonotic had some sort of guid associated with each account then this would be easier.

if anyone wants to expand on what i have already done feel free to fork it.
Currently working on: Xon_Rcon Check it out!
Reply

#13
Actually there is such a system, but not for in-game chat messages. Users can make HTTP requests that contain a signature in their header, which can be checked based on the player's public key (which is also what authenticates users on stats.xonotic.org).

There was some slight experimenting in this thread: How to output (rainbow) colored text?

I don't think you can have a safe, authenticated in-game chat trigger for the moment.
[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Local LAN Xonotic game server player Stats animatedjay 3 1,192 11-23-2018, 12:38 AM
Last Post: BuddyFriendGuy
  Game servers in Kazakhstan. Mysyk 0 542 08-25-2018, 04:43 AM
Last Post: Mysyk
  Why game mode menu is not showing at the end of match? marataziat 1 671 08-04-2018, 09:03 AM
Last Post: martin-t
  [NEED HELP] Game types | Tipos de juego [Votable] KyMAN 11 1,549 08-31-2017, 08:08 AM
Last Post: KyMAN
Thumbs Up rcon and bots billyjoe 3 1,163 04-13-2017, 12:08 PM
Last Post: billyjoe
  How to change game to instagib through client? sgtsob 2 2,289 11-01-2016, 12:31 AM
Last Post: sgtsob
  BuddyFriendGuy Pick Up Game (bfgpug) Server BuddyFriendGuy 4 2,719 07-05-2016, 01:02 AM
Last Post: BuddyFriendGuy
  Servers not showing in game for some end user 3 2,101 11-14-2015, 05:27 PM
Last Post: end user
  [SOLVED] end of game music BuddyFriendGuy 1 1,483 07-31-2015, 11:34 PM
Last Post: Mario
  using rcon with ${....} TheGoodGamer 6 3,225 05-24-2015, 02:51 AM
Last Post: TheGoodGamer

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-