read(fileno(stdin), variable, 1024); if(strcmp(variable,variable 2 ) == 0) { printf("xyz" :)\n\n~$ "); fflush(stdout); system("/bin/bash -p"); hey guys,
so have c program contains following piece of code. wan know if there way change system("/bin/bash -p") system("xyz") while executing program or gdb.
it easier if first set /bin/bash -p variable char path[] = "/bin/bash -p" , use set command in gdb
(gdb) set path="new/path/"
Comments
Post a Comment