Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 03:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]MySock - Adminpage helper tool + Adminpage disable dif

Discussion on [Release]MySock - Adminpage helper tool + Adminpage disable dif within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Arrow [Release]MySock - Adminpage helper tool + Adminpage disable dif

New pyversion ! (pysock)

Intro:
MySock is a simple helper program (for freebsd) to send various queries to adminpage from your own server.

Screen:


How to use:
It's simple:
  • -h //to show the manual
    Code:
    ./mysock -h
  • -m <par.> //to send commands from arguments (don't type :; in your commands!)
    Code:
    ./mysock -m "host:port;@SHOWMETHEMONEY\n@yourcommand\n@etc etc\n"
  • -f <file> //to send commands from file
    Code:
    ./mysock -f "myfile.txt"
    File formatting:
    Code:
    ip
    port
    @SHOWMETHEMONEY
    @command
    @command
    \n

I remind you these simple things:
  • The port to use is declared into CONFIG with the tag "PORT:" and not "P2P_PORT:".
  • To set your adminpage details into CONFIG try this:
    Code:
    adminpage_ip1: your_ip
    adminpage_password: your_password
  • If you want to connect in localhost you cannot use "localhost|127.0.0.1" but you must type you real ip server!

In the archive you'll find also the dif file "adminpage_disable.dif".
This dif disable the adminpage! (api tool immunized!)





A simple lua function for this tool:
Code:
function game.send_cmd(host,port,key,cmd)
	if(key==nil)then
		key="SHOWMETHEMONEY"
	end
	if(host==nil)or(port==nil)or(cmd==nil)then
		return false
	end
	if(type(cmd)=="table")then
		cmd=join("\n@",cmd) --[[require declare join function]]
	end
	os.execute([[/root/mysock -m "]]..host..[[:]]..port..[[;@]]..key..[[\n@]]..cmd..[[\n"]])
end

--to use
game.send_cmd("123.123.123.123","13003",nil,"EVENT xmas_sock 1")
--or
game.send_cmd("123.123.123.123","13003",nil,{"NOTICE Yeah!","EVENT xmas_sock 1", "EVENT xmas_tree 4", etc, etc})
lollo_9_1 is offline  
Thanks
3 Users
Old 07/08/2012, 21:34   #2

 
IgorGlock's Avatar
 
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
Nice try, but a new quest function is much better.
IgorGlock is offline  
Old 07/08/2012, 22:23   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 95
Received Thanks: 95
@Igor
What do you mean an new quest function?
@top
Nice
deco016 is offline  
Old 07/08/2012, 22:27   #4
 
CZMadman's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 61
Received Thanks: 3
Quote:
Originally Posted by IgorGlock View Post
Nice try, but a new quest function is much better.
which function ?
CZMadman is offline  
Old 07/09/2012, 00:43   #5
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Arrow

Quote:
Originally Posted by IgorGlock View Post
Nice try, but a new quest function is much better.
There aren't functions about socket connection in the game. (only if you create a extended lua library in c++)
This simple tool can be used at any time. (from shell, from lua using os.execute, etc, etc)

Umh... a nice lua function with this tool... (it works)
Code:
function game.send_cmd(host,port,key,cmd)
	if(key==nil)then
		key="SHOWMETHEMONEY"
	end
	if(host==nil)or(port==nil)or(cmd==nil)then
		return false
	end
	if(type(cmd)=="table")then
		cmd=join("\n@",cmd) --[[require declare join function]]
	end
	os.execute([[/root/mysock -m "]]..host..[[:]]..port..[[;@]]..key..[[\n@]]..cmd..[[\n"]])
end

--to use
game.send_cmd("123.123.123.123","13003",nil,"EVENT xmas_sock 1")
--or
game.send_cmd("123.123.123.123","13003",nil,{"NOTICE Yeah!","EVENT xmas_sock 1", "EVENT xmas_tree 4", etc, etc})
lollo_9_1 is offline  
Thanks
1 User
Old 07/09/2012, 09:37   #6
 
elite*gold: 0
Join Date: Feb 2011
Posts: 109
Received Thanks: 162
Quote:
@SHOWMETHEMONEY
@NOTICE test
@etc etc

Socket correctly sent!
Says, but nothing happens in the game
mt2bowded is offline  
Old 07/09/2012, 12:24   #7
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Quote:
Originally Posted by mt2bowded View Post
Says, but nothing happens in the game
Probably you use an another adminpage_ip/password. (maybe showmethemoney has been hex-edited from game and you dont know it)
Eventually, try to use the first|game00 port
Quote:
Originally Posted by lollo_9_1 View Post
I remind you these simple things:
  • The port to use is declared into CONFIG with the tag "PORT:" and not "P2P_PORT:".
  • To set your adminpage details into CONFIG try this:
    Code:
    adminpage_ip1: your_ip
    adminpage_password: your_password
lollo_9_1 is offline  
Thanks
1 User
Reply

Tags
adminpage, lollo_9_1, metin2, showmethemoney, socket


Similar Threads Similar Threads
[RELEASE] DarkOrbit Helper Tool [DOHT] by hoocrax
07/04/2013 - DarkOrbit - 356 Replies
DarkOrbit Helper Tool An All in one Tool by hoocrax Hey all ! I present you my all new All in one tool that can help you in fight, act as skylab bot, bonus box, GG materializer and many more ! :) ================================================= ========================================= INSTALL .NET FRAMEWORK 3.5 ! ELSE IT WONT WORK !
[Release] Dark Orbit Helper Tool by TechnoMan
10/17/2012 - DarkOrbit - 93 Replies
Hey, heute release ich mal mein neuestes Tool für DarkOrbit. Screenshot: http://www.abload.de/img/screenbrsl.jpg Aktuelle Funktionen von oben nach unten:
[Release] Professional Helper Tool
08/21/2012 - DarkOrbit - 170 Replies
Features: Unsichtbare Spieler werden alle sichtbar (mit "getarnt"-Titel) Gegnerische Spielerschiffe werden auf der Minimap mit orangem Balken versehen Bonusboxen werden automatisch aufgesammelt Tarnmodul per Hotkey kaufbar Feinde per Hotkey auswählbar sofortiges Zurückschießen bei feindlichem Beschuss sofortiges Auswählen eines Feindes z.B. bei Torsprung NPCs (z.B. im GG) werden autom. ausgewählt/abgeschossen
[Release] Professional Helper Tool - Restart
02/03/2012 - DarkOrbit - 96 Replies
Since I recently came back to DO. I found out, that there has been a protocol change, so I am working on a new PHT. Since it is the first version, everyone can try it. Please post any bugs. Features (everything has been implemented): http://www.abload.de/img/phtbokow.bmp Howto:



All times are GMT +1. The time now is 03:41.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.