Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import requests
- import requests_ftp
- requests_ftp.monkey.patch_session()
- from datetime import datetime
- global term
- s= requests.Session()
- resp = s.list('ftp://127.0.0.1/',auth-('Lukasa', 'notmypass'))
- resp.status_code'226'
- print resp.content
- ...snip...
- resp =s.stor('ftp://127.0.0.1/test.txt',auth=(Lukasa','notmypass'),
- open ('report.txt','tb')})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement