Created
December 22, 2016 15:04
-
-
Save packetchef/a262a3b36f0bcce3f03c98b53501842e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
eicar_file="eicar_output.txt" | |
eicar_string='\x58\x35\x4F\x21\x50\x25\x40\x41\x50\x5B\x34\x5C\x50\x5A\x58\x35\x34\x28\x50\x5E\x29\x37\x43\x43\x29\x37\x7D\x24\x45\x49\x43\x41\x52\x2D\x53\x54\x41\x4E\x44\x41\x52\x44\x2D\x41\x4E\x54\x49\x56\x49\x52\x55\x53\x2D\x54\x45\x53\x54\x2D\x46\x49\x4C\x45\x21\x24\x48\x2B\x48\x2A' | |
with open(os.path.abspath(eicar_file), 'wb') as file: | |
file.write(eicar_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment