Advertisement
Guest User

batatas

a guest
Feb 22nd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. import urllib
  2. import urllib2
  3.  
  4. url = 'http://www.someserver.com/cgi-bin/register.cgi'
  5. values = {'name' : 'Michael Foord',
  6. 'location' : 'Northampton',
  7. 'language' : 'Python' }
  8.  
  9. data = urllib.urlencode(values)
  10. req = urllib2.Request(url, data)
  11. response = urllib2.urlopen(req)
  12. the_page = response.read()
  13.  
  14.  
  15. curl -iX POST \
  16. -H "Content-Type: application/x-www-form-urlencoded" \
  17. -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" \
  18. -d "username=admin&password=password&submit=submit" \
  19. --cookie-jar ./cookies \
  20. https://dn.apl3b.com/login/post
  21.  
  22. curl -iX GET \
  23. -b ./cookies \
  24. https://dn.apl3b.com
  25.  
  26.  
  27. https://pk.apl3b.com/
  28.  
  29.  
  30. curl -iX POST \
  31. -H "Content-Type: application/x-www-form-urlencoded" \
  32. -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" \
  33. -d "username=admin&password=password&submit=submit" \
  34. --cookie-jar ./cookies \
  35. --cookie ./cookies \
  36. https://pk.apl3b.com/login
  37.  
  38. curl -iX GET \
  39. -b ./cookies \
  40. https://pk.apl3b.com
  41.  
  42.  
  43.  
  44. ssh \
  45. -o UserKnownHostsFile="/dev/null" \
  46. -o PreferredAuthentications=password \
  47. -o PubkeyAuthentication=no \
  48. -o StrictHostKeyChecking=no \
  49. admin@pk.apl3b.com
  50.  
  51.  
  52. import base64
  53. import pickle
  54.  
  55. s = 'gANjX19tYWluX18KVXNlcgpxACmBcQF9cQJYBAAAAG5hbWVxA1gFAAAAYWRtaW5xBHNiLg=='
  56.  
  57. sd = base64.decodebytes(s.encode())
  58. class User:
  59. def __init__(self):
  60. pass
  61.  
  62.  
  63. u = pickle.loads(sd)
  64.  
  65. test = User()
  66. test.name = "IsThisIt?"
  67. base64.encodebytes(pickle.dumps(test))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement