ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Sep 26, 2017 6:07 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Aug 20, 2017 4:11 am 

Joined: Sun Aug 20, 2017 4:07 am
Posts: 3
Hey guys, new the forum here, i came from luigis website and i have a question.

Im a basic C++ coder. I know the basics and thats about it.

My goal is to create a very simple rcon tool for CoD4.

What the tool would do, is simply send a command to my cod4 server every 10 minutes or so. I havnt found any source code online thats free use so that i can use it and modify it so im looking for some help getting started.

First, i looked at luigis tool of rcon brute force testing and tried to see if i could make something happen with that and i didnt get very far.
I know that you need some type of sockets to connect with quake 3 rcon, but all i want to do is send a simple command every ten minutes.

I could make the basic program to send a command but when it comes to custom functions and the sockets parts im pretty lost. Any help or maybe a tutorial or a step in the right direction would be sweet, thankyou!


Top
   
PostPosted: Sun Aug 20, 2017 8:50 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6722
I don't think you have to reinvent the wheel.
multircon does a very good job and supports the sending of just one command (or even more commands with the -f option).
For the 10 minutes thing you can use sleepy, example:
Code:
sleepy 10ml multircon -p mypassword -c mycommand HOST PORT

Links:
http://aluigi.altervista.org/papers.htm#multircon
http://aluigi.altervista.org/mytoolz.htm#sleepy


Top
   
PostPosted: Sun Aug 20, 2017 9:27 pm 

Joined: Sun Aug 20, 2017 4:07 am
Posts: 3
Sweet, thankyou!
This will definitely work!

But i am also curious on how simple it is to setup my own? How hard would it be? Just for one function. Could a beginner like me do it?


Top
   
PostPosted: Sun Aug 20, 2017 10:43 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6722
In the first post you said that you are lost with sockets programming so... :)

Just for your information, the following is the content of the udp packet but there are TONS of information online about rcon:
Code:
  00000000  ff ff ff ff 72 63 6f 6e 20 6d 79 70 61 73 73 77   ....rcon mypassw
  00000010  6f 72 64 20 6d 79 63 6f 6d 6d 61 6e 64 00         ord mycommand.


Top
   
PostPosted: Mon Aug 21, 2017 4:34 am 

Joined: Sun Aug 20, 2017 4:07 am
Posts: 3
Haha yeah thats getting complicated! Ill mess around and maybe ill come close and get it or maybe ill just keep using your multircon!

Anyways, thanks for the response alugi i appreciate it!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited