Jump to content


This topic is now archived and is closed to further replies.


Security Awareness Script PHP Error

Recommended Posts

So I know this is not a Ducky issue but I am hoping I can get a little help from some of the more experienced programmers here.

I am trying to get the Security Awareness PHP code working Darren and team demonstrated at AUScert last year.


The line I am having issue with:

$data = json_encode(array("headers" => getallheaders(), "server" => $_SERVER, "request" => $_REQUEST));

I am getting the following error in the /var/log/apache2/error.log


PHP Parse error: syntax error, unexpected '=', expecting ')' in <path to html file>

I am assuming the "=&amp;amp;gt;" are the strings with the issues, but I cant quite figure out how to resolve it.



Share this post

Link to post
Share on other sites

Arr("Stuff", "more stuff", "and more")


Get sublime text editor and set php syntax hilighting

Share this post

Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...