summaryrefslogtreecommitdiff
path: root/source/notes/star_trek_armada/generate_listings.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/notes/star_trek_armada/generate_listings.sh')
-rwxr-xr-xsource/notes/star_trek_armada/generate_listings.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/notes/star_trek_armada/generate_listings.sh b/source/notes/star_trek_armada/generate_listings.sh
new file mode 100755
index 0000000..a2ac8b2
--- /dev/null
+++ b/source/notes/star_trek_armada/generate_listings.sh
@@ -0,0 +1,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