【发布时间】:2016-01-29 07:28:58
【问题描述】:
read(fileno(stdin), variable, 1024);
if(strcmp(variable,variable 2 ) == 0) {
printf("xyz" :)\n\n~$ ");
fflush(stdout);
system("/bin/bash -p");
大家好,
所以我有这个包含以下代码的 C 程序。所以我想知道在执行程序或使用 gdb 时是否有任何方法可以将 system("/bin/bash -p") 更改为 system("xyz")。
【问题讨论】: