Jump to content

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.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...