Skip to content

Instantly share code, notes, and snippets.

@warewolf
warewolf / notes.txt
Created February 17, 2019 14:05
lenovo bios update cd extraction
# warewolf@xasf:~/hack$ md5sum g2uj30us.iso
d6c1685c192f4fc62c53ff7bc7cb54a0 g2uj30us.iso
# warewolf@xasf:~/hack$ isoinfo -d -i g2uj30us.iso
CD-ROM is in ISO 9660 format
System id:
Volume id: g2uj30us
Volume set id:
Publisher id:
Data preparer id:
Application id: NERO BURNING ROM
@warewolf
warewolf / keybase.md
Created January 31, 2019 03:29
keybase.md

Keybase proof

I hereby claim:

  • I am warewolf on github.
  • I am xabean (https://keybase.io/xabean) on keybase.
  • I have a public key ASAIROXWjwQ4_NxmgHeB1XhUvm0uSyxRgUd17fwN4Y5EWgo

To claim this, I am signing this object:

@warewolf
warewolf / blackhole_subnets.txt
Created October 14, 2018 02:01
CIDR netblocks that attack mail services, login attempts.
187.55.128.0/18
149.56.173.0/29
138.0.89.0/24
186.215.128.0/20
101.80.0.0/13
202.43.116.0/24
91.92.80.0/22
202.62.47.0/24
170.84.181.0/24
183.96.0.0/13
@warewolf
warewolf / block_bad_helo.m4
Last active August 16, 2018 16:01
Sendmail-fu
divert(-1)
# helo/ehlo checks of $s
dnl`'Rationale:
dnl`'Client software is often broken. We don't want to reject
dnl`'our own users client connections. Therefore we attempt
dnl`'to allow our users to pass the checks. Otherwise, block
dnl`'sites with a HELO/EHLO hostname that is unqualified, or
dnl`'is one of our own names
dnl`'
@warewolf
warewolf / README.md
Last active January 29, 2024 20:53
Phison drive mode configuration

Phison PS2251-xx USB flash drive controller mode configuration

Overview

Phison based flash drives have various modes that dictate how they operate;

  1. as a regular flash drive (mode 3)
  2. as a dual-volume flash drive (mode 7)
  3. as a single volume flash drive + cdrom (mode 21)
@warewolf
warewolf / mode3.txt
Created May 28, 2018 20:50
PS2251-61 "modeconvert" dumps, mode 3 and mode 7
00000000: 12 01 00 02 00 00 00 40 37 13 ff 13 00 01 01 02 .......@7.......
00000010: 03 01 04 03 09 04 00 00 00 00 00 00 00 00 00 00 ................
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 02 03 00 00 ................
00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000040: 00 00 00 00 00 00 12 03 55 53 42 20 44 49 53 4b ........USB DISK
00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000060: 32 03 32 32 30 36 31 31 38 30 30 30 35 30 32 30 2.22061180005020
00000070: 38 30 30 31 39 30 33 41 31 39 00 00 00 00 00 00 8001903A19......
00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000090: 00 00 39 00 00 00 00 00 00 00 00 00 55 53 42 20 ..9.........USB
@warewolf
warewolf / guardian.sh
Last active May 3, 2018 19:46
Guard your SSH keys with this forced command
#!/usr/bin/env bash
# Usage:
#
# place into ~/.ssh/authorized_keys:
# command="/path/to/guardian.sh LOCAL_HOSTNAME PERMITTED_IP_PREFIXES,SEPARATED_BY,COMMAS" ssh-rsa A...
#
# Forced command variant
# command="COMMAND='/usr/bin/rsync -Pavz --server here there' /path/to/guardian.sh LOCAL_HOSTNAME PERMITTED_IP_PREFIXES,SEPARATED_BY,COMMAS" ssh-rsa A...
@warewolf
warewolf / fucking_wifi.sh
Created March 8, 2018 20:35
I present to you, fucking_wifi.sh - what I use to fix my trackpoint and wifi card when it shits the bed
#!/bin/bash
ifdown wlan0
while grep -E iwlwifi\|iwlmvm /proc/modules; do
rmmod iwlwifi iwlmvm
sleep 1
done
echo -n 1 | tee /sys/bus/pci/devices/0000:03:00.0/remove
sleep 1;
echo -n 1 | tee /sys/bus/pci/devices/0000:03:00.0/remove
@warewolf
warewolf / stuffed_cabbage_rolls.md
Created December 11, 2017 16:33
Harman family Stuffed Cabbage Rolls recipe (what I know as "pigs in a blanket", not hot dogs though)

Stuffed Cabbage Rolls

  • 1 lg head green cabbage, about 4lbs
  • 1 large onion, finely chopped
  • 1/2 onion, sliced (reserve for top)
  • 2 tbsp oil for chopped onions
  • 2 tbsp oil for sliced onions
  • 1 1/2 lbs ground beef
  • 1/2 lb fresh pork
  • 1 1/2 cup rice, cooked (rice doubles when cooked, so 3/4 cup raw). Mom always said use 1/2 cup raw rice for each pound of meat
@warewolf
warewolf / beef_stew.md
Created October 8, 2017 14:08
Richard's Tomato Beef Stew v1.0

Richard's Tomato Beef Stew

Ingredients

Flavor & Spice

  • 2 tbsp Worcestershire sauce
  • 2 cloves garlic, minced
  • 1/2 tsp smoked paprika
  • 3 bay leaves
  • 1/8 tsp ground cloves (careful not to use too much)