SHARE
TWEET

Untitled

a guest May 30th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ian = "qpalzm"
  2. ianpass = "Werncs"
  3. print "Welcome To SATO AI PROGRAM 1.2 (LINUX)"
  4. myName = raw_input ("Username: ")
  5. if myName == (ian):
  6.         myPass = raw_input ("Password: ")
  7.         if myPass == (ianpass):
  8.                 print "Welcome Back "+(myName)+"!"
  9.         else:
  10.                 while True == True:
  11.                         print "RONG! PASSWORD!"
  12. else:
  13.         while True == True:
  14.                 print "RONG! USERNAME!"
  15. print "Hello, This is The Official Python AI S.A.T.O, How Can I Help You?"
  16. userinput1 = raw_input("")
  17. if (userinput1) == "encrypt":
  18.         no123 = ("No","no","NO","n","N")
  19. yes123 = ("Yes","yes","YES","y","Y","YEA","YEE")
  20. brodcast91 = raw_input("What Is Your Password?\n")
  21. hexcase = 0;  
  22. b64pad  = "";
  23. chrsz   = 8;  
  24. intlenbit = 32
  25. hex_md5 = lambda s: binl2hex(core_md5(str2binl(s), len(s) * chrsz))
  26. def binl2hex(binarray):
  27.   if hexcase == 1:
  28.     hex_tab = "0123456789ABCDEF"
  29.   else:
  30.     hex_tab = "0123456789abcdef"
  31.   str = ""
  32.   i = 0
  33.   while i < len(binarray) * 4:
  34.     str += hex_tab[(binarray[i>>2] >> ((i % 4) * 8 + 4)) & 0xF] + hex_tab[(binarray[i>>2] >> ((i % 4) * 8)) & 0xF]
  35.     i+=1
  36.   return str
  37. def str2binl(str):
  38.   bin = {}
  39.   mask = (1 << chrsz) - 1
  40.   i = 0
  41.   while i < len(str) * chrsz:
  42.     ind = i >> 5
  43.     sdv = i % intlenbit
  44.     str_c = ord(str[int(i/chrsz)]) & mask
  45.     bin[ind] = bin.get(ind,0) | str_c << sdv
  46.     i+=chrsz
  47.   return bin
  48. def safe_add(x, y):
  49.   lsw = (x & 0xFFFF) + (y & 0xFFFF)
  50.   msw = (((x & (2**intlenbit - 1)) >> 16) + ((y & (2**intlenbit - 1)) >> 16)  + (lsw >> 16)) & (2**intlenbit - 1)
  51.   return ((msw << 16) | (lsw & 0xFFFF)) & (2**intlenbit - 1)
  52. rol = lambda num, cnt:\
  53.   ((num << cnt % intlenbit) & (2**intlenbit - 1))\
  54.   | (((num & (2**intlenbit - 1)) >> (intlenbit - cnt % intlenbit)) & (2**intlenbit - 1))
  55. md5_cmn = lambda q, a, b, x, s, t: safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b)
  56. md5_ff = lambda a, b, c, d, x, s, t: md5_cmn((b & c) | ((~b) & d), a, b, x, s, t)
  57. md5_gg = lambda a, b, c, d, x, s, t: md5_cmn((b & d) | (c & (~d)), a, b, x, s, t)
  58. md5_hh = lambda a, b, c, d, x, s, t: md5_cmn(b ^ c ^ d, a, b, x, s, t)
  59. md5_ii = lambda a, b, c, d, x, s, t: md5_cmn(c ^ (b | (~d)), a, b, x, s, t)  
  60. def core_md5(x, l):
  61.   x[l >> 5] |= 0x80 << ((l) % 32)
  62.   x[(((l + 64) >> 9) << 4) + 14] = l
  63.   a, b, c, d, i =  1732584193, -271733879, -1732584194, 271733878, 0
  64.   while i < len(x):
  65.     olda, oldb, oldc, oldd  = a, b, c, d
  66.     a = md5_ff(a, b, c, d, x.get(i+ 0, 0), 7 , -680876936)
  67.     d = md5_ff(d, a, b, c, x.get(i+ 1, 0), 12, -389564586)
  68.     c = md5_ff(c, d, a, b, x.get(i+ 2, 0), 17,  606105819)
  69.     b = md5_ff(b, c, d, a, x.get(i+ 3, 0), 22, -1044525330)
  70.     a = md5_ff(a, b, c, d, x.get(i+ 4, 0), 7 , -176418897)
  71.     d = md5_ff(d, a, b, c, x.get(i+ 5, 0), 12,  1200080426)
  72.     c = md5_ff(c, d, a, b, x.get(i+ 6, 0), 17, -1473231341)
  73.     b = md5_ff(b, c, d, a, x.get(i+ 7, 0), 22, -45705983)
  74.     a = md5_ff(a, b, c, d, x.get(i+ 8, 0), 7 ,  1770035416)
  75.     d = md5_ff(d, a, b, c, x.get(i+ 9, 0), 12, -1958414417)
  76.     c = md5_ff(c, d, a, b, x.get(i+10, 0), 17, -42063)
  77.     b = md5_ff(b, c, d, a, x.get(i+11, 0), 22, -1990404162)
  78.     a = md5_ff(a, b, c, d, x.get(i+12, 0), 7 ,  1804603682)
  79.     d = md5_ff(d, a, b, c, x.get(i+13, 0), 12, -40341101)
  80.     c = md5_ff(c, d, a, b, x.get(i+14, 0), 17, -1502002290)
  81.     b = md5_ff(b, c, d, a, x.get(i+15, 0), 22,  1236535329)
  82.     a = md5_gg(a, b, c, d, x.get(i+ 1, 0), 5 , -165796510)
  83.     d = md5_gg(d, a, b, c, x.get(i+ 6, 0), 9 , -1069501632)
  84.     c = md5_gg(c, d, a, b, x.get(i+11, 0), 14,  643717713)
  85.     b = md5_gg(b, c, d, a, x.get(i+ 0, 0), 20, -373897302)
  86.     a = md5_gg(a, b, c, d, x.get(i+ 5, 0), 5 , -701558691)
  87.     d = md5_gg(d, a, b, c, x.get(i+10, 0), 9 ,  38016083)
  88.     c = md5_gg(c, d, a, b, x.get(i+15, 0), 14, -660478335)
  89.     b = md5_gg(b, c, d, a, x.get(i+ 4, 0), 20, -405537848)
  90.     a = md5_gg(a, b, c, d, x.get(i+ 9, 0), 5 ,  568446438)
  91.     d = md5_gg(d, a, b, c, x.get(i+14, 0), 9 , -1019803690)
  92.     c = md5_gg(c, d, a, b, x.get(i+ 3, 0), 14, -187363961)
  93.     b = md5_gg(b, c, d, a, x.get(i+ 8, 0), 20,  1163531501)
  94.     a = md5_gg(a, b, c, d, x.get(i+13, 0), 5 , -1444681467)
  95.     d = md5_gg(d, a, b, c, x.get(i+ 2, 0), 9 , -51403784)
  96.     c = md5_gg(c, d, a, b, x.get(i+ 7, 0), 14,  1735328473)
  97.     b = md5_gg(b, c, d, a, x.get(i+12, 0), 20, -1926607734)
  98.     a = md5_hh(a, b, c, d, x.get(i+ 5, 0), 4 , -378558)
  99.     d = md5_hh(d, a, b, c, x.get(i+ 8, 0), 11, -2022574463)
  100.     c = md5_hh(c, d, a, b, x.get(i+11, 0), 16,  1839030562)
  101.     b = md5_hh(b, c, d, a, x.get(i+14, 0), 23, -35309556)
  102.     a = md5_hh(a, b, c, d, x.get(i+ 1, 0), 4 , -1530992060)
  103.     d = md5_hh(d, a, b, c, x.get(i+ 4, 0), 11,  1272893353)
  104.     c = md5_hh(c, d, a, b, x.get(i+ 7, 0), 16, -155497632)
  105.     b = md5_hh(b, c, d, a, x.get(i+10, 0), 23, -1094730640)
  106.     a = md5_hh(a, b, c, d, x.get(i+13, 0), 4 ,  681279174)
  107.     d = md5_hh(d, a, b, c, x.get(i+ 0, 0), 11, -358537222)
  108.     c = md5_hh(c, d, a, b, x.get(i+ 3, 0), 16, -722521979)
  109.     b = md5_hh(b, c, d, a, x.get(i+ 6, 0), 23,  76029189)
  110.     a = md5_hh(a, b, c, d, x.get(i+ 9, 0), 4 , -640364487)
  111.     d = md5_hh(d, a, b, c, x.get(i+12, 0), 11, -421815835)
  112.     c = md5_hh(c, d, a, b, x.get(i+15, 0), 16,  530742520)
  113.     b = md5_hh(b, c, d, a, x.get(i+ 2, 0), 23, -995338651)
  114.     a = md5_ii(a, b, c, d, x.get(i+ 0, 0), 6 , -198630844)
  115.     d = md5_ii(d, a, b, c, x.get(i+ 7, 0), 10,  1126891415)
  116.     c = md5_ii(c, d, a, b, x.get(i+14, 0), 15, -1416354905)
  117.     b = md5_ii(b, c, d, a, x.get(i+ 5, 0), 21, -57434055)
  118.     a = md5_ii(a, b, c, d, x.get(i+12, 0), 6 ,  1700485571)
  119.     d = md5_ii(d, a, b, c, x.get(i+ 3, 0), 10, -1894986606)
  120.     c = md5_ii(c, d, a, b, x.get(i+10, 0), 15, -1051523)
  121.     b = md5_ii(b, c, d, a, x.get(i+ 1, 0), 21, -2054922799)
  122.     a = md5_ii(a, b, c, d, x.get(i+ 8, 0), 6 ,  1873313359)
  123.     d = md5_ii(d, a, b, c, x.get(i+15, 0), 10, -30611744)
  124.     c = md5_ii(c, d, a, b, x.get(i+ 6, 0), 15, -1560198380)
  125.     b = md5_ii(b, c, d, a, x.get(i+13, 0), 21,  1309151649)
  126.     a = md5_ii(a, b, c, d, x.get(i+ 4, 0), 6 , -145523070)
  127.     d = md5_ii(d, a, b, c, x.get(i+11, 0), 10, -1120210379)
  128.     c = md5_ii(c, d, a, b, x.get(i+ 2, 0), 15,  718787259)
  129.     b = md5_ii(b, c, d, a, x.get(i+ 9, 0), 21, -343485551)
  130.     a, b, c, d = safe_add(a, olda), safe_add(b, oldb), safe_add(c, oldc), safe_add(d, oldd)
  131.     i+=16
  132.   return {0:a,1:b,2:c,3:d}
  133. sArr = [(brodcast91)];
  134. MD5 = raw_input("Would You Like To Veiw Your Password's Hash?\n")
  135. if MD5 in (yes123):
  136.   for s in sArr:
  137.     print "Your Password's hash is:\n"+(hex_md5(s))
  138.     end = raw_input("Press Enter To Leave.\n")
  139.     if end != "gyguuhr4gtuhguy8guy8uhuhrty89y897ygyrftguy":
  140.       quit()
  141. else:
  142.   if MD5 in (no123):
  143.     print "Okay.\n"
  144.     end = raw_input("\n\n\nPress Enter To Leave.")
  145.     if end != "qwertyuiopasdfghjklzxcvbnm1234567890":
  146.       quit()
  147. userinput22 = raw_input("")
  148. if (userinput1) == "decrypt":
  149.        
  150.         decryption1 = raw_input("What is it You What me to Decrypt?\n\n")
  151. if (userinput1) == "get info":
  152.         print "Info Commands You Can Type In:\nARGU:Will Give You a Rubric to Write an Argumenitive Esssay\nDEVEL:Will Tell You Who Made me, The Greatest AI Ever, S.A.T.O!\nMore Info Coming Soon!\n"
  153. if (userinput1) == "DEVEL":
  154.         print "\nCreated by Demitri Esades, Kaden Chin-Massey, And Ian Ault"
  155. if (userinput1) == "ARGU":
  156.         print "INTRO: Define The Debate. Example: Some Think... OR An Issue That is Hotly Debated... Then, You Have to Make a Clear Claim. Such as "
  157. if (userinput1) == "Esades":
  158.         print "Welcome to O.T.T.O, S.A.T.O 's Cousin! How May I Help You?"
  159. if (userinput1) == "LOGOUT":
  160.         print '\n\nTo Log Out Type "log out"'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top