diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5034a39 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +frames.html +.vscode \ No newline at end of file diff --git a/README.md b/README.md index 4b71beb..c183a1f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # phpMyAdminHoneypot +A static phpMyAdmin login page with faux error messages. + +# OPTIONAL: Loading arbitrary hidden HTML + +Create a frame.html file at the root of the project directory with the desired content. \ No newline at end of file diff --git a/dot.gif b/dot.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/dot.gif differ diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..fb156b2 Binary files /dev/null and b/favicon.ico differ diff --git a/frame.html b/frame.html new file mode 100644 index 0000000..e69de29 diff --git a/functions.js b/functions.js new file mode 100644 index 0000000..388105c --- /dev/null +++ b/functions.js @@ -0,0 +1,20 @@ +document.addEventListener('DOMContentLoaded', function () { + checkErrors(); +}, false); + +function checkErrors() { + if (isFormSubmitted()) { + showErrors(); + } +} + +function isFormSubmitted() { + return window.location.href[window.location.href.length - 1] == "#"; +} + +function showErrors() { + x = document.getElementsByClassName('error'); + for (let i = 0; i < x.length; i++) { + x[i].style.display = 'block'; + } +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..a409354 --- /dev/null +++ b/index.html @@ -0,0 +1,90 @@ + + + +
+ + + + + + + + +