Disabled new htaccess rules, Improved the active tab code
Update .htaccess, index.php, and 7 more files...
This commit is contained in:
11
.htaccess
11
.htaccess
@@ -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,
|
||||
# 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.
|
||||
RedirectMatch 404 ^.*\.?(git|vs(code)|idea).*
|
||||
RedirectMatch 404 ^.*honeypot.*
|
||||
# FIXME: These rules break the later honeypot rules !!!
|
||||
#RedirectMatch 404 ^.*\.?(git|vs(code)|idea).*
|
||||
#RedirectMatch 404 ^.*honeypot.*
|
||||
|
||||
# Languages. (Does not work with a regex)
|
||||
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.
|
||||
# These rules are here since they're easier to implement in the .htaccess.
|
||||
#RewriteRule ^.*(install|xmlrpc)\.php.*$ /honeypot/file-php.php [QSA]
|
||||
RewriteRule ^.*\.xml.*$ /honeypot/file-xml.php [QSA]
|
||||
RewriteRule ^.*wlwmanifest\.xml.*$ /honeypot/file-xml-wlwmanifest.php [QSA]
|
||||
RewriteRule ^.*\.env.*$ /honeypot/file-env.php [QSA]
|
||||
#RewriteRule ^.*\.xml.*$ /honeypot/file-xml.php [QSA]
|
||||
#RewriteRule ^.*wlwmanifest\.xml.*$ /honeypot/file-xml-wlwmanifest.php [QSA]
|
||||
#RewriteRule ^.*\.env.*$ /honeypot/file-env.php [QSA]
|
||||
#RewriteRule ^.*(ap(i|p.*)|cms|sit[eo]|shop.*|wp.*).*$ /honeypot/folder.php [QSA]
|
||||
|
||||
# Cases left to handle:
|
||||
|
@@ -16,7 +16,7 @@
|
||||
data-sidebar-shortcut-enabled="true">
|
||||
<?php include 'body-root.php'; ?>
|
||||
<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="container-fluid">
|
||||
<div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar">
|
||||
|
@@ -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-menu font-weight-bold">
|
||||
<a href="<?php print(l10n_url_abs('/')); ?>" class="sidebar-brand no-select">
|
||||
@@ -6,11 +12,11 @@
|
||||
</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>
|
||||
<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>
|
||||
<?php print(localize("home.title.nav")); ?>
|
||||
</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>
|
||||
<?php print(localize("blog.title")); ?>
|
||||
</a>
|
||||
@@ -70,15 +76,15 @@
|
||||
</a>
|
||||
</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>
|
||||
<?php print(localize("links.title")); ?>
|
||||
</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>
|
||||
<?php print(localize("about.title")); ?>
|
||||
</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>
|
||||
<?php print(localize("contact.title")); ?>
|
||||
</a>
|
||||
|
@@ -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">
|
||||
<?php include 'body-root.php'; ?>
|
||||
<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="container-fluid">
|
||||
<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
4
honeypot/readme.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Honeypots
|
||||
|
||||
## ???
|
||||
TODO
|
@@ -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">
|
||||
<?php include 'body-root.php'; ?>
|
||||
<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="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">
|
||||
|
@@ -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">
|
||||
<?php include 'body-root.php'; ?>
|
||||
<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="container-fluid">
|
||||
<div id="page-title-bar" class="card p-0 pl-20 m-0 square-corners bg-very-dark title-bkgd navbar">
|
||||
|
@@ -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
|
||||
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.
|
||||
|
||||
|
@@ -1,14 +1,9 @@
|
||||
// TODO: Fix this !!!
|
||||
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')
|
||||
// Toggle button for the side menu. (Global)
|
||||
document.getElementById('button-sidebar').addEventListener("click", () => {
|
||||
halfmoon.toggleSidebar();
|
||||
});
|
||||
|
||||
// TOX ID copiers. (Contact page)
|
||||
if(document.getElementById('button-copy-tox-id-main') != null) {
|
||||
document.getElementById('button-copy-tox-id-main').addEventListener("click", () => {
|
||||
navigator.clipboard.writeText("62C1A91A425F90D7B4F047D70CCF31E7402C9EC37B93604B0F37C416442D15044AF6C1AE033B");
|
||||
|
Reference in New Issue
Block a user