Skip to content

Instantly share code, notes, and snippets.

@thalex
thalex / vmware-tools-update
Last active April 7, 2022 06:00
VMware Tools Linux Update
#install
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp
cd /tmp
tar -zxvf VMwareTools-*.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl —default EULA_AGREED=yes
@thalex
thalex / usbkeymap.py
Created April 27, 2017 20:26
USB Key Mapping to solve forensics challenges with USB pcaps
#!/usr/bin/python
mappings = {
0x04:"A",
0x05:"B",
0x06:"C",
0x07:"D",
0x08:"E",
0x09:"F",
0x0A:"G",
0x0B:"H",
#!/usr/bin/python
import ContinuedFractions, Arithmetic, RSAvulnerableKeyGenerator
import time
import sys
import base64
import binascii
import gmpy
import sympy
import math
import fractions
@thalex
thalex / diff
Created January 9, 2017 19:27
find difference between two files
grep -Fxvf file1 file2
-F, --fixed-strings
Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched.
-x, --line-regexp
Select only those matches that exactly match the whole line.
-v, --invert-match
Invert the sense of matching, to select non-matching lines.
-f FILE, --file=FILE
Obtain patterns from FILE, one per line. The empty file contains zero patterns, and therefore matches nothing.