Jump to content

Archived

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

ootuoyetahi

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.

https://hakshop.com/blogs/news/what-is-the-best-security-awareness-payload-for-the-rubber-ducky

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

Quote

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.

 

Thanks!

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...