George Theall <[EMAIL PROTECTED]> writes: > Is there a way to just compile nasl scripts?
sed s/compile/parse/ No. But the change would be trivial. You can patch execute_nasl_script() in libnasl/nasl/exec.c and put a call to exit() just after naslparse. I admit that it's not clean, but as NASL does not change often now, you could compile your syntax checker once. Note that this will not verify the arguments of the functions. > I'm interested in doing a syntax check but right now the only way I > know to do this involves running it against a non-existent host. That's a way, but it's slower if NASL tries to connect to it. You can solve it by refusing the outgoing connection -- with some IP filter or a reject route. e.g. "route add -host example.com reject" nasl -t example.com your_script.nasl
