Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

error global symbol #3

Open
mautanya opened this issue Nov 23, 2018 · 1 comment
Open

error global symbol #3

mautanya opened this issue Nov 23, 2018 · 1 comment

Comments

@mautanya
Copy link

hello,
im new in naxsi, and i will try lasagna to make whitelist rules.
im using perl-5 version 26, after running cat error.log | lasagna -o naxsi_testing.rules
i got error like this

root@kali:~/Download#cat error.log | lasagna -o testing.rules
syntax error at /usr/local/bin/lasagna line 108, near "$mz ~"
Global symbol "$zone" requires explicit package name at /usr/local/bin/lasagna line 111.
Global symbol "$zone" requires explicit package name at /usr/local/bin/lasagna line 114.
syntax error at /usr/local/bin/lasagna line 115, near "} else"
Global symbol "$mz" requires explicit package name at /usr/local/bin/lasagna line 116.
syntax error at /usr/local/bin/lasagna line 117, near "}"
Global symbol "$mz" requires explicit package name at /usr/local/bin/lasagna line 119.
Global symbol "$mz" requires explicit package name at /usr/local/bin/lasagna line 120.
Global symbol "$exceptions" requires explicit package name at /usr/local/bin/lasagna line 120.
Global symbol "$n" requires explicit package name at /usr/local/bin/lasagna line 120.
syntax error at /usr/local/bin/lasagna line 121, near "}"
/usr/local/bin/lasagna has too many errors.

and i try to solve this error, but i can't find the references for this error,
so, what should i do to fix this error??

@Estella
Copy link

Estella commented Feb 25, 2019

on line 108 change:

if ($mz ~= /\$URL_X/) { 
to: 
if ($mz =~ /\$URL_X/) {

This will fix the errors above =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants