Disabled new htaccess rules, Improved the active tab code

Update .htaccess, index.php, and 7 more files...
This commit is contained in:
2022-02-25 05:04:01 +01:00
parent 76e3044e32
commit 48c57d47ed
10 changed files with 31 additions and 23 deletions

View File

@@ -42,8 +42,9 @@ Header always set X-Powered-By "Amiga 1200, Kickstart 3.1"
# Sending a 404 for git and IDEs folders just in case they ever get copied to the web server, # Sending a 404 for git and IDEs folders just in case they ever get copied to the web server,
# or if one of the honeypot files is acessed directly. # or if one of the honeypot files is acessed directly.
# A 404 is preferred to prevent further scanning of this folder and from raising some flags. # A 404 is preferred to prevent further scanning of this folder and from raising some flags.
RedirectMatch 404 ^.*\.?(git|vs(code)|idea).* # FIXME: These rules break the later honeypot rules !!!
RedirectMatch 404 ^.*honeypot.* #RedirectMatch 404 ^.*\.?(git|vs(code)|idea).*
#RedirectMatch 404 ^.*honeypot.*
# Languages. (Does not work with a regex) # Languages. (Does not work with a regex)
RewriteRule ^en/(.*)$ /$1 [QSA] RewriteRule ^en/(.*)$ /$1 [QSA]
@@ -65,9 +66,9 @@ Header always set X-Powered-By "Amiga 1200, Kickstart 3.1"
# Internal redirections for scanning and exploit attempts. # Internal redirections for scanning and exploit attempts.
# These rules are here since they're easier to implement in the .htaccess. # These rules are here since they're easier to implement in the .htaccess.
#RewriteRule ^.*(install|xmlrpc)\.php.*$ /honeypot/file-php.php [QSA] #RewriteRule ^.*(install|xmlrpc)\.php.*$ /honeypot/file-php.php [QSA]
RewriteRule ^.*\.xml.*$ /honeypot/file-xml.php [QSA] #RewriteRule ^.*\.xml.*$ /honeypot/file-xml.php [QSA]
RewriteRule ^.*wlwmanifest\.xml.*$ /honeypot/file-xml-wlwmanifest.php [QSA] #RewriteRule ^.*wlwmanifest\.xml.*$ /honeypot/file-xml-wlwmanifest.php [QSA]
RewriteRule ^.*\.env.*$ /honeypot/file-env.php [QSA] #RewriteRule ^.*\.env.*$ /honeypot/file-env.php [QSA]
#RewriteRule ^.*(ap(i|p.*)|cms|sit[eo]|shop.*|wp.*).*$ /honeypot/folder.php [QSA] #RewriteRule ^.*(ap(i|p.*)|cms|sit[eo]|shop.*|wp.*).*$ /honeypot/folder.php [QSA]
# Cases left to handle: # Cases left to handle:

View File

@@ -16,7 +16,7 @@
data-sidebar-shortcut-enabled="true"> data-sidebar-shortcut-enabled="true">
<?php include 'body-root.php'; ?> <?php include 'body-root.php'; ?>
<div class="page-wrapper with-sidebar with-navbar-fixed-bottom"> <div class="page-wrapper with-sidebar with-navbar-fixed-bottom">
<?php include 'sidebar.php'; ?> <?php const SIDEBAR_ID = 'about'; include 'sidebar.php'; ?>
<div class="content-wrapper"> <div class="content-wrapper">
<div class="container-fluid"> <div class="container-fluid">
<div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar"> <div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar">

View File

@@ -1,4 +1,10 @@
<?php if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { header('HTTP/1.1 403 Forbidden'); die(); } ?> <?php
if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
header('HTTP/1.1 403 Forbidden');
die();
}
defined('SIDEBAR_ID') or define('SIDEBAR_ID', 'default');
?>
<div class="sidebar"> <div class="sidebar">
<div class="sidebar-menu font-weight-bold"> <div class="sidebar-menu font-weight-bold">
<a href="<?php print(l10n_url_abs('/')); ?>" class="sidebar-brand no-select"> <a href="<?php print(l10n_url_abs('/')); ?>" class="sidebar-brand no-select">
@@ -6,11 +12,11 @@
</a> </a>
<h4 class="text-center quantum ucase font-size-28 text-muted">N<span class="text-super-muted">ibble</span> P<span class="text-super-muted">oker</span></h4> <h4 class="text-center quantum ucase font-size-28 text-muted">N<span class="text-super-muted">ibble</span> P<span class="text-super-muted">oker</span></h4>
<div class="sidebar-divider"></div> <div class="sidebar-divider"></div>
<a id="sbl-home" href="<?php print(l10n_url_abs('/')); ?>" class="sidebar-link sidebar-link-with-icon"> <a id="sbl-home" href="<?php print(l10n_url_abs('/')); ?>" class="sidebar-link sidebar-link-with-icon<?php if(SIDEBAR_ID=="home"){echo(" active");} ?>">
<span class="sidebar-icon"><i class="fad fa-home" aria-hidden="true"></i></span> <span class="sidebar-icon"><i class="fad fa-home" aria-hidden="true"></i></span>
<?php print(localize("home.title.nav")); ?> <?php print(localize("home.title.nav")); ?>
</a> </a>
<a id="sbl-blog" href="<?php print(l10n_url_abs('/blog/')); ?>" class="sidebar-link sidebar-link-with-icon"> <a id="sbl-blog" href="<?php print(l10n_url_abs('/blog/')); ?>" class="sidebar-link sidebar-link-with-icon<?php if(SIDEBAR_ID=="blog"){echo(" active");} ?>">
<span class="sidebar-icon"><i class="fad fa-rss-square"></i></span> <span class="sidebar-icon"><i class="fad fa-rss-square"></i></span>
<?php print(localize("blog.title")); ?> <?php print(localize("blog.title")); ?>
</a> </a>
@@ -70,15 +76,15 @@
</a> </a>
</div>--> </div>-->
<div class="sidebar-divider"></div> <div class="sidebar-divider"></div>
<a id="sbl-links" href="<?php print(l10n_url_abs('/links/')); ?>" class="sidebar-link sidebar-link-with-icon"> <a id="sbl-links" href="<?php print(l10n_url_abs('/links/')); ?>" class="sidebar-link sidebar-link-with-icon<?php if(SIDEBAR_ID=="links"){echo(" active");} ?>">
<span class="sidebar-icon"><i class="fad fa-link"></i></span> <span class="sidebar-icon"><i class="fad fa-link"></i></span>
<?php print(localize("links.title")); ?> <?php print(localize("links.title")); ?>
</a> </a>
<a id="sbl-about" href="<?php print(l10n_url_abs('/about/')); ?>" class="sidebar-link sidebar-link-with-icon"> <a id="sbl-about" href="<?php print(l10n_url_abs('/about/')); ?>" class="sidebar-link sidebar-link-with-icon<?php if(SIDEBAR_ID=="about"){echo(" active");} ?>">
<span class="sidebar-icon"><i class="fad fa-user"></i></span> <span class="sidebar-icon"><i class="fad fa-user"></i></span>
<?php print(localize("about.title")); ?> <?php print(localize("about.title")); ?>
</a> </a>
<a id="sbl-contact" href="<?php print(l10n_url_abs('/contact/')); ?>" class="sidebar-link sidebar-link-with-icon"> <a id="sbl-contact" href="<?php print(l10n_url_abs('/contact/')); ?>" class="sidebar-link sidebar-link-with-icon<?php if(SIDEBAR_ID=="contact"){echo(" active");} ?>">
<span class="sidebar-icon"><i class="fad fa-mailbox"></i></span> <span class="sidebar-icon"><i class="fad fa-mailbox"></i></span>
<?php print(localize("contact.title")); ?> <?php print(localize("contact.title")); ?>
</a> </a>

