Hex File and Regex Cheat Sheet
Hex File and Regex Cheat Sheet
ani
au
bmp
bmp
bmp
cab
dll
Excel
exe
exe
flv
gif
gif
gz
ico
jpeg
jpeg
jpeg
Linux bin
png
msi
mp3
mp3
OFT
PPT
PDF
rar
sfw
tar
tgz
Word
wmv
zip
Start
52
2E
42
42
42
4D
4D
D0
4D
4D
46
47
47
1F
00
FF
FF
FF
7F
89
D0
49
49
4F
D0
25
52
43
1F
1F
D0
30
50
49
73
4D
4D
4D
53
5A
CF
5A
5A
4C
49
49
8B
00
D8
D8
D8
45
50
CF
44
44
46
CF
50
61
57
8B
9D
CF
26
4B
46
6E
F8
62
76
43
90
11
50
90
56
46
46
08
01
FF
FF
FF
4C
4E
11
33
33
54
11
44
72
53
08
90
11
B2
03
Start ASCII
Translation
46
64
A9
25
03
46
00
E0
00
00
01
38 39 61
38 37 61
08
00
E1
E0
FE
46
47
E0
2E
03
32
E0
46
21
06/08
00
70
E0
75
04
RIFF
snd
BM
BMp%
BMv
MSCF
MZ
MZP (inno)
MZ
FLV
GIF89a
GIF87a
JFIF
JFIF
ELF
PNG
ID3
ID3
OFT2
grep/egrep
grep's strength is extracting information from
text files. grep operates on one or multiple
files when provided with a command line
argument(s) that can also include wildcards:
Example:
grep "John" addressbook
Would return the lines that contained the
"John" string in the addressbook text file
Purpose
%PDF
Rar!
cws
sort
sort, as its name implies, will sort the
output. There are a few interesting options you
can use:
PK
-d
-n
-u
awk
awk is an extremely useful tool, especially for
parsing data structured in columns. It is
straightforward to use for simple purposes. Its
basic use is to select some particular columns
from the output: column 1 is referred to as $1,
column 2 as $2, etc.
-c
-f
-i
-s
-u
Example:
echo "hello:goodbye" | awk -F:
'{print $2}'
Would return "goodbye" as an output
sed
sed is an excellent command for character
substitution. Example: if you want to
substitute the first occurrence of the 'a'
character by an 'e':
echo "hallo" | sed 's/a/e/'
The output would be: hello
You can use the g modifier to substitute all
instances:
echo "Hallo Janny" | sed 's/a/e/g'
The output would be: Hello Jenny
Windows findstr
uniq
Forensic Analysis
MANDIANT
For example, you want or [email protected]
to look for a
match for WHITE or GREEN in a text703.683.3141
file, you
write your command like this: http://www.mandiant.org
findstr "WHITE GREEN" textfile
To make the search case insensitive, add the
/I to print all variant of WHITE or GREEN.
Windows findstr Command List
/B
/E
/L
/R
/S
1
2
1
a
b
c
/I
Date
/X
/V
/N
/O
/P