summaryrefslogtreecommitdiff
path: root/source/notes/star_trek_armada/generate_listings.sh
blob: a2ac8b2e33a6803b8ce1cbc049a167001993858f (plain)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/bash

radare2 -q -c 'pd 20 @ 0x43ff4d' Armada.exe_pristine > sprintf_overflow
radare2 -q -c 'pd 38 @ 0x5005a0' Armada.exe_pristine > memory_check
radare2 -q -c '/ Please\x20insert\x20CD\x20' Armada.exe_pristine 2>find_cd_strcheck > find_cd_strcheck
# radare doesn't find the reference, gotta use olly
# right click on instructions, search for, all referenced text strings
# right click strings, search for; "Please insert CD "
# double click string to show instruction that reference is made
# that's about where CD check is done
radare2 -q -c 'pd 10 @ 0x0044053b' Armada.exe_pristine > cd_check