Ttmstatic script
The ttmstatic script is an example of a Python script that demonstrates how, using static analysis, to check a file for common indicators of risky software. The script sends the results to the console as text or JSON. To use ttmstatic, the samplescored service script must be running.
|
Argument |
Description |
Valid values |
|---|---|---|
|
-p PORT |
This is an optional port number that the samplescored service is listening to. |
1024 to 65535 |
|
-j |
This argument outputs the results in JSON format rather than the default text. |
— |
|
FILENAME |
This is the file name, including path if necessary, of the file to be explained. |
A valid file name with read access |
The following is an example of the ttmstatic command:
$ ttmstatic -j badfile.exe
The ttmstatic command can analyze both files and archives using the same command.