Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib
- import urllib2
- url = 'http://www.someserver.com/cgi-bin/register.cgi'
- values = {'name' : 'Michael Foord',
- 'location' : 'Northampton',
- 'language' : 'Python' }
- data = urllib.urlencode(values)
- req = urllib2.Request(url, data)
- response = urllib2.urlopen(req)
- the_page = response.read()
- curl -iX POST \
- -H "Content-Type: application/x-www-form-urlencoded" \
- -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" \
- -d "username=admin&password=password&submit=submit" \
- --cookie-jar ./cookies \
- https://dn.apl3b.com/login/post
- curl -iX GET \
- -b ./cookies \
- https://dn.apl3b.com
- https://pk.apl3b.com/
- curl -iX POST \
- -H "Content-Type: application/x-www-form-urlencoded" \
- -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" \
- -d "username=admin&password=password&submit=submit" \
- --cookie-jar ./cookies \
- --cookie ./cookies \
- https://pk.apl3b.com/login
- curl -iX GET \
- -b ./cookies \
- https://pk.apl3b.com
- ssh \
- -o UserKnownHostsFile="/dev/null" \
- -o PreferredAuthentications=password \
- -o PubkeyAuthentication=no \
- -o StrictHostKeyChecking=no \
- admin@pk.apl3b.com
- import base64
- import pickle
- s = 'gANjX19tYWluX18KVXNlcgpxACmBcQF9cQJYBAAAAG5hbWVxA1gFAAAAYWRtaW5xBHNiLg=='
- sd = base64.decodebytes(s.encode())
- class User:
- def __init__(self):
- pass
- u = pickle.loads(sd)
- test = User()
- test.name = "IsThisIt?"
- base64.encodebytes(pickle.dumps(test))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement