function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
saleforce beesaleforce bee 

Scan .txt file content in apex and find malicious(exe,dll,jar war,JS..ect) content if any

My user case is to read/scan .txt file content in apex and thrown an error if it is not human readable format/virus content/executable content(.exe,.jar,war,javascript..etc contents).

Normally we can save .exe file as .txt file , if we open the same file it has exe content.