4 ms·
but it only used x86 instructions that were also ASCII characters That was a somewhat common approach back then. It's hard to find references to that technique
by userbinator 6y ago
but it only used x86 instructions that were also ASCII characters
That was a somewhat common approach back then. It's hard to find references to that technique now, but here's something I did find:
https://news.ycombinator.com/item?id=16312562 https://news.ycombinator.com/item?id=16312562
- zwegner 6y agoThere's also this compiler (with accompanying paper/video), that compiles C89 to x86 with the output executable restricted even further, to only printable ASCII bytes: http://tom7.org/abc/ http://tom7.org/abc/
- saagarjha 6y agoThis is still quite useful when working on constrained shellcode, specifically the kind of shellcode you'd enter through a text input field.
- throwaway2048 6y agoYou can even do one better, you can construct shellcode out of valid english sentences. http://www.cs.jhu.edu/~sam/ccs243-mason.pdf http://www.cs.jhu.edu/~sam/ccs243-mason.pdf Since COM files are basically just raw binary code without headers or metadata, it should be easy to adapt the technique to make valid english language COM files.
- GuB-42 6y agoAnother common one is the EICAR anti-virus test file. X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* It is a com executable that prints EICAR-STANDARD-ANTIVIRUS-TEST-FILE! It recognized by most virus scanners.
- maartenh 6y agoOh, cool! I thought this file was just prefixed with some random garbage. Unrelated: I used this to verify that my daily scheduled full scan of my Linux laptop works. This is required by compliance at $WORK. It reports found viruses via the i3-nagbar.
- exikyut 6y agoCool. How many viruses has it picked up? (Presumably ClamAV?)
- maartenh 6y agoYes, used ClamAV. None besides this example file. I use this laptop for $WORK and web browsing, and my warez times are behind me now that the software I want to run is typically open source, and the content I consume can be bought.
- saagarjha 6y agoLinux has antivirus software written for it? TIL.
- GuB-42 6y agoClamAV is the best known. Usually, linux antivirus software is not designed to protect the machine itself, instead it is more commonly used by mail and file servers to protect windows clients.