Skip to content

Instantly share code, notes, and snippets.

View d-Rickyy-b's full-sized avatar
💻
Hack the planet

Rico d-Rickyy-b

💻
Hack the planet
View GitHub Profile
@d-Rickyy-b
d-Rickyy-b / kdbx.hexpat
Last active September 18, 2023 22:24
imhex pattern for the kdbx file format
#pragma description kdbx file format
// This pattern file wouldn't have been possible without the blog post of Wladimir Palant
// Check it out here: https://palant.info/2023/03/29/documenting-keepass-kdbx4-file-format/#the-outer-header
#include <std/mem.pat>
#include <std/io.pat>
#include <type/guid.pat>
#include <type/magic.pat>
// kdbx files contain different signatures depending on the version they were created with
@d-Rickyy-b
d-Rickyy-b / Program.cs
Created September 14, 2022 02:04 — forked from Slaynash/Program.cs
NSISBI Extractor (Unity Installer Extractor)
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
namespace UnityNSISReader
{
class Program
@d-Rickyy-b
d-Rickyy-b / phish_extractor.py
Last active May 10, 2023 22:33
Small python script to extract (forward) messages from a bot using telegram as phishing backend / https://blog.rico-j.de/telegram-phishing-backend
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Script to forward the content of a chat between a Telegram Bot and a user/chat to another user/chat
# Make sure to send /start to the bot on Telegram beforehand, otherwise Telegram won't allow the bot to forward messages to you!
import argparse
import json
import logging
import requests
import signal
import time
@d-Rickyy-b
d-Rickyy-b / pingTest.go
Created June 6, 2021 22:29
Minimal working example for debugging an issue with go-ping/ping
package main
import (
"github.com/go-ping/ping"
"log"
"time"
)
func execPing(ipAddress string) (bool, error) {
pinger, err := ping.NewPinger(ipAddress)
@d-Rickyy-b
d-Rickyy-b / pageant_instructions.md
Created April 12, 2020 19:43
How to make pageant load your ssh keys and start putty afterwards

How to make pageant load your ssh keys and start putty afterwards

For me it used to be very annoying to always manually start pageant, load my key(s) one by one, enter their passwords and then manually start putty. So I thought of an easy way to automate that process. And luckily we don't even need any kind of script for that. Just a single link, that will open pageant with our specified key(s) and afterwards will run putty. Here you can see how that works!

Instructions

  1. Create a new link to your pageant.exe
  2. Open the link's properties
  3. Go to the tab "Link properties" and enter "C:\path\to\pageant.exe" "C:\path\to\key.ppk" -c "C:\path\to\putty.exe"
  4. Take the path of the pageant's directory and enter it in "Start in" field.
@d-Rickyy-b
d-Rickyy-b / main.py
Created February 28, 2020 00:35
Sample config for pastepwn
# -*- coding: utf-8 -*-
import logging.handlers
import os
from pastepwn import PastePwn
# Import new actions here - you need to import each action prior to using it
from pastepwn.actions import EmailAction, IrcAction
# Import new analyzers here - you need to import each analyzer prior to using it
from pastepwn.analyzers import MailAnalyzer, WordAnalyzer
@d-Rickyy-b
d-Rickyy-b / csgo_parser.py
Last active February 3, 2024 18:53
Parses csgo files.
import time
from lark import Lark
from lark import Transformer
import json
# Data holder classes used for parsing
class Pair(object):
def __init__(self, name, value):
self.name = name
@d-Rickyy-b
d-Rickyy-b / asb_filterlist.txt
Created April 20, 2019 22:07 — forked from quantenProjects/asb_filterlist.txt
Axel Springer Blocker List for uBlock. Content from: https://goo.gl/D3u0Tz feel free to comment if changes are required. And for the people from Springer, this here is art or satrie or anything other inocent ;)
! content from https://goo.gl/D3u0Tz
axel-springer-akademie.de
ein-herz-fuer-kinder.de
ikiosk.de
bild.de
bz-berlin.de
welt.de
n24.de
autobild.de
sportbild.de
@d-Rickyy-b
d-Rickyy-b / geizhalsbot.service
Created November 24, 2018 21:36
Simple systemd service for the GeizhalsBot
[Unit]
Description=Python-GeizhalsBot
[Service]
Type=simple
ExecStart=/opt/bots/Python-GeizhalsBot/.venv/bin/python3 /opt/bots/Python-GeizhalsBot/main.py
WorkingDirectory=/opt/bots/Python-GeizhalsBot
User=botFather
[Install]
@d-Rickyy-b
d-Rickyy-b / install.sh
Last active December 24, 2022 21:58
Install script for grocy on a fresh debian installation
#!/bin/bash
cd /var/www/html
rm index.html
version="2.7.1"
wget -q "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip"
unzip "grocy_${version}.zip"
rm "grocy_${version}.zip"
chown www-data: /var/www/html -R