This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: leaky | |
format: 2.0 | |
#debug: true | |
name: belphemur/http-wordpress-login-xmlrpc | |
description: "Detect attempt to access to wp-login and xmlrpc" | |
filter: "evt.Meta.log_type == 'http_access-log' && (evt.Parsed.file_name == 'wp-login.php' || evt.Parsed.file_name == 'xmlrpc.php') && evt.Parsed.verb == 'POST'" | |
groupby: "evt.Meta.source_ip" | |
#distinct: evt.Parsed.request | |
capacity: 4 | |
leakspeed: 2m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -z "$1" ] | |
then | |
echo "$0 client-name" | |
exit 1 | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_referer $bad_referer { | |
hostnames; | |
default 0; | |
# Put regexes for undesired referers here | |
"~social-buttons.com" 1; | |
"~semalt.com" 1; | |
"~kambasoft.com" 1; | |
"~savetubevideo.com" 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Google Analytics Bypassing Adblockers | |
## Client | |
change www.googletagmanager.com => your.domain.com | |
``` | |
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://your.domain.com/gtag/js?id=UA-123456789-1"></script> | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Hello { | |
foo : World; | |
bar: Number; | |
array: World[] | |
} | |
interface World { | |
greeting: string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
REPOSITORY=_SERVER_:_PATH_ | |
BORG_CMD="borg" | |
BACKUP_DIR="/" | |
BACKUP_OPTIONS="--compress zstd,8 -v" | |
BACKUP_PREFIX="ns2" | |
export BORG_PASSPHRASE="_PASS_PHRASE" | |
EXCLUDE="/proc /boot /dev /mnt /sys /tmp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Code] | |
function IsX64: boolean; | |
begin | |
Result := Is64BitInstallMode and (ProcessorArchitecture = paX64); | |
end; | |
procedure Explode(var Dest: TArrayOfString; Text: String; Separator: String); | |
var | |
i, p: Integer; | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# TYPE= argument to the script where 0 = MAJOR, 1 = MINOR, 2 = BUILD. Default to BUILD. | |
GIT_VERSION=$(git describe --tags) | |
CURRENT_VERSION=$(echo ${GIT_VERSION:1} | cut -d'-' -f1) | |
TYPE=${1:-2} | |
function increment_version() { | |
local VERSION="$1" | |
local PLACE="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CONFIG=/etc/wireguard/wg1.conf | |
DEVICE=wg1 | |
IP="10.11.1.115/16" | |
ip netns add vpn | |
ip link add $DEVICE type wireguard | |
wg setconf $DEVICE $CONFIG | |
ip link set $DEVICE netns vpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x9ed660978abF96bB7b50DC2a618c7475fFb0f442 |