Advertisement
Guest User

codigo.py

a guest
Nov 13th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/usr/bin/python3
  2. import base64
  3. import textwrap
  4.  
  5. fw=open('encoded.txt','w')
  6.  
  7. with open('/usr/share/wordlists/rockyou.txt', 'r', encoding='utf-8') as f:
  8. for linea in f:
  9. password=str('admin:'+linea)
  10. b64 = base64.b64encode(password.encode('utf-8'))
  11. s64=str(b64, "utf-8")
  12. fw.write(s64)
  13. fw.write('\n')
  14.  
  15. fw.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement