Guest User

Callenge

a guest
May 30th, 2016
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.91 KB | None | 0 0
  1. #!usr/bin/python
  2.  
  3. def leetname():
  4.     replacements = ( ('hacker','haxor'), ('elite','eleet'), ('a','4'), ('e','3'),
  5.                  ('l','1'), ('o','0'), ('t','7'), ('s','5'))
  6.     my_string = raw_input("Enter Name: ")
  7.     new_string = my_string
  8.     for old, new in replacements:
  9.       new_string = new_string.replace(old, new)
  10.  
  11.     print ("\n\033[33m\tResult:\033[35m\t " + new_string + "\033[39m")
  12.  
  13. def xsspayload():
  14.     print "[$]========================================================[$]"
  15.     print "[$]  \033[31m\tXSS \033[32m\tPAYLOAD GENERATOR                         \033[39m [$]"
  16.     print "[$]========================================================[$]"
  17.  
  18.     name = raw_input("Enter Name: > ")
  19.     print("\nPAYLOAD: \033[32m\t<script>alert(/xss-by-" + name + "/)</script>")
  20.  
  21. def info():
  22.     print "[$]========================================================[$]"
  23.     print "[$]            \033[31m\tACCOUNT INFORMATION                       \033[39m [$]"
  24.     print "[$]========================================================[$]"
  25.  
  26.  
  27.     print "\033[36m\tNAME:\033[39m\tShariq Malik"
  28.     print "\033[36m\tE-MAIL:\033[39m\tadmin@shariqmalik.com"
  29.     print "\033[36m\tAGE:\033[39m\t18"
  30.     print "\033[36m\tUSERNAME:\033[39m\tshariq"
  31.     print "\033[36m\tCOUNTRY:\033[39m\tPakistan"
  32.     print "\033[36m\tCITY:\033[39m\tLahore"
  33.  
  34. def logout():
  35.    
  36.     print("\033[31m\tLogout Success!")
  37.  
  38. banner = """
  39.  
  40. \033[32m\t:::       ::: :::::::::: :::        ::::::::   ::::::::  ::::    ::::  ::::::::::
  41. \033[32m\t:+:       :+: :+:        :+:       :+:    :+: :+:    :+: +:+:+: :+:+:+ :+:        
  42. \033[33m\t+:+       +:+ +:+        +:+       +:+        +:+    +:+ +:+ +:+:+ +:+ +:+        
  43. \033[33m\t+#+  +:+  +#+ +#++:++#   +#+       +#+        +#+    +:+ +#+  +:+  +#+ +#++:++#  
  44. \033[33m\t+#+ +#+#+ +#+ +#+        +#+       +#+        +#+    +#+ +#+       +#+ +#+        
  45. \033[31m\t #+#+# #+#+#  #+#        #+#       #+#    #+# #+#    #+# #+#       #+# #+#        
  46. \033[31m\t  ###   ###   ########## ########## ########   ########  ###       ### ########## \033[39m
  47.  
  48.     Author: Shariq Malik                                                                        
  49.  
  50. """
  51. print(banner)
  52.  
  53. print "[$]========================================================[$]"
  54. print "[$]  \033[31m\tDashboard: \033[32m\t Login to Continue                \033[39m [$]"
  55. print "[$]========================================================[$]"
  56.  
  57. username = raw_input("\nEnter Username: > ")
  58. password = raw_input("Enter Password: > ")
  59.  
  60. if username == 'shariq' and password == 'malik':
  61.     print("\033[36m\t[[l33t name generator]]\033[39m")
  62.     leetname()
  63.     print("\n\n")
  64.     print("What Do you want further?")
  65.     print("1. Generate Xss payload")
  66.     print("2. Show account information")
  67.     print("3. Logout")
  68.     var = raw_input("> ")
  69.     if var == "1":
  70.         xsspayload()
  71.     elif var == "2":
  72.         info()
  73.     elif var == "3":
  74.         logout()
  75.     else:
  76.         print("Do a Valid Selection!")
  77.  
  78. else:
  79.     print("\033[31m\t[#] Login Failed [#]\033[39m")
Add Comment
Please, Sign In to add comment