Skip to content

Instantly share code, notes, and snippets.

@warewolf
warewolf / domain.xml
Created July 17, 2017 18:18
domain xml for malware analysis under kvm/qemu
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<sysinfo type='smbios'>
<bios>
<entry name='vendor'>LENOVO</entry>
</bios>
<system>
<entry name='manufacturer'>LENOVO</entry>
<entry name='product'>987654U</entry>
<entry name='version'>ThinkPad W540</entry>
<entry name='serial'>IHNJKV4</entry>
<iq from="+17038675309@voice.google.com/srvenc-LqN75k1Lw8QoaZR/xrQKgMekAw0idzcR" to="warewolfs.googleid@gmail.com/asteriskAC809D38" id="jingle:10.30.158.206-1172688898:1:50069535" type="set">
<ses:session type="initiate" id="SIPo89fk5j4_jkl5j2h_12387578432982340959" initiator="+17038675309@voice.google.com/srvenc-Lk5j43klqwejkfi/kjl5943asdfr5j5R" xmlns:ses="http://www.google.com/session">
<pho:description xmlns:pho="http://www.google.com/session/phone">
<pho:payload-type id="0" name="PCMU" clockrate="8000" />
<pho:payload-type id="101" name="telephone-event" />
</pho:description>
<transport behind-symmetric-nat="false" can-receive-from-symmetric-nat="false" xmlns="http://www.google.com/transport/raw-udp" />
<transport xmlns="http://www.google.com/transport/p2p" />
<nick:nick xmlns:nick="http://jabber.org/protocol/nick">My Fiancee</nick:nick>
</ses:session>
[BEGIN] Notice pursuant to the Crimes Act 1958 (Vic) s21A(2ba)ii. I am the real Simon Smith, with proven credibility, qualifications, and testimony, and you have been flagged as making unlawful attacks and false accusations on my name and reputation. Those who don't know me, must desist from stalking me with hearsay unqualified evidence now. Offenders will be publically identified and sued for stalking along with a summons to twitter, guaranteed. Deal with your own insecurities, seek the truth. remove any fake account or unjustified comment about me within 48 hours, and cease making any new ones. I will exercise my rights to identify the public stalkers’ details, publish the content, send it to the police, make a stakeholder complaint to any employer or education board, and pass it to my lawyer. I will at minimum sue you for stalking, guaranteed. This is no threat, I have summoned 5 offenders so far. If you cross the line, you will receive 3 words indicating you have "crossed the line". If you think I'm joki
@warewolf
warewolf / fvwm-stalone.conf
Created September 13, 2017 22:00
HALLELUJAH I win at stalonetray
*FvwmButtons: Geometry 48x24-0-0
*FvwmButtons: (Frame 0, Swallow (UseOld,Respawn,NoClose,NoKill) "stalonetray" 'Exec /usr/bin/stalonetray &')
Module FvwmButtons
@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)
@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 / 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 / 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 / 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 / README.md
Last active May 13, 2026 21:59
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)