My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
SSImpScript  
An overview of SSImpScript and what it can do.
Featured, Phase-Implementation
Updated Feb 9, 2008 by mhinks@gmail.com

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

  • output

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&amp;page=search_md5" type="get">
      <storevariable name="token" type="regex" pattern="input type=&quot;hidden&quot; name=&quot;value&quot; value=&quot;([^&quot;]+)&quot;" group="1" />
    </request>
    <request url="http://www.tmto.org/?category=main&amp;page=search_md5" type="post">
      <postdata value="hash=[VAR:hash]&amp;search=on&amp;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] = &quot;[VAR:token]&quot;.
  </output>
  </action>
</modules>

Sign in to add a comment
Powered by Google Project Hosting