View File

@@ -15,7 +15,7 @@
<body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true"> <body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true">
<?php include 'body-root.php'; ?> <?php include 'body-root.php'; ?>
<div class="page-wrapper with-sidebar with-navbar-fixed-bottom"> <div class="page-wrapper with-sidebar with-navbar-fixed-bottom">
<?php include 'sidebar.php'; ?> <?php const SIDEBAR_ID = 'contact'; include 'sidebar.php'; ?>
<div class="content-wrapper"> <div class="content-wrapper">
<div class="container-fluid"> <div class="container-fluid">
<div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar"> <div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar">

4
honeypot/readme.md Normal file
View File

@@ -0,0 +1,4 @@
# Honeypots
## ???
TODO

View File

@@ -15,7 +15,7 @@
<body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true"> <body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true">
<?php include 'body-root.php'; ?> <?php include 'body-root.php'; ?>
<div class="page-wrapper with-sidebar with-navbar-fixed-bottom"> <div class="page-wrapper with-sidebar with-navbar-fixed-bottom">
<?php include 'sidebar.php'; ?> <?php const SIDEBAR_ID = 'home'; include 'sidebar.php'; ?>
<div class="content-wrapper"> <div class="content-wrapper">
<div class="container-fluid h-full stretch-align-items"> <div class="container-fluid h-full stretch-align-items">
<div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar"> <div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar">

View File

@@ -15,7 +15,7 @@
<body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true"> <body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true">
<?php include 'body-root.php'; ?> <?php include 'body-root.php'; ?>
<div class="page-wrapper with-sidebar with-navbar-fixed-bottom"> <div class="page-wrapper with-sidebar with-navbar-fixed-bottom">
<?php include 'sidebar.php'; ?> <?php const SIDEBAR_ID = 'links'; include 'sidebar.php'; ?>
<div class="content-wrapper"> <div class="content-wrapper">
<div class="container-fluid"> <div class="container-fluid">
<div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar"> <div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar">

View File

@@ -10,7 +10,8 @@ file are properly removed, even if measures are in place to prevent access to th
The [.htaccess](.htaccess) file has been made public **on purpose** since it does not contains any The [.htaccess](.htaccess) file has been made public **on purpose** since it does not contains any
private information and because it could be used by other people to create their website more easily private information and because it could be used by other people to create their website more easily
since these files are a pain to work with. since these files are a pain to work with.<br>
Especially with the lang redirections.
It is also a good idea to server this website through a jailed instance of apache, just in case. It is also a good idea to server this website through a jailed instance of apache, just in case.

View File

@@ -1,14 +1,9 @@
// TODO: Fix this !!! // Toggle button for the side menu. (Global)
document.getElementById("sbl-home").classList.add("active");
// Checking if the hamburger button for the side menu has been clicked
const element = document.getElementById('profile_title')
// always checking if the element is clicked, if so, do alert('hello')
document.getElementById('button-sidebar').addEventListener("click", () => { document.getElementById('button-sidebar').addEventListener("click", () => {
halfmoon.toggleSidebar(); halfmoon.toggleSidebar();
}); });
// TOX ID copiers. (Contact page)
if(document.getElementById('button-copy-tox-id-main') != null) { if(document.getElementById('button-copy-tox-id-main') != null) {
document.getElementById('button-copy-tox-id-main').addEventListener("click", () => { document.getElementById('button-copy-tox-id-main').addEventListener("click", () => {
navigator.clipboard.writeText("62C1A91A425F90D7B4F047D70CCF31E7402C9EC37B93604B0F37C416442D15044AF6C1AE033B"); navigator.clipboard.writeText("62C1A91A425F90D7B4F047D70CCF31E7402C9EC37B93604B0F37C416442D15044AF6C1AE033B");

1
test/.env Normal file
View File

@@ -0,0 +1 @@
Test123