Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket, socks
- from xml.etree import ElementTree as et
- import math, urllib
- import random, time
- global String_1, String_2, String_3, String_4, Chat, Using_Proxies, Raid_Fixed_j2
- '''
- ~ http://zat.io -> Raid
- ~ Made by: TheFox
- '''
- String_1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'
- String_2 = len(String_1) - 1
- String_3 = ''.join([String_1[random.randint(0, String_2)] for y in range(1, 15)])#Message
- String_4 = ''.join([String_1[random.randint(0, String_2)] for y in range(1, 10)])#Null's name
- def Raid():
- try:
- zat_ids = [i.strip() for i in open('ids.txt','r').read().splitlines()]
- i = random.choice(zat_ids)
- zat_id = i.split('&')
- print("\n" + str(zat_id))
- ID = zat_id[0]
- ID = zat_id[0].strip('UserId=')
- K1 = zat_id[1]
- K1 = zat_id[1].strip('k1=')
- except:
- 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")
- time.sleep(999)
- if Using_Proxies == 'yes':
- Proxies_txt = [i.strip() for i in open('socks5.txt','r').read().splitlines()]
- Proxy = random.choice(Proxies_txt)
- Proxy = Proxy.split(':')
- print "Proxy Being Used: " + str(Proxy[0]) + ":" + str(Proxy[1]) + "\n"
- try:
- socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, Proxy[0], int(Proxy[1]))
- test = socks.socksocket
- Socket = test(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
- Socket.settimeout(5)
- Socket.connect(("zat.io", 1204))
- except:
- print "Could not connect using the selected proxy! Or 'socks5.txt' was not found! Re-trying....\n"
- Raid()
- elif Using_Proxies != 'yes':
- Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
- Socket.connect(('zat.io', 1204))
- Socket.send('<y r="'+Chat+'" m="1" v="0" u="'+ID+'" />\0')
- XML = et.fromstring(Socket.recv(1024).strip('\0')).attrib
- print('Recieved: ' + str(XML))
- Handshake_yi = int(XML['yi'])
- Handshake_yc = int(XML['yc'])
- Handshake_ys = int(XML['ys'])
- fuckm1 = str(int(2 << (Handshake_yi % 30)) % Handshake_yc + Handshake_yi)
- print("M1: " + fuckm1)
- fuckm2 = str(int(pow(2, Handshake_ys % 32)))
- print("M2: " + fuckm2)
- huem3 = str(int(pow(2, Handshake_ys % 32)))
- huem3 = int(huem3) + 1
- print("M3: " + str(huem3))
- huem4 = str(int(math.pi * (Handshake_ys * Handshake_ys)))
- print("M4: " + huem4)
- auth = [int(128), int(64), int(0x0100), int(2)]
- key = random.randint(19856740, 99817728)
- key = int(key) % 30 + 1 - 75 * 7761 * math.pi
- key = int(key) % 30 + 1 * 2 + 1 * 986 + math.pi
- auth = int(key * 2 % 30 + 1)
- base64_encoded = 'aHR0cDovL3phdC5pby9jYWNoZS9jYWNoZS5waHA/Zj1jaGF0Mi5zd2Y='
- base64_decoded = 'Just for lols => http://zat.io/cache/cache.php?f=chat2.swf'
- print("zat's Chat.swf : " + base64_decoded + "\n")
- print("Authentication Key: " + str(auth + key))
- 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')
- while 1:
- Data = Socket.recv(1024)
- print("Recieved: " + Data)
- 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.'):
- Raid_Fixed_j2()
- Socket.send('<m t="'+String_3+'" u="'+ID+'" />\0')
- Raid()
- def Raid_Fixed_j2():
- try:
- zat_ids = [i.strip() for i in open('ids.txt','r').read().splitlines()]
- i = random.choice(zat_ids)
- zat_id = i.split('&')
- print("\n" + str(zat_id))
- ID = zat_id[0]
- ID = zat_id[0].strip('UserId=')
- K1 = zat_id[1]
- K1 = zat_id[1].strip('k1=')
- except:
- 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")
- time.sleep(999)
- if Using_Proxies == 'yes':
- Proxies_txt = [i.strip() for i in open('socks5.txt','r').read().splitlines()]
- Proxy = random.choice(Proxies_txt)
- Proxy = Proxy.split(':')
- print "Proxy Being Used: " + str(Proxy[0]) + ":" + str(Proxy[1]) + "\n"
- try:
- socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, Proxy[0], int(Proxy[1]))
- test = socks.socksocket
- Socket = test(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
- Socket.settimeout(5)
- Socket.connect(("zat.io", 1204))
- except:
- print "Could not connect using the selected proxy! Or 'socks5.txt' was not found! Re-trying....\n"
- Raid()
- elif Using_Proxies != 'yes':
- Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
- Socket.connect(('zat.io', 1204))
- Socket.send('<y r="'+Chat+'" m="1" v="0" u="'+ID+'" />\0')
- XML = et.fromstring(Socket.recv(1024).strip('\0')).attrib
- print('Recieved: ' + str(XML))
- Handshake_yi = int(XML['yi'])
- Handshake_yc = int(XML['yc'])
- Handshake_ys = int(XML['ys'])
- fuckm1 = str(int(2 << (Handshake_yi % 30)) % Handshake_yc + Handshake_yi)
- print("M1: " + fuckm1)
- fuckm2 = str(int(pow(2, Handshake_ys % 32)))
- print("M2: " + fuckm2)
- huem3 = str(int(pow(2, Handshake_ys % 32)))
- huem3 = int(huem3) + 1
- print("M3: " + str(huem3))
- huem4 = str(int(math.pi * (Handshake_ys * Handshake_ys)))
- print("M4: " + huem4)
- auth = [int(128), int(64), int(0x0100), int(2)]
- key = random.randint(19856740, 99817728)
- key = int(key) % 30 + 1 - 75 * 7761 * math.pi
- key = int(key) % 30 + 1 * 2 + 1 * 986 + math.pi
- auth = int(key * 2 % 30 + 1)
- base64_encoded = 'aHR0cDovL3phdC5pby9jYWNoZS9jYWNoZS5waHA/Zj1jaGF0Mi5zd2Y='
- base64_decoded = 'Just for lols => http://zat.io/cache/cache.php?f=chat2.swf'
- print("zat's Chat.swf : " + base64_decoded + "\n")
- print("Authentication Key: " + str(auth + key))
- 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')
- while 1:
- Data = Socket.recv(1024)
- print("Recieved: " + Data)
- 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.'):
- Raid_Fixed_j2()
- Socket.send('<m t="'+String_3+'" u="'+ID+'" />\0')
- Raid_Fixed_j2()
- print("--------------------------")
- print("TheFox's zat.io Raid Script")
- print("--------------------------\n")
- Chat = raw_input("Chat's ID: ")
- Using_Proxies = raw_input("Would you like to use proxies? Type 'yes' or 'no' : ")
- Raid()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement