The Script Editor allows users with malware and basic software development skills to create complex malware detection patterns using our OpenSBI syntax and the Pascal language. A simple script that you could implement using a simple .sbi file might look like this:


Now imagine you want some user input or custom calculation, because malware is individual to your system.

var sName, sFilename: String;
   InputQuery('Username', 'Please enter', sName);
   sFilename := 'C:\Users\' + sName + '\test.txt';
   sbiFile('test', sFilename, 'filesize=10');
   ShowMessage('Did look for ' + sFilename);

This demonstrates interaction with the user. In reality, you could of course just use the proper path template for scanning all users directories, see the OpenSBI wiki for details. Also, the use of scripting will be more in complex calculations and conditions than in user interaction. You can use Scripting to test your own detection rules or to get rid of unwanted files.


Click on image to enlarge

(Visited 1,659 times, 1 visits today)