web/includes

This commit is contained in:
Oystein Kristoffer Tveit 2024-09-05 18:49:34 +02:00
parent 8228f24185
commit 18e3bf6d8f
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
4 changed files with 43 additions and 0 deletions

4
web/includes/flag.txt Normal file
View File

@ -0,0 +1,4 @@
# First part from css
# second part from javascript
picoCTF{1nclu51v17y_1of2_f7w_2of2_df589022}

25
web/includes/index.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>On Includes</title>
</head>
<body>
<script src="script.js"></script>
<h1>On Includes</h1>
<p>Many programming languages and other computer files have a directive,
often called include (sometimes copy or import), that causes the
contents of a second file to be inserted into the original file. These
included files are called copybooks or header files. They are often used
to define the physical layout of program data, pieces of procedural code
and/or forward declarations while promoting encapsulation and the reuse
of code.</p>
<br>
<p> Source: Wikipedia on Include directive </p>
<button type="button" onclick="greetings();">Say hello</button>
</body>
</html>

9
web/includes/script.js Normal file
View File

@ -0,0 +1,9 @@
function greetings()
{
alert("This code is in a separate file!");
}
// f7w_2of2_df589022}

5
web/includes/style.css Normal file
View File

@ -0,0 +1,5 @@
body {
background-color: lightblue;
}
/* picoCTF{1nclu51v17y_1of2_ */