- Prepare a text file that contains a list of filenames (you could use the listing of an actual directory)
- Create a script that:
- Prompts the user for the file
- Reads through the file and print all file that are Windows executables
- Windows executable files always end in ".exe"
- Be careful to avoid false positives
- example.exe.pdf is not executable
- example.exec is not executable
Notes: - I will use my own file list for testing ;)
|
|