SSImpScript
SSImpScript is the XML based scripting platform which makes SSImp do its stuff. The general form of an SSImp document is as follows:
- XML DTD
- Preprocessing directives
- Request directives (ordered chronologically)
- Output directive
XML DTD
All SSImpScript files should begin with:
<?xml version="1.0" encoding="utf-8" ?>
Preprocessing directives
Request directives
Output directives
Example script
This is a script that will reverse an md5 hash using tmto.org.
<?xml version="1.0" encoding="utf-8" ?>
<modules>
<action name="md5lookup">
<requires type="querystring" name="hash" storein="hash" />
<request url="http://www.tmto.org/?category=main&page=search_md5" type="get">
<storevariable name="token" type="regex" pattern="input type="hidden" name="value" value="([^"]+)"" group="1" />
</request>
<request url="http://www.tmto.org/?category=main&page=search_md5" type="post">
<postdata value="hash=[VAR:hash]&search=on&value=[VAR:token]" />
<storevariable name="hashoutput" type="regex" pattern="[VAR:hash]\s\-\s(.*?)\s" group="1"/>
<setcookie type="persist" name="cookie"/>
</request>
<output>
[VAR:hash] = "[VAR:token]".
</output>
</action>
</modules>