Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #open for linecounts
  2. f = open('file.ext')
  3. line_count = sum(1 for _ in f)
  4. f.close()
  5.  
  6. #re-open for process
  7. f = open('file.ext')
  8. i = 0
  9. #loop if 'i' is not equal to line_count
  10. while i != line_count:
  11. line = f.readline().replace('\n', '')
  12. lineSplit = line.split(':')
  13. userName = lineSplit[0]
  14. passWord = lineSplit[4].strip('\r').strip('\n')
  15. print("[+] Trying: "+userName+"/"+passWord)
  16. i += 1
  17. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement