JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    	<h1>
			Actual Attacks
		</h1>

    <br>
    <p>Now that we have discussed how attackers scan a target system, let's look at a few attacks that are commonly used. Obviously this won't be an exhaustive list, but it will provide you some insight into the attack methodologies used. In Chapter 4 we discussed denial of service attacks and some tools used to cause these attacks. In this section we will look at other sorts of attacks and the techniques and tools used to make them happen.</p>
    <br>
    	<h1>
			SQL Script Injection
		</h1>

    <br>
    <p>This may be the most popular attack on websites. In recent years, more websites have taken steps to ameliorate the dangers of this attack, but my informal surveys still find about one-third of websites susceptible.This attack is based on passing structured query language commands to a web application and getting the website to execute them.</p>
    <br>
    <p>The way the most basic SQL injection works is this. Many websites/applications have a page where users enter their username and password. That username and password will have to be checked against some database to see if they are valid. Regardless of the type of database (Oracle, SQL Server, MySQL, etc.), all databases speak Structured Query Language (SQL). SQL looks and functions a great deal like English. For example, to check a username and password you might want to query the database and see if there is any entry in the users table that matches that username and password that was entered. If there is, then you have a match. The SQL statement might look something like this:</p>
    <br>
    <p>'SELECT * FROM tblUsers WHERE USERNAME = 'jdoe' AND PASSWORD = 'letmein'</p>
    <br>
    <p>The problem with this, while it is valid SQL, is that we have hard coded the username and password. For a real website we would have to take whatever the user entered into the username field and password field and check that. This can be easily done (regardless of...