< Commands Execution | Re-using Queries and Tasks (Using Repositories) >

Scripts and Samples

We have provided several sample scripts that either serve as a wrapper around another tool thta does not output XML or perform some useful task and output XML on their own. In addition to that we also ship a simple perl module that can be used to generate MagicTree XML, should you want to write some scripts of your own.

We call these things "snippets', and they are located in "snippets" directory under mtdir.

perl snippets/bannergrabber.pl < $in > $out.xml

medusa -h $host -U usernames.txt -P passwords.txt -M telnet | perl \ snippets/medusawrapper.pl > $out.xml

perl snippets/resolver.pl -i $in -o $out.xml

< Commands Execution | Re-using Queries and Tasks (Using Repositories) >