Search

Trytohackme- 13/09/2021- How websites work



Answer the questions below

--> What term best describes the side your browser renders a website?

Client-Side



Task 2


Websites are primarily created using:

  • HTML, to build websites and define their structure

  • CSS, to make websites look pretty by adding styling options

  • JavaScript, implement complex features on pages using interactivity

<!DOCTYPE html>
<html>
    <head>
        <title>TryHackMe HTML Editor</title>
    </head>
    <body>
        <h1>Cat Website!</h1>
        <p>See images of all my cats!</p>
        <img src='img/cat-1.jpg'>
        <img src='img/cat-2.'>
        <!-- Add dog image here -->
    </body>
</html>

--> One of the images on the cat website is broken - fix it, and the image will reveal the hidden text answer!

HTMLHERO --> Add a dog image to the page by adding another img tag (<img>) on line 11. The dog image location is img/dog-1.png DOGHTML


Task 3 JavaScript

Answer the questions below

--> Click the "View Site" button on this task. On the right-hand side, add JavaScript that changes the demo element's content to "Hack the Planet"

JSISFUN --> Add the button HTML from this task that changes the element's text to "Button Clicked" on the editor on the right, update the code by clicking the "Render HTML+JS Code" button and then click the button.

No answer needed

Task 4 Sensitive Data Exposure


Answer the questions below

-->View the website on this task. What is the password hidden in the source code?


testpasswd




Task 5 HTML Injection


Task 5 HTML Injection


Answer the questions below


--> View the website on this task and inject HTML so that a malicious link to http://hacker.com is shown.

HTML_INJ3CTI0N

<a href="http://hacker.com/">Visit hacker.com!</a>


76 views0 comments