Skip to content

Instantly share code, notes, and snippets.

View ketominer's full-sized avatar

Keto Miner ketominer

View GitHub Profile
@ketominer
ketominer / kerberos_attacks_cheatsheet.md
Created August 26, 2020 19:50 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

#!/bin/bash
cd "$(dirname "$0")"
### download and install lnd
# return values:
# 1 - download failed
# 2 - signature check failed
# 3 - other failure
# 0 - success
#!/bin/bash
query()
{
PASS=$(</etc/nodl/maria-btcpay.pwd)
echo "$*" | mysql -u btcpay -p$PASS btcpay
}
case "$1" in
disable-multifactor)
query "DELETE FROM U2FDevices WHERE ApplicationUserId = (SELECT Id FROM AspNetUsers WHERE upper('$2') = NormalizedEmail)"

Keybase proof

I hereby claim:

  • I am ketominer on github.
  • I am ketominer (https://keybase.io/ketominer) on keybase.
  • I have a public key ASAv03AOyCTyLaiNpzfJTqkkgjySmL17CGsi68RHlmmirwo

To claim this, I am signing this object:

<?php
$options = [
'memory_cost' => 1<<17, // 128 Mb
'time_cost' => 4,
'threads' => 2,
];
$test_hash = password_hash('foobar', PASSWORD_ARGON2I, $options);
if(!password_verify('foobar', $test_hash)) {
echo("ARGON2I seems to not be working properly...\n");
} else {
@ketominer
ketominer / gist:9913bc84125b70cae3e71916310c472b
Created October 29, 2018 19:52
build NBxplorer and BTCPay on arm32 (raspberry pi)
### As root
apt-get install libc6 libstdc++6 libssl-dev libssl1.0.0 libzstd1 libicu-dev
wget https://download.microsoft.com/download/8/A/7/8A765126-50CA-4C6F-890B-19AE47961E4B/dotnet-sdk-2.1.402-linux-arm.tar.gz
mkdir /opt/dotnet32
tar zxf dotnet-sdk-2.1.402-linux-arm.tar.gz -C /opt/dotnet32
@ketominer
ketominer / gist:f5dd17cc9c79ec675c6d04ace311f3dd
Created October 27, 2018 20:35
run NBxplorer and BTCPay Server on an arm64 board with armbian using the arm32 version of dotnet
### As root
dpkg --add-architecture armhf
apt-get install libc6:armhf libstdc++6:armhf libssl-dev:armhf libssl1.0.0:armhf libzstd1:armhf libicu-dev:armhf
wget https://download.microsoft.com/download/8/A/7/8A765126-50CA-4C6F-890B-19AE47961E4B/dotnet-sdk-2.1.402-linux-arm.tar.gz
mkdir /opt/dotnet32