Update TEMPLATE.md

patch-1
Mr-Un1k0d3r 2016-11-11 19:28:48 -05:00 committed by GitHub
parent f9e111244c
commit 49ab11f5bf
1 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,9 @@
##Want to write your own template? ##Want to write your own template?
#Variables #Variables
At the moment the engine support the following keyword `"var", "func", "data", "cond", "int", "[INT]", "[SMALLINT]"`. At the moment the engine support the following keyword `"var", "func", "data", "cond", "int"`
The engine also support following variables `"[int]", "[smallint]"`.
This mean that everytime one of these keyword is found it will be replace with random value. This mean that everytime one of these keyword is found it will be replace with random value.
@ -9,7 +11,7 @@ This mean that everytime one of these keyword is found it will be replace with r
Function func1(var1 As String) As String Function func1(var1 As String) As String
Dim var2 As String Dim var2 As String
Dim int1 As Integer Dim int1 As Integer
int1 = [SMALLINT] int1 = [smallint1]
If (var2 = var1) Then If (var2 = var1) Then
func1 = "cond1" func1 = "cond1"
End If End If
@ -29,6 +31,11 @@ Function groJeU(JToaRdHxMcE0 As String) As String
End Function End Function
``` ```
#Parsing instructions
To tell the parser to encode a string use the following pattern `{[your data]}`. The string will be encoded using the offset defined by `encodingoffset` in the JSON config file.
If you are using keyword that are not supported by the parser add the following line `[use:varname]` at the beginning of your VBA code.
#User defined variables #User defined variables
Want to add specific variable like a URL. Simply define it in the template like this `[URL]` Want to add specific variable like a URL. Simply define it in the template like this `[URL]`
@ -36,7 +43,7 @@ Want to add specific variable like a URL. Simply define it in the template like
Function func1(var1 As String) As String Function func1(var1 As String) As String
Dim var2 As String Dim var2 As String
Dim int1 As String Dim int1 As String
int1 = [SMALLINT] int1 = [smallint1]
var2 = "[URL]" var2 = "[URL]"
If (var2 = var1) Then If (var2 = var1) Then
func1 = "cond1" func1 = "cond1"