Game server info by c0ax

ljuskaArchive
//archivePosts: 37Member, Moderator in Perl / Python / Shell scripting
# Game Server Info Script by c0ax
#Greetz baltazar, b0ne, crax0, MikiSoft, Melvin, Toro etc.
#Important: here "sok.connect((ip, 27089))".
# Change '27089' with port of your server.
#And in ip type ip of yourserver.
#Visit ljuska.org and c0axe.blogspot.com
import socket

def ispis(isp):
    isp = isp.replace('777', '')
    if isp.find('m= 0:
        nejmsrv = isp.split('') [1]
        mapa = isp.split('') [2]
        igra = isp.split('') [4]
   print 'nGame:', igra
    print 'nServer name:', nejmsrv
    print 'nMap:', mapa

ip = '193.104.68.49' #Change this IP with IP of your server.
sok = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sok.connect((ip, 27089))
sok.send('377377377377TSourceine Query')

while 1:
    konekt = sok.recv(1024)
    konekt = ispis(konekt)
    if not konekt:
        break
    print '[GET]', konekt

sok.close()
#EOF. Good Luck
Sign In or Register to comment.

Welcome

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions