add: SSI for header and footer of pages

This commit is contained in:
2024-04-22 11:53:32 +02:00
parent 3a89f30a76
commit 027f246110
7 changed files with 41 additions and 119 deletions

View File

@@ -1,23 +1,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <!--#include virtual="pages/header.html" -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>~Blog of a French coder~</title>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body> <body>
<div class="header">
<a href="/">
<a href="./index.html"><img alt="Spike" src="images/spike.jpg" id="spike"></a>
</a>
<div class="menu">
<a> </a>
<a href="pages/blog.html"> the blog</a>
<a href="//github.com/ALittlePatate">github</a>
<a href="pgp/key.txt">pgp key</a>
</div>
</div>
<p>Hey you, thanks for passing by, let me introduce myself. I'm a French C/C++/Python/ASM coder who is interested in reverse engineering, Eurobeat music and 90's looking websites.</p> <p>Hey you, thanks for passing by, let me introduce myself. I'm a French C/C++/Python/ASM coder who is interested in reverse engineering, Eurobeat music and 90's looking websites.</p>
<p>I don't know how you found this website but be free to check <a href="pages/blog.html">my blog</a> where i post random stuff.</p> <p>I don't know how you found this website but be free to check <a href="pages/blog.html">my blog</a> where i post random stuff.</p>
@@ -41,12 +24,6 @@
<li><a href="//github.com/ALittlePatate/taxidriver">TaxiDriver</a> - R/W kernel module for Linux (5.x - 6.x)</li> <li><a href="//github.com/ALittlePatate/taxidriver">TaxiDriver</a> - R/W kernel module for Linux (5.x - 6.x)</li>
</ul> </ul>
<!--#include virtual="pages/footer.html" -->
<footer id="foot">
<a href="//gnu.org"><img alt="GNU/Linux" src="images/footer/gnu_linux.png" /></a>
<img alt="" src="images/footer/internet-privacy.gif" />
<a href="//torproject.org"><img alt="Tor" src="images/footer/tor.gif" /></a>
<a href="."><img alt="patate.dev" src="images/footer/patate_dev.png" /></a>
</footer>
</body> </body>
</html> </html>

View File

@@ -1,23 +1,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <!--#include virtual="header.html" -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>~Blog of a French coder~</title>
<link rel="stylesheet" type="text/css" href="../css/styles.css"/>
</head>
<body> <body>
<div class="header">
<a href="/">
<a href="../index.html"><img alt="Spike" src="../images/spike.jpg" id="spike"></a>
</a>
<div class="menu">
<a> </a>
<a href="blog.html">the blog</a>
<a href="//github.com/ALittlePatate">github</a>
<a href="../pgp/key.txt">pgp key</a>
</div>
</div>
<p>In this section of the website you can read the random stuff i post from time to time.</p> <p>In this section of the website you can read the random stuff i post from time to time.</p>
<h2>The articles</h2> <h2>The articles</h2>
@@ -32,12 +15,6 @@
<ul> <ul>
<li><a href="posts/21_04_2024.txt" class="article">News from 21/04/2024</a></li> <li><a href="posts/21_04_2024.txt" class="article">News from 21/04/2024</a></li>
</ul> </ul>
<!--#include virtual="footer.html" -->
<footer id="foot">
<a href="//gnu.org"><img alt="GNU/Linux" src="../images/footer/gnu_linux.png" /></a>
<img alt="" src="../images/footer/internet-privacy.gif" />
<a href="//torproject.org"><img alt="Tor" src="../images/footer/tor.gif" /></a>
<a href="."><img alt="patate.dev" src="../images/footer/patate_dev.png" /></a>
</footer>
</body> </body>
</html> </html>

8
pages/footer.html Normal file
View File

@@ -0,0 +1,8 @@
<html>
<footer id="foot">
<a href="//gnu.org"><img alt="GNU/Linux" src="/images/footer/gnu_linux.png" /></a>
<img alt="" src="/images/footer/internet-privacy.gif" />
<a href="//torproject.org"><img alt="Tor" src="/images/footer/tor.gif" /></a>
<a href="."><img alt="patate.dev" src="/images/footer/patate_dev.png" /></a>
</footer>
</html>

21
pages/header.html Normal file
View File

@@ -0,0 +1,21 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>~Blog of a French coder~</title>
<link rel="stylesheet" type="text/css" href="/css/styles.css"/>
</head>
<body>
<div class="header">
<a href="/">
<a href="/"><img alt="Spike" src="/images/spike.jpg" id="spike"></a>
</a>
<div class="menu">
<a> </a>
<a href="/pages/blog.html"> the blog</a>
<a href="//github.com/ALittlePatate">github</a>
<a href="/pgp/key.txt">pgp key</a>
</div>
</div>
</body>
</html>

View File

@@ -1,22 +1,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <!--#include virtual="header.html" -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>~Blog of a French coder~</title>
<link rel="stylesheet" type="text/css" href="../css/styles.css"/>
</head>
<body> <body>
<div class="header">
<a href="/">
<a href="../index.html"><img alt="Spike" src="../images/spike.jpg" id="spike"></a>
</a>
<div class="menu">
<a> </a>
<a href="blog.html">the blog</a>
<a href="//github.com/ALittlePatate">github</a>
<a href="../pgp/key.txt">pgp key</a>
</div>
</div>
<article aria-label="Content" itemscope itemtype="http://schema.org/BlogPosting"> <article aria-label="Content" itemscope itemtype="http://schema.org/BlogPosting">
<h1 itemprop="name headline">-insecure mode bypass in CS:GO</h1> <h1 itemprop="name headline">-insecure mode bypass in CS:GO</h1>
@@ -62,9 +46,5 @@
</h2> </h2>
<p>At the writing of this blogpost, you can only join community servers with this flag enabled, this may change. Also, remember that even if you join a VAC secured server with this bypass, VAC will still be running thus this exploit is pretty useless. It was only a learning opportunity to me and shouldn't be considered as a VAC bypass.</p><p></p></main></article> <p>At the writing of this blogpost, you can only join community servers with this flag enabled, this may change. Also, remember that even if you join a VAC secured server with this bypass, VAC will still be running thus this exploit is pretty useless. It was only a learning opportunity to me and shouldn't be considered as a VAC bypass.</p><p></p></main></article>
<footer id="foot">
<a href="//gnu.org"><img alt="GNU/Linux" src="../images/footer/gnu_linux.png" /></a> <!--#include virtual="footer.html" -->
<img alt="" src="../images/footer/internet-privacy.gif" />
<a href="//torproject.org"><img alt="Tor" src="../images/footer/tor.gif" /></a>
<a href="."><img alt="patate.dev" src="../images/footer/patate_dev.png" /></a>
</footer>

View File

@@ -1,22 +1,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <!--#include virtual="header.html" -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>~Blog of a French coder~</title>
<link rel="stylesheet" type="text/css" href="../css/styles.css"/>
</head>
<body> <body>
<div class="header">
<a href="/">
<a href="../index.html"><img alt="Spike" src="../images/spike.jpg" id="spike"></a>
</a>
<div class="menu">
<a> </a>
<a href="blog.html">the blog</a>
<a href="//github.com/ALittlePatate">github</a>
<a href="../pgp/key.txt">pgp key</a>
</div>
</div>
<article aria-label="Content" itemscope itemtype="http://schema.org/BlogPosting"> <article aria-label="Content" itemscope itemtype="http://schema.org/BlogPosting">
<h1 itemprop="name headline">Reversing VAC winapi hooks</h1> <h1 itemprop="name headline">Reversing VAC winapi hooks</h1>
@@ -59,9 +43,5 @@ We see that the function is defined the same as the original one; you need to do
</h2> </h2>
To conclude, reversing VAC is a great way of learning as it's not obfuscated/packed and the code is pretty easy to read. Bye.<p></p></main></article> To conclude, reversing VAC is a great way of learning as it's not obfuscated/packed and the code is pretty easy to read. Bye.<p></p></main></article>
<footer id="foot">
<a href="//gnu.org"><img alt="GNU/Linux" src="../images/footer/gnu_linux.png" /></a> <!--#include virtual="footer.html" -->
<img alt="" src="../images/footer/internet-privacy.gif" />
<a href="//torproject.org"><img alt="Tor" src="../images/footer/tor.gif" /></a>
<a href="."><img alt="patate.dev" src="../images/footer/patate_dev.png" /></a>
</footer>

View File

@@ -27,24 +27,8 @@ def write_file(text) :
def generate_base(title) : def generate_base(title) :
base = """ base = """
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <!--#include virtual="header.html" -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>"""+title+"""</title>
<link rel="stylesheet" type="text/css" href="../css/styles.css"/>
</head>
<body> <body>
<div class="header">
<a href="/">
<a href="../index.html"><img alt="Spike" src="../images/spike.jpg" id="spike"></a>
</a>
<div class="menu">
<a> </a>
<a href="blog.html">the blog</a>
<a href="//github.com/ALittlePatate">github</a>
<a href="../pgp/key.txt">pgp key</a>
</div>
</div>
<article aria-label="Content" itemscope itemtype="http://schema.org/BlogPosting"> <article aria-label="Content" itemscope itemtype="http://schema.org/BlogPosting">
<h1 itemprop="name headline">"""+title+"""</h1> <h1 itemprop="name headline">"""+title+"""</h1>
@@ -76,12 +60,7 @@ def generate_section(s) :
def generate_end_file() : def generate_end_file() :
base = ''' base = '''
<p></p></main></article> <p></p></main></article>
<footer id="foot"> <!--#include virtual="footer.html" -->
<a href="//gnu.org"><img alt="GNU/Linux" src="../images/footer/gnu_linux.png" /></a>
<img alt="" src="../images/footer/internet-privacy.gif" />
<a href="//torproject.org"><img alt="Tor" src="../images/footer/tor.gif" /></a>
<a href="."><img alt="patate.dev" src="../images/footer/patate_dev.png" /></a>
</footer>
</html>''' </html>'''
write_file(base) write_file(base)