Hi all,
If you want play at Clubmt2 : --> *removed*
If you try hack or other ban all german ;)
Now rate is normally but NPC have item +8. Is a Test server
Tomorrow Rate change ;)
EXP : 50
Yang : 50
Good Game ;)
For OllyDbg user create a New change_connect.py
If you want play at Clubmt2 : --> *removed*
If you try hack or other ban all german ;)
Now rate is normally but NPC have item +8. Is a Test server
Tomorrow Rate change ;)
EXP : 50
Yang : 50
Good Game ;)
For OllyDbg user create a New change_connect.py
Quote:
# $Id: change_connect.py,v 1.1 2007/11/30 15:04:54 hochoa Exp $
# Author: Hernan Ochoa (traduit par Obscuri)([Only registered and activated users can see links. Click Here To Register...]),([Only registered and activated users can see links. Click Here To Register...])
# (c) 2007, Core Security Technologies
import proxy
import sys
import socket
import struct
#int connect(
# __in SOCKET s,
# __in const struct sockaddr* name,
# __in int namelen
#);
def connect_handler_before(hookcall):
uhookerAPI = hookcall.proxy
_SOCKET = hookcall.params[0]
_SOCKADDR = hookcall.params[1]
_SOCKADDRLEN = hookcall.params[2]
if _SOCKET == 0:
print "Socket is null!"
hookcall.sendack()
return
if _SOCKADDR == 0:
print "SockAddr is NULL!"
hookcall.sendack()
return
#print "SOCKET: %X" % (_SOCKET)
#print "SOCKADDR: %X" % (_SOCKADDR)
#print "SOCKADDRLEN: %d" % (_SOCKADDRLEN)
data = uhookerAPI.readmemory( _SOCKADDR, _SOCKADDRLEN )
#for x in data:
# print hex(ord(x))
IPaddr_str = "94.23.199.102"
IPaddr_num = "94.23.199.102"
Port_num = sin_port = struct.unpack("!H", data[2:4] )[0]
sin_family = struct.unpack("H", data[0:2] )[0]
sin_port = struct.unpack("!H", data[2:4] )[0]
ipv4_addr = struct.unpack("!L", data[4:8])[0]
if sin_family == 2:
print "IP de connection -> %d.%d.%d.%d:%d" % ( ord(data[4]), ord(data[5]), ord(data[6]), ord(data[7]), sin_port)
else:
print "family: %X " % sin_family
print "familiy not supported!"
hookcall.sendack()
return
if "%d.%d.%d.%d" % ( ord(data[4]), ord(data[5]), ord(data[6]), ord(data[7]) ) != IPaddr_str:
if Port_num == 13000:
Port_num = 13000
if Port_num == 13000:
Port_num = 13000
print "Changement de l'IP de connection: %s:%d" % (IPaddr_str, Port_num)
newport = struct.pack("!H", Port_num)
newip = socket.inet_aton( IPaddr_num )
uhookerAPI.writememory( _SOCKADDR+2, 2, newport)
uhookerAPI.writememory( _SOCKADDR+4, 4, newip)
hookcall.sendack()
return
else:
hookcall.sendack()
return