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 / test.php
Created June 11, 2017 11:40
PHP test file
<?php
$indicesServer = array('PHP_SELF',
'argv',
'argc',
'GATEWAY_INTERFACE',
'SERVER_ADDR',
'SERVER_NAME',
'SERVER_SOFTWARE',
'SERVER_PROTOCOL',
'REQUEST_METHOD',
@mhajder
mhajder / all.php
Created September 19, 2017 10:04
File to display directory content.
<html>
<body>
<br>
<table align="center" width="100%" border="0">
<tr>
<td width="10%">&nbsp;</td>
<td>
<?php
if ($handle = opendir('.')) {
Attribute VB_Name = "MałeLitery"
Sub MałeLitery()
For Each Cell In Selection
If Not Cell.HasFormula Then
Cell.Value = _
Application _
.WorksheetFunction _
.Proper(Cell.Value)
End If
Next Cell
@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>
@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 April 20, 2019 10:59
Joomla generator remove
<?php
// generator tag removed
$this->setGenerator(null);
@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 / 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 / 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 / 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