Skip to content

Commit

Permalink
Update LuaScript.md
Browse files Browse the repository at this point in the history
  • Loading branch information
enkomio authored Jan 3, 2019
1 parent 7b74bda commit 206271c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Doc/LuaScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,13 @@ The parameters meaning are:
* **ApplicationName** The application name that is identified. This name will be displayed in the result report
* **TargetLanguage** The language that was used to develop the application. For Wordpress is PHP

WIP
## Global vars
In order to report to Taipan the Application that was identified and its version, the script must set a couple of global vars that will be later used by the Taipan scanner. Each script must return a _Boolean_ result after its execution. The result meaning is:

* True: if the script was able to identify a given application version
* False: otherwise

If the script is able to identify the application, the version must be placed in a global vaiables named *appVersion*.

The format of this variable must be compliant to the <a href="https://semver.org/">Semantic Version</a> standard. For a sample of LUA script take a look at the <a href="https://github.com/enkomio/Taipan/blob/master/Src/ES.Taipan.Fingerprinter/Lua/Php/Joomla/joomla.lua">Joomla fingeprintg script</a>.

0 comments on commit 206271c

Please sign in to comment.