Best Python code snippet using playwright-python
circlesmart+vpn.py
Source:circlesmart+vpn.py
...104 confidence=0.8) != None:105 pass106107def rtry():108 clear_cookies()109 mouse.position = (1343, 14)110 mouse.click(Button.left, 1)111 open_chrome()112 ChangeIp()113 signup()114 sleep(0.2)115116 qwiklabs()117 minimize()118 i = 1119 while True:120 open_chrome()121 clear_cookies()122 ChangeIp()123 signup()124 sleep(0.2)125 126127 if i % 5 == 0:128 circleci()129 minimize()130 else:131 qwiklabs()132 minimize()133 i = i + 1134135136def install_chrome():137138 # #sleep139140 sleep(25)141142 # #maximize143144 pyautogui.keyDown('alt')145 pyautogui.keyDown('space')146 pyautogui.press('x')147 pyautogui.keyUp('alt')148 pyautogui.keyUp('space')149 mouse.position = (1085, 242)150 mouse.click(Button.left, 1)151152 # #select search bar153154 keyboard.press(Key.ctrl)155 keyboard.press('l')156 keyboard.release('l')157 keyboard.release(Key.ctrl)158 sleep(0.5)159160161def download_extention():162163 # #go to site buster varifier164165 keyboard.type('https://chrome.google.com/webstore/detail/buster-captcha-solver-for/mpbjkejclgfgadiemmefgebjfooflfhl?hl=en'166 )167 keyboard.press(Key.enter)168 keyboard.release(Key.enter)169 sleep(7)170171 # #add to chrome172173 mouse.position = (1085, 242)174 mouse.click(Button.left, 1)175 sleep(1)176 mouse.position = (722, 273)177 mouse.click(Button.left, 1)178 mouse.click(Button.left, 1)179 sleep(5)180181 # #New page182183 keyboard.press(Key.ctrl)184 keyboard.press('t')185 keyboard.release('t')186 keyboard.release(Key.ctrl)187 sleep(0.5)188189 # #go to first page and close it190191 keyboard.press(Key.ctrl)192 keyboard.press('1')193 keyboard.release('1')194 keyboard.release(Key.ctrl)195 sleep(0.5)196 keyboard.press(Key.ctrl)197 keyboard.press('w')198 keyboard.release('w')199 keyboard.release(Key.ctrl)200 sleep(0.75)201202 # #select search bar203204 keyboard.press(Key.ctrl)205 keyboard.press('l')206 keyboard.release('l')207 keyboard.release(Key.ctrl)208 sleep(0.5)209210 # #go to site buster varifier211212 keyboard.type('https://chrome.google.com/webstore/detail/browsec-vpn-free-vpn-for/omghfjlpggmjjaagoclmmobgdodcjboh?hl=en'213 )214 keyboard.press(Key.enter)215 keyboard.release(Key.enter)216 sleep(7)217218 # #add to chrome219220 mouse.position = (1098, 241)221 mouse.click(Button.left, 1)222 sleep(1)223 mouse.position = (714, 214)224 mouse.click(Button.left, 1)225 mouse.click(Button.left, 1)226 sleep(5)227228 # #New page229230 keyboard.press(Key.ctrl)231 keyboard.press('t')232 keyboard.release('t')233 keyboard.release(Key.ctrl)234 sleep(0.5)235236 # #go to first page and close it237238 keyboard.press(Key.ctrl)239 keyboard.press('1')240 keyboard.release('1')241 keyboard.release(Key.ctrl)242 sleep(0.5)243 keyboard.press(Key.ctrl)244 keyboard.press('w')245 keyboard.release('w')246 keyboard.release(Key.ctrl)247 sleep(0.75)248249 # #select search bar250251 keyboard.press(Key.ctrl)252 keyboard.press('l')253 keyboard.release('l')254 keyboard.release(Key.ctrl)255 sleep(1)256257258def signup():259260 # #select on chrome261262 mouse.position = (219, 585)263 mouse.click(Button.left, 1)264 sleep(0.5)265266 # #select search bar267268 keyboard.press(Key.ctrl)269 keyboard.press('l')270 keyboard.release('l')271 keyboard.release(Key.ctrl)272 sleep(0.5)273274 # #go to site circleci275276 keyboard.type('https://circleci.com/vcs-authorize/')277 keyboard.press(Key.enter)278 keyboard.release(Key.enter)279280 # #New page281282 keyboard.press(Key.ctrl)283 keyboard.press('t')284 keyboard.release('t')285 keyboard.release(Key.ctrl)286 sleep(0.5)287288 # #select search bar289290 keyboard.press(Key.ctrl)291 keyboard.press('l')292 keyboard.release('l')293 keyboard.release(Key.ctrl)294 sleep(0.5)295296 # #Go to bitbucket signup297298 keyboard.type('https://id.atlassian.com/signup?application=bitbucket&continue=https%3A//bitbucket.org/account/signin/%3Foptintocst%3D1%26next%3D/%3Faidsignup%3D1')299 keyboard.press(Key.enter)300 keyboard.release(Key.enter)301302 # #New page303304 keyboard.press(Key.ctrl)305 keyboard.press('t')306 keyboard.release('t')307 keyboard.release(Key.ctrl)308 sleep(0.5)309310 # #select search bar311312 keyboard.press(Key.ctrl)313 keyboard.press('l')314 keyboard.release('l')315 keyboard.release(Key.ctrl)316 sleep(0.5)317318 # #go to emailondeck319320 keyboard.type('https://www.emailondeck.com/')321 keyboard.press(Key.enter)322 keyboard.release(Key.enter)323 sleep(7)324325 # #click in recaptcha326327 while True:328 if True:329 try:330331 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \332 != None:333 pyautogui.click('emailrecaptchaclick.png')334 sleep(1)335 if pyautogui.locateOnScreen('captchaPASS.png',336 confidence=0.8) != None:337 break338 except:339 sleep(6)340 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \341 != None:342 pyautogui.click('emailrecaptchaclick.png')343 sleep(1)344 if pyautogui.locateOnScreen('captchaPASS.png',345 confidence=0.8) != None:346 break347348 # #click on solver349350 try:351 sleep(2)352 if pyautogui.locateOnScreen('buster.png') != None:353 pyautogui.click('buster.png')354 sleep(1)355 if pyautogui.locateOnScreen('captchaPASS.png',356 confidence=0.8) != None:357 break358 Buster_Money()359 except:360 sleep(2)361 if pyautogui.locateOnScreen('buster.png') != None:362 pyautogui.click('buster.png')363 sleep(1)364 Buster_Money()365 sleep(8)366 if pyautogui.locateOnScreen('captchaPASS.png',367 confidence=0.8) != None:368 break369370 # #click on refresh371372 try:373374 if pyautogui.locateOnScreen('refresh.png') != None:375 pyautogui.click('refresh.png')376 sleep(1)377 if pyautogui.locateOnScreen('captchaPASS.png',378 confidence=0.8) != None:379 break380 Buster_Money()381 except:382 sleep(2)383 if pyautogui.locateOnScreen('refresh.png') != None:384 pyautogui.click('refresh.png')385 sleep(1)386 Buster_Money()387 sleep(3)388 if pyautogui.locateOnScreen('captchaPASS.png',389 confidence=0.8) != None:390 break391392 try:393394 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \395 != None:396 pyautogui.click('emailrecaptchaclick.png')397 sleep(1)398 if pyautogui.locateOnScreen('captchaPASS.png',399 confidence=0.8) != None:400 break401 if pyautogui.locateOnScreen('captchaREDEmail.png') \402 != None:403 rtry()404 Buster_Money()405 except:406 sleep(6)407 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \408 != None:409 pyautogui.click('emailrecaptchaclick.png')410 sleep(1)411 if pyautogui.locateOnScreen('captchaPASS.png',412 confidence=0.8) != None:413 break414 if pyautogui.locateOnScreen('captchaREDEmail.png') \415 != None:416 rtry()417 Buster_Money()418419 # #click on solver420421 try:422 sleep(2)423 if pyautogui.locateOnScreen('buster.png') != None:424 pyautogui.click('buster.png')425 sleep(1)426 if pyautogui.locateOnScreen('captchaPASS.png',427 confidence=0.8) != None:428 break429 Buster_Money()430 except:431 sleep(2)432 if pyautogui.locateOnScreen('buster.png') != None:433 pyautogui.click('buster.png')434 sleep(1)435 Buster_Money()436 sleep(8)437 if pyautogui.locateOnScreen('captchaPASS.png',438 confidence=0.8) != None:439 break440441 # #click on refresh442443 try:444445 if pyautogui.locateOnScreen('refresh.png') != None:446 pyautogui.click('refresh.png')447 sleep(1)448 if pyautogui.locateOnScreen('captchaPASS.png',449 confidence=0.8) != None:450 break451 except:452 sleep(2)453 if pyautogui.locateOnScreen('refresh.png') != None:454 pyautogui.click('refresh.png')455 sleep(1)456 sleep(3)457 if pyautogui.locateOnScreen('captchaPASS.png',458 confidence=0.8) != None:459 break460461 # #click in recaptcha462463 try:464465 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \466 != None:467 pyautogui.click('emailrecaptchaclick.png')468 if pyautogui.locateOnScreen('captchaREDEmail.png') \469 != None:470 rtry()471 try:472 sleep(2)473 if pyautogui.locateOnScreen('buster.png') \474 != None:475 pyautogui.click('buster.png')476 sleep(1)477 if pyautogui.locateOnScreen('captchaPASS.png',478 confidence=0.8) != None:479 break480 Buster_Money()481 except:482 sleep(2)483 if pyautogui.locateOnScreen('buster.png') \484 != None:485 pyautogui.click('buster.png')486 sleep(1)487 Buster_Money()488 if pyautogui.locateOnScreen('captchaPASS.png',489 confidence=0.8) != None:490 break491 except:492 if pyautogui.locateOnScreen('captchaPASS.png',493 confidence=0.8) != None:494 break495496 # #click on solver497498 try:499500 if pyautogui.locateOnScreen('buster.png') != None:501 pyautogui.click('buster.png')502 sleep(1)503 if pyautogui.locateOnScreen('captchaPASS.png',504 confidence=0.8) != None:505 break506 Buster_Money()507 except:508 sleep(2)509 if pyautogui.locateOnScreen('buster.png') != None:510 pyautogui.click('buster.png')511 sleep(1)512 Buster_Money()513 sleep(8)514 if pyautogui.locateOnScreen('captchaPASS.png',515 confidence=0.8) != None:516 break517518 # #click on refresh519520 try:521522 if pyautogui.locateOnScreen('refresh.png') != None:523 pyautogui.click('refresh.png')524 sleep(1)525 if pyautogui.locateOnScreen('captchaPASS.png',526 confidence=0.8) != None:527 break528 Buster_Money()529 except:530 sleep(2)531 if pyautogui.locateOnScreen('refresh.png') != None:532 pyautogui.click('refresh.png')533 sleep(1)534 Buster_Money()535 sleep(3)536 if pyautogui.locateOnScreen('captchaPASS.png',537 confidence=0.8) != None:538 break539 try:540541 if pyautogui.locateOnScreen('buster.png') != None:542 pyautogui.click('buster.png')543 sleep(8)544 if pyautogui.locateOnScreen('captchaPASS.png',545 confidence=0.8) != None:546 break547 Buster_Money()548 except:549 if pyautogui.locateOnScreen('captchaPASS.png') == None:550551 # #close chrome552553 clear_cookies()554 mouse.position = (1343, 14)555 mouse.click(Button.left, 1)556 open_chrome()557 ChangeIp()558 signup()559 sleep(0.2)560 561562 qwiklabs()563 minimize()564 i = 1565 while True:566 open_chrome()567 clear_cookies()568 ChangeIp()569 signup()570 sleep(0.2)571 572573 if i % 5 == 0:574 circleci()575 minimize()576 else:577 qwiklabs()578 minimize()579 i = i + 1580581 # #click on login582583 mouse.position = (835, 677)584 mouse.click(Button.left, 1)585 sleep(10)586587 # #copy email588589 mouse.position = (790, 181)590 mouse.click(Button.left, 1)591 keyboard.press(Key.ctrl)592 keyboard.press('a')593 keyboard.release('a')594 keyboard.release(Key.ctrl)595 keyboard.press(Key.ctrl)596 keyboard.press('c')597 keyboard.release('c')598 keyboard.release(Key.ctrl)599 sleep(0.2)600 c = pyperclip.paste()601602 # #back to bitbucket603604 keyboard.press(Key.ctrl)605 keyboard.press('2')606 keyboard.release('2')607 keyboard.release(Key.ctrl)608 sleep(1.5)609610 # #paste email611612 mouse.position = (629, 288)613 sleep(0.5)614 mouse.click(Button.left, 1)615 keyboard.type(c)616617 # #write full name618619 keyboard.press(Key.tab)620 keyboard.release(Key.tab)621 keyboard.type('Alex Musk')622623 # #write pass624625 keyboard.press(Key.tab)626 keyboard.release(Key.tab)627 keyboard.type('boboltala1$$')628629 # #click enter630631 keyboard.press(Key.enter)632 keyboard.release(Key.enter)633 sleep(4)634 z = 0635 while z < 1:636 z = z + 1637 try:638639 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \640 != None:641 pyautogui.click('emailrecaptchaclick.png')642 sleep(1)643 if pyautogui.locateOnScreen('bitbucket varify.png',644 confidence=0.8) != None:645 break646 except:647 sleep(6)648 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \649 != None:650 pyautogui.click('emailrecaptchaclick.png')651 sleep(1)652 if pyautogui.locateOnScreen('bitbucket varify.png',653 confidence=0.8) != None:654 break655656 # #click on solver657658 try:659 sleep(2)660 if pyautogui.locateOnScreen('buster.png') != None:661 pyautogui.click('buster.png')662 sleep(1)663 if pyautogui.locateOnScreen('bitbucket varify.png',664 confidence=0.8) != None:665 break666 Buster_Money()667 except:668 sleep(2)669 if pyautogui.locateOnScreen('buster.png') != None:670 pyautogui.click('buster.png')671 sleep(1)672 Buster_Money()673 sleep(8)674 if pyautogui.locateOnScreen('bitbucket varify.png',675 confidence=0.8) != None:676 break677678 # #click on refresh679680 try:681682 if pyautogui.locateOnScreen('refresh.png') != None:683 pyautogui.click('refresh.png')684 sleep(1)685 if pyautogui.locateOnScreen('bitbucket varify.png',686 confidence=0.8) != None:687 break688 except:689 sleep(2)690 if pyautogui.locateOnScreen('refresh.png') != None:691 pyautogui.click('refresh.png')692 sleep(1)693 sleep(3)694 if pyautogui.locateOnScreen('bitbucket varify.png',695 confidence=0.8) != None:696 break697698 try:699700 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \701 != None:702 pyautogui.click('emailrecaptchaclick.png')703 sleep(1)704 if pyautogui.locateOnScreen('bitbucket varify.png',705 confidence=0.8) != None:706 break707 except:708 sleep(6)709 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \710 != None:711 pyautogui.click('emailrecaptchaclick.png')712 sleep(1)713 if pyautogui.locateOnScreen('bitbucket varify.png',714 confidence=0.8) != None:715 break716717 # #click on solver718719 try:720 sleep(2)721 if pyautogui.locateOnScreen('buster.png') != None:722 pyautogui.click('buster.png')723 sleep(1)724 if pyautogui.locateOnScreen('bitbucket varify.png',725 confidence=0.8) != None:726 break727 Buster_Money()728 except:729 sleep(2)730 if pyautogui.locateOnScreen('buster.png') != None:731 pyautogui.click('buster.png')732 sleep(1)733 Buster_Money()734 sleep(8)735 if pyautogui.locateOnScreen('bitbucket varify.png',736 confidence=0.8) != None:737 break738739 # #click on refresh740741 try:742743 if pyautogui.locateOnScreen('refresh.png') != None:744 pyautogui.click('refresh.png')745 sleep(1)746 if pyautogui.locateOnScreen('bitbucket varify.png',747 confidence=0.8) != None:748 break749 except:750 sleep(2)751 if pyautogui.locateOnScreen('refresh.png') != None:752 pyautogui.click('refresh.png')753 sleep(1)754 sleep(3)755 if pyautogui.locateOnScreen('bitbucket varify.png',756 confidence=0.8) != None:757 break # #click in recaptcha758759 try:760761 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \762 != None:763 pyautogui.click('emailrecaptchaclick.png')764 try:765 sleep(2)766 if pyautogui.locateOnScreen('buster.png') != None:767 pyautogui.click('buster.png')768 sleep(1)769 if pyautogui.locateOnScreen('bitbucket varify.png',770 confidence=0.8) != None:771 break772 Buster_Money()773 except:774 sleep(2)775 if pyautogui.locateOnScreen('buster.png') != None:776 pyautogui.click('buster.png')777 sleep(1)778 Buster_Money()779 if pyautogui.locateOnScreen('bitbucket varify.png',780 confidence=0.8) != None:781 break782 except:783 if pyautogui.locateOnScreen('bitbucket varify.png',784 confidence=0.8) != None:785 break786787 # #click on solver788789 try:790791 if pyautogui.locateOnScreen('buster.png') != None:792 pyautogui.click('buster.png')793 sleep(1)794 if pyautogui.locateOnScreen('bitbucket varify.png',795 confidence=0.8) != None:796 break797 Buster_Money()798 except:799 sleep(2)800 if pyautogui.locateOnScreen('buster.png') != None:801 pyautogui.click('buster.png')802 sleep(1)803 Buster_Money()804 sleep(8)805 if pyautogui.locateOnScreen('bitbucket varify.png',806 confidence=0.8) != None:807 break808809 # #click on refresh810811 try:812813 if pyautogui.locateOnScreen('refresh.png') != None:814 pyautogui.click('refresh.png')815 sleep(1)816 if pyautogui.locateOnScreen('bitbucket varify.png',817 confidence=0.8) != None:818 break819 except:820 sleep(2)821 if pyautogui.locateOnScreen('refresh.png') != None:822 pyautogui.click('refresh.png')823 sleep(1)824 sleep(3)825 if pyautogui.locateOnScreen('bitbucket varify.png',826 confidence=0.8) != None:827 break828 try:829830 if pyautogui.locateOnScreen('buster.png') != None:831 pyautogui.click('buster.png')832 sleep(8)833 if pyautogui.locateOnScreen('bitbucket varify.png',834 confidence=0.8) != None:835 break836 Buster_Money()837 except:838 if pyautogui.locateOnScreen('bitbucket varify.png') == None:839840 # #close chrome841842 clear_cookies()843 mouse.position = (1343, 14)844 mouse.click(Button.left, 1)845 open_chrome()846 ChangeIp()847 signup()848 sleep(0.2)849 850851 qwiklabs()852 minimize()853 i = 1854 while True:855 open_chrome()856 clear_cookies()857 ChangeIp()858 signup()859 sleep(0.2)860 861862 if i % 5 == 0:863 circleci()864 minimize()865 else:866 qwiklabs()867 minimize()868 i = i + 1869870 # #go to email page871872 keyboard.press(Key.ctrl)873 keyboard.press('3')874 keyboard.release('3')875 keyboard.release(Key.ctrl)876 sleep(10)877878 # #refresh inbox879880 mouse.position = (956, 188)881 mouse.click(Button.left, 1)882 mouse.position = (374, 308)883 mouse.click(Button.left, 1)884 sleep(5)885886 # #click on email from bitbucket887 i = 0888 while pyautogui.locateOnScreen('EmailVarify.png') == None:889 sleep(7)890 keyboard.press(Key.ctrl)891 keyboard.press('r')892 keyboard.release('r')893 keyboard.release(Key.ctrl)894 i = i+1895 if i == 5:896 clear_cookies()897 mouse.position = (1343, 14)898 mouse.click(Button.left, 1)899 open_chrome()900 ChangeIp()901 signup()902 sleep(0.2)903 904905 qwiklabs()906 minimize()907 i = 1908 while True:909 open_chrome()910 clear_cookies()911 ChangeIp()912 signup()913 sleep(0.2)914 915916 if i % 5 == 0:917 circleci()918 minimize()919 else:920 qwiklabs()921 minimize()922 i = i + 1923 if pyautogui.locateOnScreen('EmailVarify.png') != None:924 pyautogui.click('EmailVarify.png')925 else:926 clear_cookies()927 mouse.position = (1343, 14)928 mouse.click(Button.left, 1)929 open_chrome()930 ChangeIp()931 signup()932 sleep(0.2)933 934935 qwiklabs()936 minimize()937 i = 1938 while True:939 open_chrome()940 clear_cookies()941 ChangeIp()942 signup()943 sleep(0.2)944 945946 if i % 5 == 0:947 circleci()948 minimize()949 else:950 qwiklabs()951 minimize()952 i = i + 1953954 # #scroll down 12 times955 sleep(7)956 mouse.position = (1390, 719)957 sleep(0.5)958 mouse.click(Button.left, 20)959 sleep(2)960961 # #scroll down again962963 mouse.position = (1179, 509)964 mouse.click(Button.left, 10)965 sleep(2)966967 # #click on varify968969 if pyautogui.locateOnScreen('varifyemail.png') != None:970 pyautogui.moveTo('varifyemail.png')971 sleep(0.5)972 pyautogui.click('varifyemail.png')973 sleep(0.5)974 keyboard.press(Key.ctrl)975 keyboard.press('9')976 keyboard.release('9')977 keyboard.release(Key.ctrl)978 sleep(1)979 ChangeIp_On_Or_Off()980 sleep(10)981 if pyautogui.locateOnScreen('skipsleep1.png') != None:982 pass983 else:984 sleep(10)985 if pyautogui.locateOnScreen('skipsleep1.png') != None:986 pass987 else:988 sleep(10)989 if pyautogui.locateOnScreen('skipsleep1.png') != None:990 pass991 else:992 sleep(10)993 if pyautogui.locateOnScreen('skipsleep1.png') != None:994 pass995 else:996 sleep(10)997 if pyautogui.locateOnScreen('skipsleep1.png') != None:998 pass999 else:1000 sleep(10)1001 if pyautogui.locateOnScreen('skipsleep1.png') != None:1002 pass1003 else:1004 sleep(10)1005 if pyautogui.locateOnScreen('skipsleep1.png') != None:1006 pass1007 else:10081009 # #close chrome10101011 clear_cookies()1012 mouse.position = (1343, 14)1013 mouse.click(Button.left, 1)1014 open_chrome()1015 ChangeIp()1016 signup()1017 sleep(0.2)1018 10191020 qwiklabs()1021 minimize()1022 i = 11023 while True:1024 open_chrome()1025 clear_cookies()1026 ChangeIp()1027 signup()1028 sleep(0.2)1029 10301031 if i % 5 == 0:1032 circleci()1033 minimize()1034 else:1035 qwiklabs()1036 minimize()1037 i = i + 110381039 # #write username10401041 mouse.position = (618, 374)1042 mouse.click(Button.left, 1)10431044 # ###### printing lowercase10451046 letters = string.ascii_lowercase1047 a = ''.join(random.choice(letters) for i in range(8))10481049 # ###### printing digits10501051 letters = string.digits1052 b = ''.join(random.choice(letters) for i in range(6))1053 keyboard.type(a + b)10541055 # #wait10561057 if pyautogui.locateOnScreen('WaitBeforeCompletLoad.png') != None:1058 pass1059 else:1060 sleep(10)1061 if pyautogui.locateOnScreen('WaitBeforeCompletLoad.png') != None:1062 pass1063 else:1064 sleep(10)1065 if pyautogui.locateOnScreen('WaitBeforeCompletLoad.png') != None:1066 pass1067 else:1068 sleep(10)1069 if pyautogui.locateOnScreen('WaitBeforeCompletLoad.png') != None:1070 pass1071 else:1072 sleep(10)1073 if pyautogui.locateOnScreen('WaitBeforeCompletLoad.png') != None:1074 pass1075 else:1076 sleep(10)1077 if pyautogui.locateOnScreen('WaitBeforeCompletLoad.png') != None:1078 pass1079 else:1080 sleep(10)1081 if pyautogui.locateOnScreen('WaitBeforeCompletLoad.png') != None:1082 pass1083 else:10841085 # #close chrome10861087 clear_cookies()1088 mouse.position = (1343, 14)1089 mouse.click(Button.left, 1)1090 open_chrome()1091 signup()1092 sleep(0.2)1093 10941095 qwiklabs()1096 minimize()1097 i = 11098 while True:1099 open_chrome()1100 clear_cookies()1101 ChangeIp()1102 signup()1103 sleep(0.2)1104 11051106 if i % 5 == 0:1107 circleci()1108 minimize()1109 else:1110 qwiklabs()1111 minimize()1112 i = i + 111131114 # #click enter11151116 keyboard.press(Key.enter)1117 keyboard.release(Key.enter)1118 sleep(10)1119 if pyautogui.locateOnScreen('skipsleep2.png') != None:1120 pass1121 else:1122 sleep(10)1123 if pyautogui.locateOnScreen('skipsleep2.png') != None:1124 pass1125 else:1126 sleep(10)1127 if pyautogui.locateOnScreen('skipsleep2.png') != None:1128 pass1129 else:1130 sleep(10)1131 if pyautogui.locateOnScreen('skipsleep2.png') != None:1132 pass1133 else:1134 sleep(10)1135 if pyautogui.locateOnScreen('skipsleep2.png') != None:1136 pass1137 else:11381139 # #close chrome11401141 clear_cookies()1142 mouse.position = (1343, 14)1143 mouse.click(Button.left, 1)1144 open_chrome()1145 ChangeIp()1146 signup()1147 sleep(0.2)1148 11491150 qwiklabs()1151 minimize()1152 i = 11153 while True:1154 open_chrome()1155 clear_cookies()1156 ChangeIp()1157 signup()1158 sleep(0.2)1159 11601161 if i % 5 == 0:1162 circleci()1163 minimize()1164 else:1165 qwiklabs()1166 minimize()1167 i = i + 111681169 # #click on skip11701171 if pyautogui.locateOnScreen('clickonskip.png') != None:1172 pyautogui.click('clickonskip.png')1173 sleep(10)11741175 # #Creat Repository11761177 if pyautogui.locateOnScreen('CreatRepository.png',1178 confidence=0.8) == None:1179 sleep(5)1180 if pyautogui.locateOnScreen('CreatRepository.png',1181 confidence=0.8) == None:1182 sleep(5)1183 if pyautogui.locateOnScreen('CreatRepository.png',1184 confidence=0.8) == None:1185 sleep(5)1186 if pyautogui.locateOnScreen('CreatRepository.png',1187 confidence=0.8) == None:1188 sleep(5)11891190 if pyautogui.locateOnScreen('CreatRepository.png',1191 confidence=0.8) == None:1192 sleep(5)1193 if pyautogui.locateOnScreen('CreatRepository.png',1194 confidence=0.8) == None:1195 sleep(5)1196 if pyautogui.locateOnScreen('CreatRepository.png',1197 confidence=0.8) == None:1198 sleep(5)1199 if pyautogui.locateOnScreen('CreatRepository.png',1200 confidence=0.8) == None:1201 sleep(5)1202 if pyautogui.locateOnScreen('CreatRepository.png',1203 confidence=0.8) == None:1204 sleep(5)1205 if pyautogui.locateOnScreen('CreatRepository.png',1206 confidence=0.8) == None:1207 sleep(5)1208 if pyautogui.locateOnScreen('CreatRepository.png',1209 confidence=0.8) == None:1210 sleep(5)1211 if pyautogui.locateOnScreen('CreatRepository.png',1212 confidence=0.8) == None:1213 sleep(5)1214 q = 01215 q = q + 11216 if q == 15:1217 clear_cookies()1218 mouse.position = (1343, 14)1219 mouse.click(Button.left, 1)1220 open_chrome()1221 ChangeIp()1222 signup()1223 sleep(0.2)1224 12251226 qwiklabs()1227 minimize()1228 i = 11229 while True:1230 open_chrome()1231 clear_cookies()1232 ChangeIp()1233 signup()1234 sleep(0.2)1235 1236 if i % 5 == 0:1237 circleci()1238 minimize()1239 else:1240 qwiklabs()1241 minimize()1242 i = i + 1124312441245 sleep(1)1246 if pyautogui.locateOnScreen('CreatRepository.png') != None:1247 pyautogui.click('CreatRepository.png')1248 if pyautogui.locateOnScreen('CreatRepository.png',1249 confidence=0.8) == None:1250 sleep(5)1251 q = q + 11252 if q == 15:1253 clear_cookies()1254 mouse.position = (1343, 14)1255 mouse.click(Button.left, 1)1256 open_chrome()1257 ChangeIp()1258 signup()1259 sleep(0.2)1260 12611262 qwiklabs()1263 minimize()1264 i = 11265 while True:1266 open_chrome()1267 clear_cookies()1268 ChangeIp()1269 signup()1270 sleep(0.2)1271 1272 if i % 5 == 0:1273 circleci()1274 minimize()1275 else:1276 qwiklabs()1277 minimize()1278 i = i + 112791280 sleep(3)12811282 # #while page appear wait12831284 q = 01285 while pyautogui.locateOnScreen('stopwaitRepository.png',1286 confidence=0.8) == None:1287 sleep(5)1288 q = q + 11289 if q == 15:1290 clear_cookies()1291 mouse.position = (1343, 14)1292 mouse.click(Button.left, 1)1293 open_chrome()1294 ChangeIp()1295 signup()1296 sleep(0.2)1297 12981299 qwiklabs()1300 minimize()1301 i = 11302 while True:1303 open_chrome()1304 clear_cookies()1305 ChangeIp()1306 signup()1307 sleep(0.2)1308 1309 if i % 5 == 0:1310 circleci()1311 minimize()1312 else:1313 qwiklabs()1314 minimize()1315 i = i + 113161317 # #wait13181319 if pyautogui.locateOnScreen('WaitBeforeCompletLoad2.png') != None:1320 pass1321 else:1322 sleep(10)1323 if pyautogui.locateOnScreen('WaitBeforeCompletLoad2.png') != None:1324 pass1325 else:1326 sleep(10)1327 if pyautogui.locateOnScreen('WaitBeforeCompletLoad2.png') != None:1328 pass1329 else:1330 sleep(10)1331 if pyautogui.locateOnScreen('WaitBeforeCompletLoad2.png') != None:1332 pass1333 else:1334 sleep(10)1335 if pyautogui.locateOnScreen('WaitBeforeCompletLoad2.png') != None:1336 pass1337 else:1338 sleep(10)1339 if pyautogui.locateOnScreen('WaitBeforeCompletLoad2.png') != None:1340 pass1341 else:1342 sleep(10)1343 if pyautogui.locateOnScreen('WaitBeforeCompletLoad2.png') != None:1344 pass1345 else:13461347 # #close chrome13481349 clear_cookies()1350 mouse.position = (1343, 14)1351 mouse.click(Button.left, 1)1352 open_chrome()1353 signup()1354 sleep(0.2)1355 13561357 qwiklabs()1358 minimize()1359 i = 11360 while True:1361 open_chrome()1362 clear_cookies()1363 ChangeIp()1364 signup()1365 sleep(0.2)1366 13671368 if i % 5 == 0:1369 circleci()1370 minimize()1371 else:1372 qwiklabs()1373 minimize()1374 i = i + 1137513761377 # sleep(2)1378 # #write new13791380 mouse.position = (695, 266)1381 mouse.click(Button.left, 2)1382 sleep(1)1383 keyboard.type('new')1384 sleep(0.5)1385 keyboard.press(Key.tab)1386 keyboard.release(Key.tab)1387 sleep(0.5)1388 keyboard.type('new')1389 keyboard.press(Key.enter)1390 keyboard.release(Key.enter)1391 sleep(2)1392 ChangeIp_On_Or_Off()1393 sleep(1)1394 # # go to first page13951396 keyboard.press(Key.ctrl)1397 keyboard.press('1')1398 keyboard.release('1')1399 keyboard.release(Key.ctrl)1400 sleep(0.5)14011402 # #select bitbucket for loggin14031404 while pyautogui.locateOnScreen('loginWithBitbucket.png') == None:1405 sleep(1)1406 pyautogui.click('loginWithBitbucket.png', clicks=2)1407 sleep(3)14081409 z = 01410 while z < 1:1411 z = z + 11412 try:14131414 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \1415 != None:1416 pyautogui.click('emailrecaptchaclick.png')1417 sleep(1)1418 if pyautogui.locateOnScreen('Grant Access.png',1419 confidence=0.8) != None:1420 break1421 except:1422 sleep(6)1423 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \1424 != None:1425 pyautogui.click('emailrecaptchaclick.png')1426 sleep(1)1427 if pyautogui.locateOnScreen('Grant Access.png',1428 confidence=0.8) != None:1429 break14301431 # #click on solver14321433 try:1434 sleep(2)1435 if pyautogui.locateOnScreen('buster.png') != None:1436 pyautogui.click('buster.png')1437 sleep(1)1438 if pyautogui.locateOnScreen('Grant Access.png',1439 confidence=0.8) != None:1440 break1441 Buster_Money()1442 except:1443 sleep(2)1444 if pyautogui.locateOnScreen('buster.png') != None:1445 pyautogui.click('buster.png')1446 sleep(1)1447 Buster_Money()1448 sleep(8)1449 if pyautogui.locateOnScreen('Grant Access.png', confidence=0.8) \1450 != None:1451 break14521453 # #click on refresh14541455 try:14561457 if pyautogui.locateOnScreen('refresh.png') != None:1458 pyautogui.click('refresh.png')1459 sleep(1)1460 if pyautogui.locateOnScreen('Grant Access.png',1461 confidence=0.8) != None:1462 break1463 except:1464 sleep(2)1465 if pyautogui.locateOnScreen('refresh.png') != None:1466 pyautogui.click('refresh.png')1467 sleep(1)1468 sleep(3)1469 if pyautogui.locateOnScreen('Grant Access.png', confidence=0.8) \1470 != None:1471 break1472 try:1473 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \1474 != None:1475 pyautogui.click('emailrecaptchaclick.png')1476 sleep(1)1477 if pyautogui.locateOnScreen('Grant Access.png',1478 confidence=0.8) != None:1479 break1480 except:1481 sleep(6)1482 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \1483 != None:1484 pyautogui.click('emailrecaptchaclick.png')1485 sleep(1)1486 if pyautogui.locateOnScreen('Grant Access.png',1487 confidence=0.8) != None:1488 break14891490 # #click on solver14911492 try:1493 sleep(2)1494 if pyautogui.locateOnScreen('buster.png') != None:1495 pyautogui.click('buster.png')1496 sleep(1)1497 if pyautogui.locateOnScreen('Grant Access.png',1498 confidence=0.8) != None:1499 break1500 Buster_Money()1501 except:1502 sleep(2)1503 if pyautogui.locateOnScreen('buster.png') != None:1504 pyautogui.click('buster.png')1505 sleep(1)1506 Buster_Money()1507 sleep(8)1508 if pyautogui.locateOnScreen('Grant Access.png', confidence=0.8) \1509 != None:1510 break15111512 # #click on refresh15131514 try:15151516 if pyautogui.locateOnScreen('refresh.png') != None:1517 pyautogui.click('refresh.png')1518 sleep(1)1519 if pyautogui.locateOnScreen('Grant Access.png',1520 confidence=0.8) != None:1521 break1522 except:1523 sleep(2)1524 if pyautogui.locateOnScreen('refresh.png') != None:1525 pyautogui.click('refresh.png')1526 sleep(1)1527 sleep(3)1528 if pyautogui.locateOnScreen('Grant Access.png', confidence=0.8) \1529 != None:1530 break15311532 # #click in recaptcha15331534 try:15351536 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \1537 != None:1538 pyautogui.click('emailrecaptchaclick.png')1539 try:1540 sleep(2)1541 if pyautogui.locateOnScreen('buster.png') != None:1542 pyautogui.click('buster.png')1543 sleep(1)1544 if pyautogui.locateOnScreen('Grant Access.png',1545 confidence=0.8) != None:1546 break1547 Buster_Money()1548 except:1549 sleep(2)1550 if pyautogui.locateOnScreen('buster.png') != None:1551 pyautogui.click('buster.png')1552 sleep(1)1553 Buster_Money()1554 if pyautogui.locateOnScreen('Grant Access.png',1555 confidence=0.8) != None:1556 break1557 except:1558 if pyautogui.locateOnScreen('Grant Access.png',1559 confidence=0.8) != None:1560 break15611562 # #click on solver15631564 try:15651566 if pyautogui.locateOnScreen('buster.png') != None:1567 pyautogui.click('buster.png')1568 sleep(1)1569 if pyautogui.locateOnScreen('Grant Access.png',1570 confidence=0.8) != None:1571 break1572 Buster_Money()1573 except:1574 sleep(2)1575 if pyautogui.locateOnScreen('buster.png') != None:1576 pyautogui.click('buster.png')1577 sleep(1)1578 Buster_Money()1579 sleep(8)1580 if pyautogui.locateOnScreen('Grant Access.png', confidence=0.8) \1581 != None:1582 break15831584 # #click on refresh15851586 try:15871588 if pyautogui.locateOnScreen('refresh.png') != None:1589 pyautogui.click('refresh.png')1590 sleep(1)1591 if pyautogui.locateOnScreen('Grant Access.png',1592 confidence=0.8) != None:1593 break1594 except:1595 sleep(2)1596 if pyautogui.locateOnScreen('refresh.png') != None:1597 pyautogui.click('refresh.png')1598 sleep(1)1599 sleep(3)1600 if pyautogui.locateOnScreen('Grant Access.png', confidence=0.8) \1601 != None:1602 break1603 try:16041605 if pyautogui.locateOnScreen('buster.png') != None:1606 pyautogui.click('buster.png')1607 sleep(8)1608 if pyautogui.locateOnScreen('Grant Access.png',1609 confidence=0.8) != None:1610 break1611 Buster_Money()1612 except:1613 if pyautogui.locateOnScreen('Grant Access.png') == None:16141615 # #close chrome16161617 mouse.position = (1343, 14)1618 mouse.click(Button.left, 1)1619 clear_cookies()1620 open_chrome()1621 ChangeIp()1622 signup()1623 sleep(0.2)1624 16251626 qwiklabs()1627 minimize()1628 i = 11629 while True:1630 open_chrome()1631 clear_cookies()1632 ChangeIp()1633 signup()1634 sleep(0.2)1635 16361637 if i % 5 == 0:1638 circleci()1639 minimize()1640 else:1641 qwiklabs()1642 minimize()1643 i = i + 116441645 # #click on access1646 ChangeIp_On_Or_Off()1647 if pyautogui.locateOnScreen('Grant Access.png', confidence=0.8) \1648 != None:1649 pyautogui.click('Grant Access.png')1650 sleep(10)1651 ChangeIp_On_Or_Off()1652 i = 01653 while pyautogui.locateOnScreen('whaitWhileSeengThis.png',1654 confidence=0.8) != None:1655 sleep(6)1656 i = i+11657 if i == 10:1658 clear_cookies()1659 mouse.position = (1343, 14)1660 mouse.click(Button.left, 1)1661 open_chrome()1662 signup()1663 sleep(0.2)1664 16651666 qwiklabs()1667 minimize()1668 i = 11669 while True:1670 open_chrome()1671 clear_cookies()1672 ChangeIp()1673 signup()1674 sleep(0.2)1675 16761677 if i % 5 == 0:1678 circleci()1679 minimize()1680 else:1681 qwiklabs()1682 minimize()1683 i = i + 11684 ##wait to see the list1685 if pyautogui.locateOnScreen('selectCircleci.png') != None or pyautogui.locateOnScreen('selectCircleci2.png') != None:1686 pass1687 else:1688 sleep(5)1689 if pyautogui.locateOnScreen('selectCircleci.png') != None or pyautogui.locateOnScreen('selectCircleci2.png') != None:1690 pass1691 else:1692 sleep(5)1693 if pyautogui.locateOnScreen('selectCircleci.png') != None or pyautogui.locateOnScreen('selectCircleci2.png') != None:1694 pass1695 else:1696 sleep(5)1697 if pyautogui.locateOnScreen('selectCircleci.png') != None or pyautogui.locateOnScreen('selectCircleci2.png') != None:1698 pass1699 else:1700 sleep(5)1701 if pyautogui.locateOnScreen('selectCircleci.png') != None or pyautogui.locateOnScreen('selectCircleci2.png') != None:1702 pass1703 else:1704 sleep(10)1705 if pyautogui.locateOnScreen('selectCircleci.png') != None or pyautogui.locateOnScreen('selectCircleci2.png') != None:1706 pass1707 else:1708 sleep(10)1709 if pyautogui.locateOnScreen('selectCircleci.png') != None or pyautogui.locateOnScreen('selectCircleci2.png') != None:1710 pass1711 else:17121713 # #close chrome17141715 clear_cookies()1716 mouse.position = (1343, 14)1717 mouse.click(Button.left, 1)1718 open_chrome()1719 signup()1720 sleep(0.2)1721 17221723 qwiklabs()1724 minimize()1725 i = 11726 while True:1727 open_chrome()1728 clear_cookies()1729 ChangeIp()1730 signup()1731 sleep(0.2)1732 17331734 if i % 5 == 0:1735 circleci()1736 minimize()1737 else:1738 qwiklabs()1739 minimize()1740 i = i + 117411742 # #check the list1743 sleep(5)1744 mouse.position = (484, 347)1745 mouse.click(Button.left, 1)17461747 # #scroll down 5 times17481749 mouse.position = (911, 527)1750 mouse.click(Button.left, 5)17511752 # #check box17531754 mouse.position = (485, 357)1755 mouse.click(Button.left, 1)17561757 # #scroll down 5 times17581759 mouse.position = (911, 527)1760 mouse.click(Button.left, 5)17611762 # #check box17631764 mouse.position = (488, 387)1765 mouse.click(Button.left, 1)17661767 # #click on lets go17681769 mouse.position = (850, 580)1770 mouse.click(Button.left, 1)1771 sleep(7)17721773 # #select account17741775 mouse.position = (636, 365)1776 mouse.click(Button.left, 1)17771778 command = \1779 '''version: 2.1 1780 1781orbs:1782 win: circleci/windows@2.2.01783 1784jobs:1785 build: 1786 executor:1787 name: win/default 1788 size: "medium" 1789 1790 steps:1791 - run:1792 name: new1793 command: |1794 Set-Variable -Name "PASSWORD" -Value "Mvusic@123"1795 Set-Variable -Name "NGROK" -Value "1qIxSBQFN5WabYcowlH7mEdix09_7sDoM1NM6tHiCsc7MLihR"1796 Invoke-WebRequest https://raw.githubusercontent.com/loperkoper/rdp/main/RDPcircleCI2.ps1 -OutFile RDPcircleCI.ps11797 ./RDPcircleCI.ps1'''17981799 # #back to circle ci18001801 keyboard.press(Key.ctrl)1802 keyboard.press('1')1803 keyboard.release('1')1804 keyboard.release(Key.ctrl)1805 sleep(6)18061807 # #set up project18081809 mouse.position = (934, 399)1810 mouse.click(Button.left, 2)1811 sleep(0.1)1812 x = 01813 y = 01814 pyautogui.moveTo(x, y, duration=0.01)18151816 # #wait18171818 if pyautogui.locateOnScreen('Set Up Project.png', confidence=0.8) \1819 != None:1820 sleep(5)1821 if pyautogui.locateOnScreen('Set Up Project.png', confidence=0.8) \1822 != None:1823 sleep(5)1824 if pyautogui.locateOnScreen('Set Up Project.png', confidence=0.8) \1825 != None:1826 sleep(5)1827 if pyautogui.locateOnScreen('Set Up Project.png', confidence=0.8) \1828 != None:1829 sleep(5)1830 if pyautogui.locateOnScreen('Set Up Project.png', confidence=0.8) \1831 != None:1832 sleep(5)1833 if pyautogui.locateOnScreen('Set Up Project.png', confidence=0.8) \1834 != None:18351836 # #close chrome18371838 mouse.position = (1343, 14)1839 mouse.click(Button.left, 1)1840 clear_cookies()1841 open_chrome()1842 ChangeIp()1843 signup()1844 sleep(0.2)1845 18461847 qwiklabs()1848 minimize()1849 i = 11850 while True:1851 open_chrome()1852 clear_cookies()1853 ChangeIp()1854 signup()1855 sleep(0.2)1856 18571858 if i % 5 == 0:1859 circleci()1860 minimize()1861 else:1862 qwiklabs()1863 minimize()1864 i = i + 118651866 # #close add18671868 mouse.position = (1223, 549)1869 mouse.click(Button.left, 1)1870 mouse.position = (1062, 165)1871 mouse.click(Button.left, 1)1872 sleep(3)18731874 # #click on screen18751876 mouse.position = (877, 586)1877 mouse.click(Button.left, 1)18781879 # #remove18801881 keyboard.press(Key.ctrl)1882 keyboard.press('a')1883 keyboard.release('a')1884 keyboard.release(Key.ctrl)1885 keyboard.press(Key.backspace)1886 keyboard.release(Key.backspace)1887 sleep(0.2)18881889 # #copy command18901891 pyperclip.copy(command)18921893 # #paste18941895 keyboard.press(Key.ctrl)1896 keyboard.press('v')1897 keyboard.release('v')1898 keyboard.release(Key.ctrl)1899 sleep(0.5)19001901 # #New page19021903 keyboard.press(Key.ctrl)1904 keyboard.press('t')1905 keyboard.release('t')1906 keyboard.release(Key.ctrl)1907 sleep(0.5)19081909 # #select search bar19101911 keyboard.press(Key.ctrl)1912 keyboard.press('l')1913 keyboard.release('l')1914 keyboard.release(Key.ctrl)1915 sleep(0.5)19161917 # #go to ngrock19181919 keyboard.type('https://dashboard.ngrok.com/signup')1920 keyboard.press(Key.enter)1921 keyboard.release(Key.enter)1922 # #wait19231924 if pyautogui.locateOnScreen('NGROK.png', confidence=0.8) \1925 == None:1926 sleep(5)1927 if pyautogui.locateOnScreen('NGROK.png', confidence=0.8) \1928 == None:1929 sleep(5)1930 if pyautogui.locateOnScreen('NGROK.png', confidence=0.8) \1931 == None:1932 sleep(5)1933 if pyautogui.locateOnScreen('NGROK.png', confidence=0.8) \1934 == None:1935 sleep(5)1936 if pyautogui.locateOnScreen('NGROK.png', confidence=0.8) \1937 == None:1938 sleep(5)1939 if pyautogui.locateOnScreen('NGROK.png', confidence=0.8) \1940 == None:19411942 # #close chrome1943 clear_cookies()1944 sleep(2)1945 mouse.position = (1343, 14)1946 mouse.click(Button.left, 1)1947 open_chrome()1948 ChangeIp()1949 signup()1950 sleep(0.2)1951 19521953 # #click on name19541955 mouse.position = (627, 368)1956 mouse.click(Button.left, 1)19571958 # #write name19591960 keyboard.type('alex')19611962 # #write email19631964 keyboard.press(Key.tab)1965 keyboard.release(Key.tab)19661967 # ###### printing lowercase19681969 letters = string.ascii_lowercase1970 a = ''.join(random.choice(letters) for i in range(8))19711972 # ###### printing digits19731974 letters = string.digits1975 b = ''.join(random.choice(letters) for i in range(6))1976 c = '@gmail.com'1977 keyboard.type(a + b + c)19781979 # #write pass19801981 keyboard.press(Key.tab)1982 keyboard.release(Key.tab)1983 keyboard.type('boboltala1$$')1984 sleep(1)1985 ##scroll down 12 times19861987 mouse.position = (1390, 719)1988 sleep(0.5)1989 mouse.click(Button.left, 20)1990 sleep(2)199119921993 while True:1994 if True:1995 try:19961997 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \1998 != None:1999 pyautogui.click('emailrecaptchaclick.png')2000 sleep(1)2001 if pyautogui.locateOnScreen('captchaPASS.png') != None:2002 break2003 except:2004 sleep(6)2005 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \2006 != None:2007 pyautogui.click('emailrecaptchaclick.png')2008 sleep(1)2009 if pyautogui.locateOnScreen('captchaPASS.png') != None:2010 break20112012 # #click on solver20132014 try:2015 sleep(2)2016 if pyautogui.locateOnScreen('buster.png') != None:2017 pyautogui.click('buster.png')2018 sleep(1)2019 if pyautogui.locateOnScreen('captchaPASS.png') != None:2020 break2021 Buster_Money()2022 retry1()2023 except:2024 sleep(2)2025 if pyautogui.locateOnScreen('buster.png') != None:2026 pyautogui.click('buster.png')2027 sleep(1)2028 Buster_Money()2029 sleep(8)2030 if pyautogui.locateOnScreen('captchaPASS.png') != None:2031 break2032 retry1()2033 # #click on refresh20342035 try:20362037 if pyautogui.locateOnScreen('refresh.png') != None:2038 pyautogui.click('refresh.png')2039 sleep(1)2040 if pyautogui.locateOnScreen('captchaPASS.png') != None:2041 break2042 retry1()2043 except:2044 sleep(2)2045 if pyautogui.locateOnScreen('refresh.png') != None:2046 pyautogui.click('refresh.png')2047 sleep(1)2048 sleep(3)2049 if pyautogui.locateOnScreen('captchaPASS.png') != None:2050 break2051 retry1()20522053 # #click in recaptcha20542055 try:20562057 if pyautogui.locateOnScreen('emailrecaptchaclick.png') \2058 != None:2059 pyautogui.click('emailrecaptchaclick.png')2060 if pyautogui.locateOnScreen('captchaREDNgrok.png') \2061 != None:2062 rtry()2063 retry1()2064 try:2065 sleep(2)2066 if pyautogui.locateOnScreen('buster.png') \2067 != None:2068 pyautogui.click('buster.png')2069 sleep(1)2070 if pyautogui.locateOnScreen('captchaPASS.png') != None:2071 break2072 Buster_Money()2073 retry1()2074 except:2075 sleep(2)2076 if pyautogui.locateOnScreen('buster.png') \2077 != None:2078 pyautogui.click('buster.png')2079 sleep(1)2080 Buster_Money()2081 retry1()2082 if pyautogui.locateOnScreen('captchaPASS.png') != None:2083 break2084 except:2085 if pyautogui.locateOnScreen('captchaPASS.png') != None:2086 break20872088 # #click on solver20892090 try:20912092 if pyautogui.locateOnScreen('buster.png') != None:2093 pyautogui.click('buster.png')2094 sleep(1)2095 if pyautogui.locateOnScreen('captchaPASS.png') != None:2096 break2097 Buster_Money()2098 retry1()2099 except:2100 sleep(2)2101 if pyautogui.locateOnScreen('buster.png') != None:2102 pyautogui.click('buster.png')2103 sleep(1)2104 sleep(8)2105 Buster_Money()2106 retry1()2107 if pyautogui.locateOnScreen('captchaPASS.png') != None:2108 break21092110 # #click on refresh21112112 try:21132114 if pyautogui.locateOnScreen('refresh.png') != None:2115 pyautogui.click('refresh.png')2116 sleep(1)2117 if pyautogui.locateOnScreen('captchaPASS.png') != None:2118 break2119 retry1()2120 except:2121 sleep(2)2122 if pyautogui.locateOnScreen('refresh.png') != None:2123 pyautogui.click('refresh.png')2124 sleep(1)2125 retry1()2126 sleep(3)2127 if pyautogui.locateOnScreen('captchaPASS.png') != None:2128 break21292130 try:21312132 if pyautogui.locateOnScreen('buster.png') != None:2133 pyautogui.click('buster.png')2134 sleep(8)2135 if pyautogui.locateOnScreen('captchaREDNgrok.png') \2136 != None:2137 rtry()2138 if pyautogui.locateOnScreen('captchaPASS.png') != None:2139 break2140 Buster_Money()2141 retry1()2142 except:2143 if pyautogui.locateOnScreen('captchaPASS.png') == None:21442145 # #close chrome21462147 clear_cookies()2148 mouse.position = (1343, 14)2149 mouse.click(Button.left, 1)2150 open_chrome()2151 ChangeIp()2152 signup()2153 sleep(0.2)2154 21552156 qwiklabs()2157 minimize()2158 i = 12159 while True:2160 open_chrome()2161 clear_cookies()2162 ChangeIp()2163 signup()2164 sleep(0.2)2165 21662167 if i % 5 == 0:2168 circleci()2169 minimize()2170 else:2171 qwiklabs()2172 minimize()2173 i = i + 121742175 # #click on login21762177 if pyautogui.locateOnScreen('NgrokSignupClick.png') != None:2178 pyautogui.click('NgrokSignupClick.png')21792180 # #click on authtoken21812182 q = 02183 while pyautogui.locateOnScreen('ClickOnAuthtoken.png',2184 confidence=0.8) == None:2185 sleep(5)2186 q = q + 12187 if q == 12:2188 clear_cookies()2189 mouse.position = (1343, 14)2190 mouse.click(Button.left, 1)2191 open_chrome()2192 ChangeIp()2193 signup()2194 sleep(0.2)2195 21962197 qwiklabs()2198 minimize()2199 i = 12200 while True:2201 open_chrome()2202 clear_cookies()2203 ChangeIp()2204 signup()2205 sleep(0.2)2206 22072208 if i % 5 == 0:2209 circleci()2210 minimize()2211 else:2212 qwiklabs()2213 minimize()2214 i = i + 122152216 if pyautogui.locateOnScreen('ClickOnAuthtoken.png') != None:2217 pyautogui.click('ClickOnAuthtoken.png')2218 sleep(2)22192220 # #click and copy22212222 mouse.position = (592, 338)2223 mouse.click(Button.left, 1)2224 keyboard.press(Key.ctrl)2225 keyboard.press('a')2226 keyboard.release('a')2227 keyboard.release(Key.ctrl)2228 keyboard.press(Key.ctrl)2229 keyboard.press('c')2230 keyboard.release('c')2231 keyboard.release(Key.ctrl)2232 sleep(0.2)2233 c = pyperclip.paste()22342235 # #back to circle ci22362237 keyboard.press(Key.ctrl)2238 keyboard.press('1')2239 keyboard.release('1')2240 keyboard.release(Key.ctrl)2241 sleep(0.5)22422243 # #paste authtoken22442245 mouse.position = (657, 693)2246 mouse.click(Button.left, 2)2247 keyboard.press(Key.backspace)2248 keyboard.release(Key.backspace)2249 keyboard.type(c)22502251 # #commit and run22522253 mouse.position = (927, 353)2254 mouse.click(Button.left, 1)22552256 # #go to ngrok22572258 keyboard.press(Key.ctrl)2259 keyboard.press('9')2260 keyboard.release('9')2261 keyboard.release(Key.ctrl)2262 sleep(0.5)22632264 # #status22652266 mouse.position = (657, 693)2267 sleep(0.5)2268 mouse.click(Button.left, 1)2269 sleep(0.5)2270 keyboard.press(Key.ctrl)2271 keyboard.press('l')2272 keyboard.release('l')2273 keyboard.release(Key.ctrl)2274 sleep(0.5)2275 keyboard.type('https://dashboard.ngrok.com/endpoints/status')2276 sleep(0.5)2277 keyboard.press(Key.enter)2278 keyboard.release(Key.enter)22792280 # #wait2281 ChangeIp_On_Or_Off()2282 sleep(90)2283 keyboard.press(Key.ctrl)2284 keyboard.press('r')2285 keyboard.release('r')2286 keyboard.release(Key.ctrl)2287 sleep(9)22882289 if pyautogui.locateOnScreen('region.png') != None:2290 sleep(10)22912292 # #refresh page22932294 keyboard.press(Key.ctrl)2295 keyboard.press('r')2296 keyboard.release('r')2297 keyboard.release(Key.ctrl)2298 sleep(11)22992300 if pyautogui.locateOnScreen('region.png') != None:2301 sleep(20)23022303 # #refresh page23042305 keyboard.press(Key.ctrl)2306 keyboard.press('r')2307 keyboard.release('r')2308 keyboard.release(Key.ctrl)2309 sleep(7)23102311 if pyautogui.locateOnScreen('region.png') != None:2312 sleep(11)23132314 # #refresh page23152316 keyboard.press(Key.ctrl)2317 keyboard.press('r')2318 keyboard.release('r')2319 keyboard.release(Key.ctrl)2320 sleep(7)23212322 if pyautogui.locateOnScreen('region.png') != None:2323 sleep(15)23242325 # #refresh page23262327 keyboard.press(Key.ctrl)2328 keyboard.press('r')2329 keyboard.release('r')2330 keyboard.release(Key.ctrl)2331 sleep(7)23322333 if pyautogui.locateOnScreen('region.png') != None:2334 sleep(15)23352336 # #refresh page23372338 keyboard.press(Key.ctrl)2339 keyboard.press('r')2340 keyboard.release('r')2341 keyboard.release(Key.ctrl)2342 sleep(7)23432344 if pyautogui.locateOnScreen('region.png') != None:2345 sleep(10)23462347 # #refresh page23482349 keyboard.press(Key.ctrl)2350 keyboard.press('r')2351 keyboard.release('r')2352 keyboard.release(Key.ctrl)2353 sleep(7)23542355 if pyautogui.locateOnScreen('region.png') != None:2356 ChangeIp_On_Or_Off()2357 clear_cookies()2358 mouse.position = (1343, 14)2359 mouse.click(Button.left, 1)2360 open_chrome()2361 signup()2362 sleep(0.2)2363 23642365 qwiklabs()2366 minimize()2367 i = 12368 while True:2369 open_chrome()2370 clear_cookies()2371 ChangeIp()2372 signup()2373 sleep(0.2)2374 23752376 if i % 5 == 0:2377 circleci()2378 minimize()2379 else:2380 qwiklabs()2381 minimize()2382 i = i + 123832384 # #copy URL23852386 mouse.position = (566, 393)2387 mouse.click(Button.left, 3)2388 sleep(0.2)2389 keyboard.press(Key.ctrl)2390 keyboard.press('c')2391 keyboard.release('c')2392 keyboard.release(Key.ctrl)2393 sleep(0.1)2394 c = pyperclip.paste()2395 if 'tcp.ngrok.io' in c == False or len(c)>25 or len(c)<28:2396 mouse.position = (566, 393)2397 mouse.click(Button.left, 3)2398 sleep(0.5)2399 keyboard.press(Key.ctrl)2400 keyboard.press('c')2401 keyboard.release('c')2402 keyboard.release(Key.ctrl)2403 sleep(0.2)2404 c = pyperclip.paste()24052406 if 'tcp.ngrok.io' in c == False or len(c)<25 or len(c)>28:2407 ChangeIp_On_Or_Off()2408 clear_cookies()2409 mouse.position = (1343, 14)2410 mouse.click(Button.left, 1)2411 open_chrome()2412 ChangeIp()2413 signup()2414 sleep(0.2)2415 24162417 qwiklabs()2418 minimize()2419 i = 12420 while True:2421 open_chrome()2422 clear_cookies()2423 ChangeIp()2424 signup()2425 sleep(0.2)2426 24272428 if i % 5 == 0:2429 circleci()2430 minimize()2431 else:2432 qwiklabs()2433 minimize()2434 i = i + 12435 if 'tcp.ngrok.io' in c != False and len(c)>25 and len(c)<28:2436 # #close chrome2437 ChangeIp_On_Or_Off()2438 mouse.position = (1343, 14)2439 mouse.click(Button.left, 1)2440 2441 # #go to new window on windows2442 2443 keyboard.press(Key.cmd)2444 keyboard.press(Key.ctrl)2445 keyboard.press('d')2446 keyboard.release(Key.cmd)2447 keyboard.release(Key.ctrl)2448 keyboard.release('d')2449 sleep(1)2450 2451 # #click on search bar2452 2453 mouse.position = (72, 745)2454 mouse.click(Button.left, 1)2455 sleep(1)2456 2457 # #type remote2458 2459 keyboard.type('remote')2460 sleep(2)2461 2462 # #click on remote desktop2463 2464 mouse.position = (259, 203)2465 mouse.click(Button.left, 1)2466 sleep(1.5)2467 2468 # #click on option2469 2470 mouse.position = (501, 350)2471 mouse.click(Button.left, 1)2472 sleep(0.5)2473 2474 # #click on URL bar2475 2476 mouse.position = (659, 311)2477 mouse.click(Button.left, 1)2478 keyboard.press(Key.ctrl)2479 keyboard.press('a')2480 keyboard.release('a')2481 keyboard.release(Key.ctrl)2482 keyboard.press(Key.backspace)2483 keyboard.release(Key.backspace)2484 sleep(0.2)2485 2486 # #paste the URL2487 2488 sleep(0.2)2489 keyboard.type(c)2490 sleep(0.5)2491 2492 # #select on type bar2493 2494 mouse.position = (803, 312)2495 mouse.click(Button.left, 1)2496 sleep(0.5)2497 2498 # #30 times pageleft2499 2500 def page_left():2501 i = 02502 while i < 30:2503 keyboard.press(Key.left)2504 keyboard.release(Key.left)2505 i = i + 12506 2507 page_left()2508 sleep(0.5)2509 2510 # #6 times page right2511 2512 def page_right():2513 i = 02514 while i < 6:2515 keyboard.press(Key.right)2516 keyboard.release(Key.right)2517 i = i + 12518 2519 page_right()2520 sleep(0.6)2521 2522 # #backspace 6 times2523 2524 keyboard.press(Key.backspace)2525 keyboard.release(Key.backspace)2526 keyboard.press(Key.backspace)2527 keyboard.release(Key.backspace)2528 keyboard.press(Key.backspace)2529 keyboard.release(Key.backspace)2530 keyboard.press(Key.backspace)2531 keyboard.release(Key.backspace)2532 keyboard.press(Key.backspace)2533 keyboard.release(Key.backspace)2534 keyboard.press(Key.backspace)2535 keyboard.release(Key.backspace)2536 sleep(0.5)2537 2538 # #select on type bar2539 2540 mouse.position = (803, 312)2541 mouse.click(Button.left, 1)2542 sleep(0.5)2543 2544 # keyboard.press(Key.backspace)2545 # keyboard.release(Key.backspace)2546 # sleep(0.25)2547 # #click on USER NAME2548 2549 mouse.position = (662, 344)2550 mouse.click(Button.left, 1)2551 sleep(1)2552 keyboard.press(Key.ctrl)2553 keyboard.press('a')2554 keyboard.release('a')2555 keyboard.release(Key.ctrl)2556 keyboard.press(Key.backspace)2557 keyboard.release(Key.backspace)2558 sleep(0.2)2559 keyboard.type('Administrator')2560 2561 # #Enter2562 2563 keyboard.press(Key.enter)2564 keyboard.release(Key.enter)2565 2566 # #sleep(2)2567 2568 sleep(2)2569 2570 # #type PASS2571 2572 keyboard.type('Mvusic@123')2573 keyboard.press(Key.enter)2574 keyboard.release(Key.enter)2575 sleep(2)2576 2577 # #click on YES2578 2579 mouse.position = (742, 529)2580 mouse.click(Button.left, 1)2581 sleep(20)2582 if pyautogui.locateOnScreen('RemoteConectionCheck.png', confidence=0.8) != None:2583 pass2584 else:2585 # #click on search bar2586 2587 mouse.position = (72, 745)2588 mouse.click(Button.left, 1)2589 sleep(1)2590 2591 # #type remote2592 2593 keyboard.type('remote')2594 sleep(2)2595 2596 # #click on remote desktop2597 2598 mouse.position = (259, 203)2599 mouse.click(Button.left, 1)2600 sleep(1.5)2601 2602 # #click on option2603 2604 mouse.position = (501, 350)2605 mouse.click(Button.left, 1)2606 sleep(0.5)2607 2608 # #click on URL bar2609 2610 mouse.position = (659, 311)2611 mouse.click(Button.left, 1)2612 keyboard.press(Key.ctrl)2613 keyboard.press('a')2614 keyboard.release('a')2615 keyboard.release(Key.ctrl)2616 keyboard.press(Key.backspace)2617 keyboard.release(Key.backspace)2618 sleep(0.2)2619 2620 # #paste the URL2621 2622 sleep(0.2)2623 keyboard.type(c)2624 sleep(0.5)2625 2626 # #select on type bar2627 2628 mouse.position = (803, 312)2629 mouse.click(Button.left, 1)2630 sleep(0.5)2631 2632 # #30 times pageleft2633 2634 def page_left():2635 i = 02636 while i < 30:2637 keyboard.press(Key.left)2638 keyboard.release(Key.left)2639 i = i + 12640 2641 page_left()2642 sleep(0.5)2643 2644 # #6 times page right2645 2646 def page_right():2647 i = 02648 while i < 6:2649 keyboard.press(Key.right)2650 keyboard.release(Key.right)2651 i = i + 12652 2653 page_right()2654 sleep(0.6)2655 2656 # #backspace 6 times2657 2658 keyboard.press(Key.backspace)2659 keyboard.release(Key.backspace)2660 keyboard.press(Key.backspace)2661 keyboard.release(Key.backspace)2662 keyboard.press(Key.backspace)2663 keyboard.release(Key.backspace)2664 keyboard.press(Key.backspace)2665 keyboard.release(Key.backspace)2666 keyboard.press(Key.backspace)2667 keyboard.release(Key.backspace)2668 keyboard.press(Key.backspace)2669 keyboard.release(Key.backspace)2670 sleep(0.5)2671 2672 # #select on type bar2673 2674 mouse.position = (803, 312)2675 mouse.click(Button.left, 1)2676 sleep(0.5)2677 2678 # keyboard.press(Key.backspace)2679 # keyboard.release(Key.backspace)2680 # sleep(0.25)2681 # #click on USER NAME2682 2683 mouse.position = (662, 344)2684 mouse.click(Button.left, 1)2685 sleep(1)2686 keyboard.press(Key.ctrl)2687 keyboard.press('a')2688 keyboard.release('a')2689 keyboard.release(Key.ctrl)2690 keyboard.press(Key.backspace)2691 keyboard.release(Key.backspace)2692 sleep(0.2)2693 keyboard.type('Administrator')2694 2695 # #Enter2696 2697 keyboard.press(Key.enter)2698 keyboard.release(Key.enter)2699 2700 # #sleep(2)2701 2702 sleep(2)2703 2704 # #type PASS2705 2706 keyboard.type('Mvusic@123')2707 keyboard.press(Key.enter)2708 keyboard.release(Key.enter)2709 sleep(2)2710 2711 # #click on YES2712 2713 mouse.position = (742, 529)2714 mouse.click(Button.left, 1)2715 sleep(20)2716 if pyautogui.locateOnScreen('RemoteConectionCheck.png', confidence=0.8) != None:2717 pass2718 else:2719 2720 mouse.position = (1343, 14)2721 mouse.click(Button.left, 1)2722 open_chrome()2723 clear_cookies()2724 signup()2725 sleep(0.2)2726 2727 2728 qwiklabs()2729 minimize()2730 i = 12731 while True:2732 open_chrome()2733 clear_cookies()2734 ChangeIp()2735 signup()2736 sleep(0.2)2737 2738 2739 if i % 5 == 0:2740 circleci()2741 minimize()2742 else:2743 qwiklabs()2744 minimize()2745 i = i + 12746 2747 # #close pages2748 2749 mouse.position = (714, 421)2750 mouse.click(Button.left, 1)2751 sleep(2)2752 mouse.position = (1338, 12)2753 mouse.click(Button.left, 1)2754 sleep(2)2755 # #close pages2756 2757 mouse.position = (714, 421)2758 mouse.click(Button.left, 1)2759 sleep(2)2760 mouse.position = (1338, 12)2761 mouse.click(Button.left, 1)2762 sleep(2)2763 2764 2765def clear_cookies():2766 sleep(3)27672768 # #clear cookies27692770 pyautogui.keyDown('ctrl')2771 pyautogui.keyDown('shift')2772 pyautogui.press('del')2773 pyautogui.keyUp('ctrl')2774 pyautogui.keyUp('shift')2775 sleep(2)27762777 # #click on delet27782779 mouse.position = (873, 602)2780 mouse.click(Button.left, 1)2781 sleep(1)27822783 # #new tab27842785 keyboard.press(Key.ctrl)2786 keyboard.press('t')2787 keyboard.release('t')2788 keyboard.release(Key.ctrl)27892790 # #go to first page and close it27912792 keyboard.press(Key.ctrl)2793 keyboard.press('1')2794 keyboard.release('1')2795 keyboard.release(Key.ctrl)2796 keyboard.press(Key.ctrl)2797 keyboard.press('w')2798 keyboard.release('w')2799 keyboard.release(Key.ctrl)28002801 # #select search bar28022803 keyboard.press(Key.ctrl)2804 keyboard.press('l')2805 keyboard.release('l')2806 keyboard.release(Key.ctrl)280728082809def open_chrome():2810 sleep(7)28112812 # #go to new window on windows28132814 keyboard.press(Key.cmd)2815 keyboard.press(Key.ctrl)2816 keyboard.press('d')2817 keyboard.release(Key.cmd)2818 keyboard.release(Key.ctrl)2819 keyboard.release('d')2820 sleep(1)28212822 # # open chrome2823 # webbrowser.get("C:\Program Files\Google\Chrome\Application\chrome.exe").open_new('https://www.qwiklabs.com/users/sign_up')2824 # sleep(2)28252826 x = 642827 y = 7432828 pyautogui.moveTo(x, y, duration=0.1)2829 sleep(0.5)2830 pyautogui.click(button='left', clicks=1, interval=0.1)2831 sleep(5)2832 pyautogui.typewrite('chrome', interval=0.02)2833 sleep(4)2834 x = 3792835 y = 2122836 pyautogui.moveTo(x, y, duration=0.1)2837 sleep(0.5)2838 pyautogui.click(button='left', clicks=1, interval=0.1)2839 sleep(3)2840 pyautogui.keyDown('alt')2841 pyautogui.keyDown('space')2842 pyautogui.press('x')2843 pyautogui.keyUp('alt')2844 pyautogui.keyUp('space')2845 sleep(3)284628472848def circleci():2849 sleep(3)2850 x = 642851 y = 7432852 pyautogui.moveTo(x, y, duration=0.1)2853 sleep(0.5)2854 pyautogui.click(button='left', clicks=1, interval=0.1)2855 sleep(5)2856 pyautogui.typewrite('cmd', interval=0.02)2857 sleep(4)2858 x = 3792859 y = 2122860 pyautogui.moveTo(x, y, duration=0.1)2861 sleep(0.5)2862 pyautogui.click(button='left', clicks=1, interval=0.1)2863 sleep(3)2864 command = \2865 '''powershell -c "Invoke-WebRequest -Uri 'https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B0FBDF0EC-4DF6-4765-5C09-45598F7F4281%7D%26lang%3Den%26browser%3D2%26usagestats%3D1%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26brand%3DRXQR%26installdataindex%3Dempty/update2/installers/ChromeSetup.exe' -OutFile 'C:/Users/Administrator/Desktop/chrome.exe'" && cd /Users/Administrator/Desktop && chrome.exe && timeout 5 && pip install pywin32 && pip install keyboard && pip install pyautogui && pip install opencv-python && pip install pynput && powershell -c "Invoke-WebRequest -Uri 'https://github.com/loperkoper/image/archive/refs/heads/main.zip' -OutFile 'C:/Users/Administrator/Desktop/final.zip'" && tar -xf final.zip && cd image-main && cd final && cd circle && python circlesmart+vpn.py"'''28662867 # copying text to clipboard28682869 pyperclip.copy(command)2870 x = 7422871 y = 2712872 pyautogui.moveTo(x, y, duration=0.1)2873 pyautogui.click(button='right', clicks=1, interval=0.1)2874 sleep(0.5)2875 keyboard.press(Key.enter)2876 keyboard.release(Key.enter)287728782879def qwiklabs():2880 sleep(3)2881 x = 642882 y = 7432883 pyautogui.moveTo(x, y, duration=0.1)2884 sleep(0.5)2885 pyautogui.click(button='left', clicks=1, interval=0.1)2886 sleep(5)2887 pyautogui.typewrite('cmd', interval=0.02)2888 sleep(4)2889 x = 3792890 y = 2122891 pyautogui.moveTo(x, y, duration=0.1)2892 sleep(0.5)2893 pyautogui.click(button='left', clicks=1, interval=0.1)2894 sleep(3)2895 command2 = \2896 '''powershell -c "Invoke-WebRequest -Uri 'https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B0FBDF0EC-4DF6-4765-5C09-45598F7F4281%7D%26lang%3Den%26browser%3D2%26usagestats%3D1%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26brand%3DRXQR%26installdataindex%3Dempty/update2/installers/ChromeSetup.exe' -OutFile 'C:/Users/Administrator/Desktop/chrome.exe'" && cd /Users/Administrator/Desktop && chrome.exe && timeout 5 && pip install pywin32 && pip install keyboard && pip install pyautogui && pip install opencv-python && pip install pynput && powershell -c "Invoke-WebRequest -Uri 'https://github.com/loperkoper/image/archive/refs/heads/main.zip' -OutFile 'C:/Users/Administrator/Desktop/final.zip'" && tar -xf final.zip && cd image-main && cd final && cd circle && python "qwiklabsSmart+vpn.py"'''28972898 # copying text to clipboard28992900 pyperclip.copy(command2)2901 x = 7422902 y = 2712903 pyautogui.moveTo(x, y, duration=0.1)2904 pyautogui.click(button='right', clicks=1, interval=0.1)2905 sleep(0.5)2906 keyboard.press(Key.enter)2907 keyboard.release(Key.enter)290829092910def minimize():2911 sleep(3)2912 x = 9072913 y = 122914 pyautogui.moveTo(x, y, duration=0.1)2915 sleep(0.5)2916 pyautogui.click(button='left', clicks=1, interval=0.1)29172918def ChangeIp_On_Or_Off():2919 # #select extention29202921 mouse.position = (1279, 50)2922 mouse.click(Button.left, 1)2923 sleep(1)29242925 # #select browsec29262927 mouse.position = (1070, 196)2928 mouse.click(Button.left, 1)2929 sleep(2.5)29302931 # #stop29322933 mouse.position = (1225, 463)2934 sleep(0.2)2935 mouse.click(Button.left, 1)2936 sleep(0.6)2937 mouse.position = (219, 585)2938 mouse.click(Button.left, 1)2939 sleep(1.5)2940def ChangeIp():29412942 # #select extention29432944 mouse.position = (1279, 50)2945 mouse.click(Button.left, 1)2946 sleep(1)29472948 # #select browsec29492950 mouse.position = (1070, 196)2951 mouse.click(Button.left, 1)2952 sleep(2.5)29532954 # #stop29552956 mouse.position = (1225, 463)2957 sleep(0.2)2958 mouse.click(Button.left, 1)2959 sleep(0.6)29602961 # #start29622963 mouse.position = (1225, 463)2964 sleep(0.2)2965 mouse.click(Button.left, 1)2966 sleep(0.6)296729682969def first_change_ip():29702971 # #select extention29722973 mouse.position = (1279, 50)2974 mouse.click(Button.left, 1)2975 sleep(1)29762977 # #select browsec29782979 mouse.position = (1070, 196)2980 mouse.click(Button.left, 1)2981 sleep(2.5)29822983 # #start29842985 mouse.position = (1225, 463)2986 sleep(0.2)2987 mouse.click(Button.left, 1)2988 sleep(0.6)29892990 # #change to usa29912992 if pyautogui.locateOnScreen('changeLocationBrowsec1.png') != None:2993 pyautogui.click('changeLocationBrowsec1.png')2994 sleep(2)2995 if pyautogui.locateOnScreen('changeLocationBrowsec2.png') != None:2996 pyautogui.click('changeLocationBrowsec2.png')2997 sleep(2)2998 mouse.position = (219, 585)2999 mouse.click(Button.left, 1)3000 sleep(1.5)300130023003install_chrome()3004download_extention()3005first_change_ip()30063007signup()3008sleep(0.2)3009z = pyperclip.paste()30103011qwiklabs()3012minimize()3013i = 13014while True:3015 open_chrome()3016 clear_cookies()3017 ChangeIp()3018 signup()3019 sleep(0.2)30203021 if i % 5 == 0:3022 circleci()3023 minimize()3024 else:3025 qwiklabs()3026 minimize()
...
server.py
Source:server.py
...36 self.user = False37 if not os.path.abspath(path).startswith(serve_from):38 self.send_response(403)39 if self.user == False:40 self.clear_cookies()41 self.end_headers()42 self.wfile.write(b'Private!')43 elif self.path == '/':44 try:45 with open('index.html', 'rb') as f:46 data = f.read()47 self.send_response(200)48 if self.user == False:49 self.clear_cookies()50 self.send_header('Content-type', 'text/html')51 self.end_headers()52 self.wfile.write(data)53 except Exception:54 self.send_response(500)55 if self.user == False:56 self.clear_cookies()57 self.end_headers()58 self.wfile.write(b'Error')59 elif self.path == '/loggedin.html':60 try:61 if self.user != False:62 with open('loggedin.html', 'rb') as f:63 data = f.read()64 self.send_response(200)65 self.send_header('Content-type', 'text/html')66 self.end_headers()67 self.wfile.write(data)68 else:69 self.send_response(403)70 self.clear_cookies()71 self.end_headers()72 self.wfile.write(b'Forbidden')73 except Exception:74 self.send_response(500)75 if self.user == False:76 self.clear_cookies()77 self.end_headers()78 self.wfile.write(b'Error')79 elif self.path == '/post.json':80 try:81 self.get_posts()82 except Exception:83 self.send_response(500)84 self.end_headers()85 self.wfile.write(b'Error')86 elif os.path.isdir(path):87 try:88 self.send_response(200)89 if self.user == False:90 self.clear_cookies()91 self.send_header('Content-type', 'text/html')92 self.end_headers()93 self.wfile.write(str(os.listdir(path)).encode())94 except Exception:95 self.send_response(500)96 if self.user == False:97 self.clear_cookies()98 self.end_headers()99 self.wfile.write(b'error')100 else:101 try:102 with open(path, 'rb') as f:103 data = f.read()104 self.send_response(200)105 if self.user == False:106 self.clear_cookies()107 self.send_header('Content-type', 'text/html')108 self.end_headers()109 self.wfile.write(data)110 except Exception:111 self.send_response(500)112 if self.user == False:113 self.clear_cookies()114 self.end_headers()115 self.wfile.write(b'error')116 def do_POST(self):117 cookies = self.parse_cookies(self.headers['Cookie'])118 if cookies != None:119 if 'username' and 'sid' in cookies:120 username = cookies['username']121 cookie_sid = cookies['sid']122 con = sqlite3.connect('database.db', check_same_thread=False)123 cur = con.cursor()124 session = database.check_session(cur, cookie_sid, username)125 if session == 'SUCCESS':126 self.user = username127 else:128 self.user = False129 else:130 self.user = False131 else:132 self.user = False133 print(self.path)134 if (self.path == '/login.json'):135 self.login()136 if (self.path == '/logout.json'):137 self.logout()138 if (self.path == '/create_user.json'):139 self.create_user()140 if (self.path == '/post.json'):141 self.create_post()142 def login(self):143 content_len = int(self.headers.get('Content-Length'))144 post_body = json.loads(str(self.rfile.read(content_len), encoding='utf-8'))145 print('Request payload: ' + json.dumps(post_body))146 username = post_body['username']147 password = post_body['password']148 con = sqlite3.connect('database.db', check_same_thread=False)149 cur = con.cursor()150 login_status = database.login_user(con, cur, username, password)151 if login_status[0] == 'SUCCESS':152 sid = login_status[1]153 self.send_response(200)154 self.cookies = ['sid={}'.format(sid), 'username='+username]155 for cookie in range(0, len(self.cookies)):156 self.send_header('Set-Cookie', self.cookies[cookie] + ';max-age=3600;path=/')157 return_object = {'login': 'success'}158 print('login successful for ' + username)159 elif login_status[0] == 'FAILURE':160 return_object = {'login': 'failure'}161 self.send_response(200)162 print('login failed for ' + username)163 else:164 return_object = {'login': 'error'}165 self.send_response(500)166 print('login error for ' + username)167 self.send_header('Content-type', 'application/json')168 self.end_headers()169 self.wfile.write(bytes(str(json.dumps(return_object)), encoding='utf-8'))170 def logout(self):171 self.send_response(200)172 if self.user != False:173 con = sqlite3.connect('database.db', check_same_thread=False)174 cur = con.cursor()175 database.delete_sessions(con, cur, self.user)176 self.clear_cookies()177 self.end_headers()178 if not self.user:179 self.wfile.write(bytes(str(json.dumps({'logout': 'not_logged_in'})), encoding='utf-8'))180 else:181 self.wfile.write(bytes(str(json.dumps({'logout': 'success'})), encoding='utf-8'))182 def clear_cookies(self):183 self.cookies = ['sid=', 'username=']184 for cookie in range(0,len(self.cookies)):185 self.send_header('Set-Cookie', self.cookies[cookie] + ';max-age=0;path=/')186 def create_user(self):187 content_len = int(self.headers.get('Content-Length'))188 post_body = json.loads(str(self.rfile.read(content_len), encoding='utf-8'))189 print('Request payload: ' + json.dumps(post_body))190 username = post_body['username']191 password = post_body['password']192 con = sqlite3.connect('database.db', check_same_thread=False)193 cur = con.cursor()194 user_creation_status = database.create_user(con, cur, username, password)195 if user_creation_status == 'SUCCESS':196 return_object = {'user_creation': 'success', 'username': username}...
resource.py
Source:resource.py
1# Licensed to Cloudera, Inc. under one2# or more contributor license agreements. See the NOTICE file3# distributed with this work for additional information4# regarding copyright ownership. Cloudera, Inc. licenses this file5# to you under the Apache License, Version 2.0 (the6# "License"); you may not use this file except in compliance7# with the License. You may obtain a copy of the License at8#9# http://www.apache.org/licenses/LICENSE-2.010#11# Unless required by applicable law or agreed to in writing, software12# distributed under the License is distributed on an "AS IS" BASIS,13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14# See the License for the specific language governing permissions and15# limitations under the License.16import logging17import posixpath18import time19from desktop.lib.i18n import smart_unicode20LOG = logging.getLogger(__name__)21class Resource(object):22 """23 Encapsulates a resource, and provides actions to invoke on it.24 """25 def __init__(self, client, relpath="", urlencode=True):26 """27 @param client: A Client object.28 @param relpath: The relative path of the resource.29 @param urlencode: percent encode paths.30 """31 self._client = client32 self._path = relpath.strip('/')33 self._urlencode = urlencode34 @property35 def base_url(self):36 return self._client.base_url37 def _join_uri(self, relpath):38 if relpath is None:39 return self._path40 return self._path + posixpath.normpath('/' + relpath)41 def _format_response(self, resp):42 """43 Decide whether the body should be a json dict or string44 """45 if resp.headers.get('location') and resp.headers.get('location').startswith('http://localhost:8080/'):46 return resp.headers.get('location').split('sessions/')[1]47 if len(resp.content) != 0 and resp.headers.get('content-type') and \48 'application/json' in resp.headers.get('content-type'):49 try:50 return resp.json()51 except Exception, ex:52 self._client.logger.exception('JSON decode error: %s' % resp.content)53 raise ex54 else:55 return resp.content56 def invoke(self, method, relpath=None, params=None, data=None, headers=None, files=None, allow_redirects=False, clear_cookies=False, log_response=True):57 """58 Invoke an API method.59 @return: Raw body or JSON dictionary (if response content type is JSON).60 """61 path = self._join_uri(relpath)62 start_time = time.time()63 resp = self._client.execute(method,64 path,65 params=params,66 data=data,67 headers=headers,68 files=files,69 allow_redirects=allow_redirects,70 urlencode=self._urlencode,71 clear_cookies=clear_cookies)72 if log_response and self._client.logger.isEnabledFor(logging.DEBUG):73 self._client.logger.debug(74 "%s %s Got response%s: %s%s" % (75 method,76 smart_unicode(path, errors='ignore'),77 ' in %dms' % ((time.time() - start_time) * 1000),78 smart_unicode(resp.content[:1000], errors='replace'),79 len(resp.content) > 1000 and "..." or "")80 )81 return self._format_response(resp)82 def get(self, relpath=None, params=None, headers=None, clear_cookies=False):83 """84 Invoke the GET method on a resource.85 @param relpath: Optional. A relative path to this resource's path.86 @param params: Key-value data.87 @param clear_cookies: Optional. A flag to force any session cookies to be reset on the request.88 @return: A dictionary of the JSON result.89 """90 return self.invoke("GET", relpath, params, headers=headers, allow_redirects=True, clear_cookies=clear_cookies)91 def delete(self, relpath=None, params=None, headers=None, clear_cookies=False):92 """93 Invoke the DELETE method on a resource.94 @param relpath: Optional. A relative path to this resource's path.95 @param params: Key-value data.96 @param headers: Optional. Base set of headers.97 @param clear_cookies: Optional. A flag to force any session cookies to be reset on the request.98 @return: A dictionary of the JSON result.99 """100 return self.invoke("DELETE", relpath, params, headers=headers, clear_cookies=clear_cookies)101 def post(self, relpath=None, params=None, data=None, contenttype=None, headers=None, files=None, allow_redirects=False,102 clear_cookies=False, log_response=True):103 """104 Invoke the POST method on a resource.105 @param relpath: Optional. A relative path to this resource's path.106 @param params: Key-value data.107 @param data: Optional. Body of the request.108 @param contenttype: Optional.109 @param headers: Optional. Base set of headers.110 @param allow_redirects: Optional. Allow request to automatically resolve redirects.111 @param clear_cookies: Optional. A flag to force any session cookies to be reset on the request.112 @return: A dictionary of the JSON result.113 """114 return self.invoke("POST", relpath, params, data, headers=self._make_headers(contenttype, headers), files=files,115 allow_redirects=allow_redirects, clear_cookies=clear_cookies, log_response=log_response)116 def put(self, relpath=None, params=None, data=None, contenttype=None, allow_redirects=False, clear_cookies=False, headers=None):117 """118 Invoke the PUT method on a resource.119 @param relpath: Optional. A relative path to this resource's path.120 @param params: Key-value data.121 @param data: Optional. Body of the request.122 @param contenttype: Optional.123 @param allow_redirects: Optional. Allow request to automatically resolve redirects.124 @param clear_cookies: Optional. A flag to force any session cookies to be reset on the request.125 @return: A dictionary of the JSON result.126 """127 return self.invoke("PUT", relpath, params, data, headers=self._make_headers(contenttype, headers),128 allow_redirects=allow_redirects, clear_cookies=clear_cookies)129 def _make_headers(self, contenttype=None, headers=None):130 if headers is None:131 headers = {}132 if contenttype:133 headers.update({'Content-Type': contenttype})...
login.py
Source:login.py
...5from error import CookieError6def login():7 if config.mihoyobbs_Cookies == '':8 log.error("请填å
¥Cookies!")9 config.clear_cookies()10 raise CookieError('No cookie')11 # å¤æCookieéé¢æ¯å¦ælogin_ticket 没æçè¯ç´æ¥éäº12 if "login_ticket" in config.mihoyobbs_Cookies:13 temp_Cookies = config.mihoyobbs_Cookies.split(";")14 for i in temp_Cookies:15 if i.split("=")[0] == " login_ticket":16 config.mihoyobbs_Login_ticket = i.split("=")[1]17 break18 # è¿éè·åStuidï¼ä½æ¯å®é
æ¯å¯ä»¥ç´æ¥æ¿cookieéé¢çUid19 data = request.get(url=setting.bbs_Cookie_url.format(config.mihoyobbs_Login_ticket))20 if "æå" in data["data"]["msg"]:21 config.mihoyobbs_Stuid = str(data["data"]["cookie_info"]["account_id"])22 data = request.get(url=setting.bbs_Cookie_url2.format(config.mihoyobbs_Login_ticket, config.mihoyobbs_Stuid))23 config.mihoyobbs_Stoken = data["data"]["list"][0]["token"]24 log.info("ç»å½æåï¼")25 log.info("æ£å¨ä¿åConfigï¼")26 config.save_config()27 else:28 log.error("cookie已失æ,请éæ°ç»å½ç±³æ¸¸ç¤¾æåcookie")29 config.clear_cookies()30 raise CookieError('Cookie expires')31 else:32 log.error("cookieä¸æ²¡æ'login_ticket'å段,请éæ°ç»å½ç±³æ¸¸ç¤¾ï¼éæ°æåcookie!")33 config.clear_cookies()...
LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.
Get 100 minutes of automation test minutes FREE!!