Guest User

Untitled

a guest
May 21st, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. small_file = open('netscan.txt','r')
  2. long_file = open('AppleMAC.lst','r')
  3. output_file = open('AppleTargets.txt','a')
  4.  
  5. small_lines = small_file.readlines()
  6. small_lines_cleaned = [line.lower() for line in small_lines]
  7. long_lines = long_file.readlines()
  8. long_lines_cleaned = [line.lower() for line in long_lines]
  9.  
  10. print "long: " + str(long_lines_cleaned)
  11. print "short: " + str(small_lines_cleaned)
  12.  
  13. for line in small_lines_cleaned:
  14. if line in long_lines_cleaned:
  15. print "Match: " + line
  16.  
  17. small_file.close()
  18. long_file.close()
Add Comment
Please, Sign In to add comment