c - Jump to register with return to libc -
this vulnerable script:
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]) { char buffer[30]; strcpy(buffer, argv[1]); return 0; } i'm trying exploit script both aslr , nx on. going use return libc method aslr, , wondering if jump register technique possible jump library. example, if location of library stored in eax, can have return address point opcode of "jump eax"? or there other method bypassing both aslr , nx @ same time? thanks
i had thought "return libc" (or library or program code) used around nx. believe have backwards.
aslr used make "return libc" attack much, harder pull off. around aslr need either have way scout library location such through printf format string vulnerability, or need run exploit hundreds of times until hit correct random location.
Comments
Post a Comment