From f841e31a80b160be50cd761b4a2e438a371d0f13 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 3 Sep 2024 22:52:56 +0200 Subject: [PATCH] web/local_authority --- web/local_authority/flag.txt | 1 + web/local_authority/secure.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 web/local_authority/flag.txt create mode 100644 web/local_authority/secure.js diff --git a/web/local_authority/flag.txt b/web/local_authority/flag.txt new file mode 100644 index 0000000..7a10296 --- /dev/null +++ b/web/local_authority/flag.txt @@ -0,0 +1 @@ +picoCTF{j5_15_7r4n5p4r3n7_05df90c8} diff --git a/web/local_authority/secure.js b/web/local_authority/secure.js new file mode 100644 index 0000000..9387ed7 --- /dev/null +++ b/web/local_authority/secure.js @@ -0,0 +1,14 @@ +// NOTE: this is included on a wrong login attempt + +function checkPassword(username, password) +{ + if( username === 'admin' && password === 'strongPassword098765' ) + { + return true; + } + else + { + return false; + } +} +