diff --git a/content/posts/adventofctf/challenge_3.md b/content/posts/adventofctf/challenge_3.md index ef136de..b88356d 100644 --- a/content/posts/adventofctf/challenge_3.md +++ b/content/posts/adventofctf/challenge_3.md @@ -33,24 +33,25 @@ When opening the website we're provided with a login form. If we fill in the for Let's open the source and take a look at the form. Here we can see that when the form is submitted, a javascript function called `checkPass()` is called. ```html -
``` To find this funtion, enter `checkPass` in the devtools console and click on the three dots at the bottom of the output. ```js -function checkPass() -{ - var username = document.getElementById('username').value; - var password = document.getElementById('password').value; - - var novi = '-NOVI'; - - if (password == btoa(username + novi)) { - window.setTimeout(function() { - window.location.assign('inde' + 'x.php?username='+ username +'&password=' + password); - }, 500); - } +function checkPass() { + var username = document.getElementById("username").value; + var password = document.getElementById("password").value; + + var novi = "-NOVI"; + + if (password == btoa(username + novi)) { + window.setTimeout(function () { + window.location.assign( + "inde" + "x.php?username=" + username + "&password=" + password + ); + }, 500); + } } ``` diff --git a/themes/maik-blog/assets/scss/_main.scss b/themes/maik-blog/assets/scss/_main.scss index 7cc4f98..0b97dea 100644 --- a/themes/maik-blog/assets/scss/_main.scss +++ b/themes/maik-blog/assets/scss/_main.scss @@ -90,6 +90,8 @@ a { img { display: block; + width: auto; + height: auto; max-width: 100%; &.left { diff --git a/themes/maik-blog/layouts/_default/list.html b/themes/maik-blog/layouts/_default/list.html index 958d7b0..2e160a8 100644 --- a/themes/maik-blog/layouts/_default/list.html +++ b/themes/maik-blog/layouts/_default/list.html @@ -37,11 +37,14 @@ {{ if .Params.Cover }}