Advertisement
Guest User

Untitled

a guest
Aug 21st, 2014
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.96 KB | None | 0 0
  1. #!/usr/bin/env python                                                                                                                                
  2. # -*- coding: utf-8 -*-                                                                                                                              
  3. __date__= ' 8月 21, 2014 '                                                                                                                          
  4.                                                                                                                                                      
  5. """                                                                                                                                                  
  6. curl  http://taipeihope.tw/godblessKS/2014-08-17-09-06-13/ -H                                                                                        
  7. "User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like                                                                          
  8. Gecko) Chrome/34.0.1847.116 Safari/537.36" -d                                                                                                        
  9. 'af75b20c25d575d18ad4165d5f86296d=1&a74cbf62e1e8e74dd8fc7ba78b95e568=&return=aHR0cDovL3RhaXBlaWhvcGUudHcvZ29kYmxlc3NLUy8=&task=user.login&option=com_users&password=a&username=b'                                                                                                                        
  10. -v --cookie "aebdce6394315438713c724facb47668=tvt9d9mv84ac33dd900svshhh2"                                                                            
  11. """                                                                                                                                                  
  12.                                                                                                                                                      
  13. # Access: http://taipeihope.tw/logs/admintools_breaches.log                                                                                          
  14.                                                                                                                                                      
  15. import requests                                                                                                                                      
  16.                                                                                                                                                      
  17. host = "http://taipeihope.tw/godblessKS/2014-08-17-09-06-13/"                                                                                        
  18. header = {                                                                                                                                          
  19.     'User-Agent':"User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36"              
  20.     }                                                                                                                                                
  21. cookie = {'aebdce6394315438713c724facb47668':'tvt9d9mv84ac33dd900svshhh2'}                                                                          
  22.                                                                                                                                                      
  23. username = "G_G_in_in_der"                                                                                                                          
  24.                                                                                                                                                      
  25. data = {'username':username,                                                                                                                        
  26.         'password':"XXD",                                                                                                                            
  27.         "af75b20c25d575d18ad4165d5f86296d":'1',                                                                                                      
  28.         "return":"aHR0cDovL3RhaXBlaWhvcGUudHcvZ29kYmxlc3NLUy8=",                                                                                    
  29.         "task":'user.login',                                                                                                                        
  30.         'option':"com_users"                                                                                                                        
  31.         }                                                                                                                                            
  32.                                                                                                                                                      
  33. res = requests.post(host, data=data, cookies=cookie, headers=header)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement