Advertisement
dopeFox

[Python 2.7.3] TheFox's zat.io Raid

Nov 12th, 2014
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.32 KB | None | 0 0
  1. import socket, socks
  2. from xml.etree import ElementTree as et
  3. import math, urllib
  4. import random, time
  5. global String_1, String_2, String_3, String_4, Chat, Using_Proxies, Raid_Fixed_j2
  6.  
  7. '''
  8. ~ http://zat.io  -> Raid
  9. ~ Made by: TheFox
  10. '''
  11.  
  12. String_1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'
  13. String_2 = len(String_1) - 1
  14. String_3 = ''.join([String_1[random.randint(0, String_2)] for y in range(1, 15)])#Message
  15. String_4 = ''.join([String_1[random.randint(0, String_2)] for y in range(1, 10)])#Null's name
  16.    
  17. def Raid():
  18.         try:
  19.                 zat_ids = [i.strip() for i in open('ids.txt','r').read().splitlines()]
  20.                 i = random.choice(zat_ids)
  21.                 zat_id = i.split('&')
  22.                 print("\n" + str(zat_id))
  23.                 ID = zat_id[0]
  24.                 ID = zat_id[0].strip('UserId=')
  25.                 K1 = zat_id[1]
  26.                 K1 = zat_id[1].strip('k1=')
  27.         except:
  28.                 print("'ids.txt' was not found! Please create one in the same folder that this script is in and add IDs to it SPECIFICALLY IN THIS LAYOUT: http://prntscr.com/55tzbi\n")
  29.                 time.sleep(999)
  30.         if Using_Proxies == 'yes':
  31.                 Proxies_txt = [i.strip() for i in open('socks5.txt','r').read().splitlines()]
  32.                 Proxy = random.choice(Proxies_txt)
  33.                 Proxy = Proxy.split(':')
  34.                 print "Proxy Being Used: " + str(Proxy[0]) + ":" + str(Proxy[1]) + "\n"
  35.                 try:
  36.                         socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, Proxy[0], int(Proxy[1]))
  37.                         test = socks.socksocket
  38.                         Socket = test(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
  39.                         Socket.settimeout(5)
  40.                         Socket.connect(("zat.io", 1204))
  41.                 except:
  42.                         print "Could not connect using the selected proxy! Or 'socks5.txt' was not found! Re-trying....\n"
  43.                         Raid()
  44.         elif Using_Proxies != 'yes':
  45.                 Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
  46.                 Socket.connect(('zat.io', 1204))
  47.                 Socket.send('<y r="'+Chat+'" m="1" v="0" u="'+ID+'" />\0')
  48.                 XML = et.fromstring(Socket.recv(1024).strip('\0')).attrib
  49.                 print('Recieved: ' + str(XML))
  50.                 Handshake_yi = int(XML['yi'])
  51.                 Handshake_yc = int(XML['yc'])
  52.                 Handshake_ys = int(XML['ys'])
  53.                 fuckm1 = str(int(2 << (Handshake_yi % 30)) % Handshake_yc + Handshake_yi)
  54.                 print("M1: " + fuckm1)
  55.                 fuckm2 = str(int(pow(2, Handshake_ys % 32)))
  56.                 print("M2: " + fuckm2)
  57.                 huem3 = str(int(pow(2, Handshake_ys % 32)))
  58.                 huem3 = int(huem3) + 1
  59.                 print("M3: " + str(huem3))
  60.                 huem4 = str(int(math.pi * (Handshake_ys * Handshake_ys)))
  61.                 print("M4: " + huem4)
  62.                 auth = [int(128), int(64), int(0x0100), int(2)]
  63.                 key = random.randint(19856740, 99817728)
  64.                 key = int(key) % 30 + 1 - 75 * 7761 * math.pi
  65.                 key = int(key) % 30 + 1 * 2 + 1 * 986 + math.pi
  66.                 auth = int(key * 2 % 30 + 1)
  67.                 base64_encoded = 'aHR0cDovL3phdC5pby9jYWNoZS9jYWNoZS5waHA/Zj1jaGF0Mi5zd2Y='
  68.                 base64_decoded = 'Just for lols => http://zat.io/cache/cache.php?f=chat2.swf'
  69.                 print("zat's Chat.swf : " + base64_decoded + "\n")
  70.                 print("Authentication Key: " + str(auth + key))
  71.                 Socket.send('<j2 auth="'+str(auth + key)+'" cb="'+str(Handshake_yc)+'" Y="2" fuckm1="'+str(fuckm1)+'" fuckm2="'+str(fuckm2)+'" huem3="'+str(huem3)+'" huem4="'+str(huem4)+'" y="'+str(Handshake_yi)+'" c="'+Chat+'" k="'+str(K1)+'" u="'+str(ID)+'" n="'+str(String_4)+'" a="" h="" v="0" />\0')
  72.                 while 1:
  73.                         Data = Socket.recv(1024)
  74.                         print("Recieved: " + Data)
  75.                         if ('You must re-login to be able to chat further.') in Data or Data.find('You must re-login to be able to chat further.'):
  76.                                 Raid_Fixed_j2()
  77.                         Socket.send('<m t="'+String_3+'" u="'+ID+'" />\0')
  78.                         Raid()
  79. def Raid_Fixed_j2():
  80.         try:
  81.                 zat_ids = [i.strip() for i in open('ids.txt','r').read().splitlines()]
  82.                 i = random.choice(zat_ids)
  83.                 zat_id = i.split('&')
  84.                 print("\n" + str(zat_id))
  85.                 ID = zat_id[0]
  86.                 ID = zat_id[0].strip('UserId=')
  87.                 K1 = zat_id[1]
  88.                 K1 = zat_id[1].strip('k1=')
  89.         except:
  90.                 print("'ids.txt' was not found! Please create one in the same folder that this script is in and add IDs to it SPECIFALLY IN THIS LAYOUT: http://prntscr.com/55tzbi\n")
  91.                 time.sleep(999)
  92.         if Using_Proxies == 'yes':
  93.                 Proxies_txt = [i.strip() for i in open('socks5.txt','r').read().splitlines()]
  94.                 Proxy = random.choice(Proxies_txt)
  95.                 Proxy = Proxy.split(':')
  96.                 print "Proxy Being Used: " + str(Proxy[0]) + ":" + str(Proxy[1]) + "\n"
  97.                 try:
  98.                         socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, Proxy[0], int(Proxy[1]))
  99.                         test = socks.socksocket
  100.                         Socket = test(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
  101.                         Socket.settimeout(5)
  102.                         Socket.connect(("zat.io", 1204))
  103.                 except:
  104.                         print "Could not connect using the selected proxy! Or 'socks5.txt' was not found! Re-trying....\n"
  105.                         Raid()
  106.         elif Using_Proxies != 'yes':
  107.                 Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
  108.                 Socket.connect(('zat.io', 1204))
  109.                 Socket.send('<y r="'+Chat+'" m="1" v="0" u="'+ID+'" />\0')
  110.                 XML = et.fromstring(Socket.recv(1024).strip('\0')).attrib
  111.                 print('Recieved: ' + str(XML))
  112.                 Handshake_yi = int(XML['yi'])
  113.                 Handshake_yc = int(XML['yc'])
  114.                 Handshake_ys = int(XML['ys'])
  115.                 fuckm1 = str(int(2 << (Handshake_yi % 30)) % Handshake_yc + Handshake_yi)
  116.                 print("M1: " + fuckm1)
  117.                 fuckm2 = str(int(pow(2, Handshake_ys % 32)))
  118.                 print("M2: " + fuckm2)
  119.                 huem3 = str(int(pow(2, Handshake_ys % 32)))
  120.                 huem3 = int(huem3) + 1
  121.                 print("M3: " + str(huem3))
  122.                 huem4 = str(int(math.pi * (Handshake_ys * Handshake_ys)))
  123.                 print("M4: " + huem4)
  124.                 auth = [int(128), int(64), int(0x0100), int(2)]
  125.                 key = random.randint(19856740, 99817728)
  126.                 key = int(key) % 30 + 1 - 75 * 7761 * math.pi
  127.                 key = int(key) % 30 + 1 * 2 + 1 * 986 + math.pi
  128.                 auth = int(key * 2 % 30 + 1)
  129.                 base64_encoded = 'aHR0cDovL3phdC5pby9jYWNoZS9jYWNoZS5waHA/Zj1jaGF0Mi5zd2Y='
  130.                 base64_decoded = 'Just for lols => http://zat.io/cache/cache.php?f=chat2.swf'
  131.                 print("zat's Chat.swf : " + base64_decoded + "\n")
  132.                 print("Authentication Key: " + str(auth + key))
  133.                 Socket.send('<j2 auth="'+str(auth + key)+'" cb="'+str(Handshake_yc)+'" Y="2" fuckm1="'+str(fuckm1)+'" fuckm2="'+str(fuckm2)+'" huem3="'+str(huem3)+'" huem4="'+str(huem4)+'" y="'+str(Handshake_yi)+'" c="'+Chat+'" k="'+str(K1)+'" u="'+str(ID)+'" n="'+str(String_4)+'" a="" h="" v="0" />\0')
  134.                 while 1:
  135.                         Data = Socket.recv(1024)
  136.                         print("Recieved: " + Data)
  137.                         if ('You must re-login to be able to chat further.') in Data or Data.find('You must re-login to be able to chat further.'):
  138.                                 Raid_Fixed_j2()
  139.                         Socket.send('<m t="'+String_3+'" u="'+ID+'" />\0')
  140.                         Raid_Fixed_j2()
  141. print("--------------------------")
  142. print("TheFox's zat.io Raid Script")
  143. print("--------------------------\n")
  144. Chat = raw_input("Chat's ID: ")
  145. Using_Proxies = raw_input("Would you like to use proxies? Type 'yes' or 'no' : ")
  146. Raid()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement