File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ import (
1313)
1414
1515var (
16- config log4shell.Config
17- certFile string
18- keyFile string
19- rawStr string
20- noToken bool
21- dollar bool
16+ config log4shell.Config
17+ certFile string
18+ keyFile string
19+ rawStr string
20+ noToken bool
21+ addDollar bool
2222)
2323
2424func init () {
@@ -37,7 +37,7 @@ func init() {
3737 flag .StringVar (& keyFile , "tls-key" , "key.pem" , "tls private key file path" )
3838 flag .StringVar (& rawStr , "obf" , "" , "obfuscate malicious(payload) string" )
3939 flag .BoolVar (& noToken , "no-token" , false , "not add random token when use obfuscate" )
40- flag .BoolVar (& dollar , "with -dollar" , false , "add one dollar to the obfuscated string" )
40+ flag .BoolVar (& addDollar , "add -dollar" , false , "add one dollar to the obfuscated string" )
4141 flag .Parse ()
4242}
4343
@@ -104,7 +104,7 @@ func obfuscate() {
104104 obfuscated string
105105 rawWithToken string
106106 )
107- if dollar {
107+ if addDollar {
108108 obfuscated , rawWithToken = log4shell .ObfuscateWithDollar (rawStr , ! noToken )
109109 } else {
110110 obfuscated , rawWithToken = log4shell .Obfuscate (rawStr , ! noToken )
You can’t perform that action at this time.
0 commit comments