Implemented SQL injection attackable service

This commit is contained in:
2023-04-20 23:17:34 +02:00
parent c234ec6806
commit aa8d4f4036
10 changed files with 213 additions and 2 deletions

16
static/css/index.css Normal file
View File

@@ -0,0 +1,16 @@
.cats {
display: flex;
}
.books {
border: 1px solid grey;
min-width: 200px;
min-height: 350px;
margin: 5px;
padding: 5px;
text-align: center;
}
.book > img {
width: 190px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
static/images/download.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
static/images/elon.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
static/images/lord_of.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

23
static/index.html Normal file
View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{{project_name}}</title>
<link rel="stylesheet" href="static/css/index.css" type="text/css">
</head>
<body>
<h1>{{project_name}}</h1>
<form method="post" a>
<label for="username">Username: </label>
<input type="text" name="username" required>
<br>
<label for="password">Password: </label>
<input type="text" name="password" required>
<br>
<input type="submit" value="login">
</form>
</body>
</html>

23
static/store.html Normal file
View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{{project_name}}</title>
<link rel="stylesheet" href="static/css/index.css" type="text/css">
</head>
<body>
<h1>{{project_name}}</h1>
<section class="cats">
{{#each books}}
<article class="cat">
<h3>{{this.name}}</h3>
<img src="{{this.image_path}}" />
<h4>Author: {{this.author}}</h4>
</article>
{{/each}}
</section>
</body>
</html>