Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Hack the planet

Rico d-Rickyy-b

💻
Hack the planet
View GitHub Profile
@d-Rickyy-b
d-Rickyy-b / Program.cs
Created Sep 14, 2022 — forked from Slaynash/Program.cs
NSISBI Extractor (Unity Installer Extractor)
View Program.cs
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 Dec 6, 2021
Small python script to extract (forward) messages from a bot using telegram as phishing backend / https://blog.rico-j.de/telegram-phishing-backend
View phish_extractor.py
#!/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 Jun 6, 2021
Minimal working example for debugging an issue with go-ping/ping
View pingTest.go
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 Apr 12, 2020
How to make pageant load your ssh keys and start putty afterwards
View pageant_instructions.md

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 Feb 28, 2020
Sample config for pastepwn
View main.py
# -*- 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 Apr 22, 2020
Parses csgo files.
View csgo_parser.py
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 Apr 20, 2019 — 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 ;)
View asb_filterlist.txt
! 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 Nov 24, 2018
Simple systemd service for the GeizhalsBot
View geizhalsbot.service
[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 Jun 6, 2020
Install script for grocy on a fresh debian installation
View install.sh
#!/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
@d-Rickyy-b
d-Rickyy-b / test_timeout.py
Created Mar 15, 2018
Code for checking out the timeout of answerCallbackQuery of the Telegram bot API. After ~15 seconds you get the Telegram error QUERY_ID_INVALID
View test_timeout.py
import logging
import time
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from telegram.error import BadRequest
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler
BOT_TOKEN = "<BOT_TOKEN>"
logger = logging.getLogger(__name__)