Skip to content

Instantly share code, notes, and snippets.

View mhajder's full-sized avatar
🤑
V3n@t0r 3rr0rum

Mateusz Hajder mhajder

🤑
V3n@t0r 3rr0rum
View GitHub Profile
@mhajder
mhajder / System.map-5.10.0-9-amd64
Created November 12, 2021 10:01
System.map for Debian 11.1 with kernel 5.10.0-9-amd64
This file has been truncated, but you can view the full file.
0000000000000000 D __per_cpu_start
0000000000000000 D fixed_percpu_data
00000000000001d9 A kexec_control_code_size
0000000000001000 D cpu_debug_store
0000000000002000 D irq_stack_backing_store
0000000000006000 D cpu_tss_rw
000000000000b000 D gdt_page
000000000000c000 d exception_stacks
0000000000010000 d entry_stack_storage
0000000000011000 D espfix_waddr
@mhajder
mhajder / .htaccess
Created July 18, 2020 20:52
"Generalstaatsanwaltschaft Bamberg" - Information about the taken over website
RewriteEngine on
RewriteRule ^robots.txt - [L]
RewriteRule ^((?!index\.html).+)$ /index.html [L]
#FallbackResource /index.html
@mhajder
mhajder / redirect.html
Created July 18, 2020 20:48
Redirect to the main domain from subdomains.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
</head>
<body>
<script>
function getDomainName(hostName) {
return hostName.substring(hostName.lastIndexOf(".", hostName.lastIndexOf(".") - 1) + 1);
}
@mhajder
mhajder / nench.sh
Last active April 16, 2020 12:54
Contabo VPS S SSD - Benchmark (nench.sh)
XXXX@vmiXXXXXX:~$ (curl -s wget.racing/nench.sh | bash; curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log
-------------------------------------------------
nench.sh v2019.07.20 -- https://git.io/nench.sh
benchmark timestamp: 2020-04-16 12:42:37 UTC
-------------------------------------------------
Processor: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
CPU cores: 4
Frequency: 2099.998 MHz
RAM: 7.8G
@mhajder
mhajder / bench.sh
Created April 16, 2020 12:42
Contabo VPS S SSD - Benchmark (bench.sh)
----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
Number of cores : 4
CPU frequency : 2099.998 MHz
Total size of Disk : 195.9 GB (3.7 GB Used)
Total amount of Mem : 7976 MB (70 MB Used)
Total amount of Swap : 2047 MB (0 MB Used)
System uptime : 0 days, 3 hour 22 min
Load average : 0.21, 0.09, 0.03
OS : Ubuntu 18.04.4 LTS
@mhajder
mhajder / Yet-Another-Bench-Script
Last active April 23, 2020 03:41
Contabo VPS S SSD - Benchmark (Yet-Another-Bench-Script)
XXXX@vmiXXXXXX:~$ curl -sL yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2020-02-10 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Thu Apr 16 11:13:09 CEST 2020
Basic System Information:
@mhajder
mhajder / nixbench
Created April 16, 2020 10:20
Contabo VPS S SSD - Benchmark (nixbench)
XXXX@vmiXXXXXX:~$ curl -sS https://raw.githubusercontent.com/jgillich/nixbench/master/nixbench.sh | sh
nixbench v0.6.6 - https://github.com/jgillich/nixbench
cpu
---
Sha256 (1x) : 105.26 MB/s
Gzip (1x) : 99.21 MB/s
AES (1x) : 449.28 MB/s
Sha256 (4x) : 366.67 MB/s
@mhajder
mhajder / index.php
Created April 20, 2019 10:59
Joomla generator remove
<?php
// generator tag removed
$this->setGenerator(null);
@mhajder
mhajder / plugin.php
Last active December 26, 2020 17:37
Hide WP version
// hide the meta tag generator from head and rss
function disable_version() {
return '';
}
add_filter('the_generator','disable_version');
remove_action('wp_head', 'wp_generator');
// hide the meta tag generator from scripts and styles
function remove_version_from_style_js( $src ) {
if ( strpos( $src, 'ver=' . get_bloginfo( 'version' ) ) )
@mhajder
mhajder / index.php
Created August 12, 2018 14:38
Polyglot XSS Playground
<?php
$payload = (isset($_GET['payload'])) ? $_GET['payload'] : "";
?>
<html>
<head><title>Polyglot XSS Playground</title></head>
<body>
<div><?php echo $payload; ?></div>
<div class="<?php echo $payload; ?>">text</div>
<div class='<?php echo $payload; ?>'>text</div>
<style><?php echo $payload; ?></style>