jarrodhroberson
2/14/2014 - 3:45 AM

JSAP Example Configuration File

JSAP Example Configuration File

<jsap>
  <parameters>
    <switch>
      <id>help</id>
      <shortFlag>h</shortFlag>
      <longFlag>help</longFlag>
      <help>Display this help</help>
   </switch>
   <flaggedOption>
     <id>host</id>
     <stringParser>
       <classname>StringStringParser</classname>
     </stringParser>
     <required>true</required>
     <shortFlag>h</shortFlag>
     <longFlag>host</longFlag>
     <help>Server to use to scan for open ports</help>
   </flaggedOption>
   <unflaggedOption>
      <id>ports</id>
      <stringParser>
        <classname>IntegerStringParser</classname>
      </stringParser>
      <greedy>true</greedy>
      <list>true</list>
      <listSeparator>,</listSeparator>
      <help>List of ports to scan on the server</help>
    </unflaggedOption>
  </parameters>
</jsap>