Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import os.path
  2.  
  3. try:
  4. wordlist = open("/usr/share/wordlists/rockyou.txt", encoding="ISO-8859-1")
  5. except IOError:
  6. print("wordlist not found")
  7.  
  8.  
  9. for line in wordlist.readlines():
  10. name = "/home/gino/" + line
  11. try:
  12. if os.path.isfile(name) or os.path.isfile("." + name) or os.path.isfile(name + ".txt") or os.path.isfile(name + ".sh"):
  13. print("Found: " + name)
  14. except:
  15. continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement