Re: The newcomer and experienced user's guide to G/S/C Arbitrary Code Execution!
Posted by: Anna Says Hi
Date: 2018-03-04 14:23:40
# means that any symbol can go there, since that slot will be overwritten by something later on.
Mail:
t##)'vQéh5?!ée50"
?cék5Aéo5l0A'm:5
Box names, starting from box 5 (the Pk is one character):
###ép5?7
07#'vt#09
#'vj##i5#
09Pk'd####
target: get 67 in FBA4, 6F in FBA7, 22 in FBAA, BD in FBAE, C2 in FBAF, jump to FB9C
org $F001
F002: or E; B3, t
F003: ld BC, 9B01; 01 01 9B; # # )
F006: sub $90; 'v Q
F008: ld (FBA7), A; EA A2 FB, é h 5
F00B: and $E7; ? !
F00D: ld (FBA4), A; é e 5
F010: or $72; 0 "
F012: ld C, (HL);
F013: and $A2; ? c
F016: ld (FBAA), A; é k 5
F019: add A, B; A
F01A: ld (FBAE), A; é o 5
F01D: xor E; l
F01E: or 80; 0 A
F020: jp NC, FB9C; 'm : 5
target: get FF into DD4A - DD54
org $FB9C
$FB9C: ld (FBAF), A; EA AF FB, é p 5
$FB9F: and $FD; ? 7
$FBA2: or $FD; F6 FD, 0 7
$FBA4: ld H, A; 67
$FBA5: sub $B3; D6 B3, 'v t
$FBA7: ld L, A; 6F
$FBA8: or $FF; F6 FF, 0 9
$FBAA: ld (HLi), A; 22
$FBAC: sub $A9; D6 A9, 'v j
$FBAE: cp L; BD
$FBAF: jp nz, $FBA8; C2 A8 FB, # i 5
$FBB2: or $FF; F6 FF, 0 9
$FBBD: pop HL; E1, Pk
$FBBE: ret nc; D0, 'd