Linux 如何将文件中的多个输入重定向到gdb中正在调试的二进制文件?

Linux 如何将文件中的多个输入重定向到gdb中正在调试的二进制文件?,linux,gcc,gdb,buffer-overflow,exploit,Linux,Gcc,Gdb,Buffer Overflow,Exploit,我正在gdb中调试的二进制文件首先要求我输入一个id,然后如果id有效,则要求输入第二个输入 gef➤ run Agent ID : 48093572 //This is the first input which the user has to enter Login Validated Main Menu: 1. Extraction Points 2. Request Extraction 3. Submit Report 0. Exit Enter selection:

我正在gdb中调试的二进制文件首先要求我输入一个id,然后如果id有效,则要求输入第二个输入

gef➤  run

Agent ID : 48093572 //This is the first input which the user has to enter

Login Validated

Main Menu:

1. Extraction Points

2. Request Extraction

3. Submit Report

0. Exit

Enter selection:   // This is the second input the user has to enter

如果您没有找到解决方案,或者其他任何人需要这一点信息,我如何使用“传递来自文件的两个输入,这对我很有用:

gdb$ r < <(cat 1_intest.txt 2_intest.txt)
gdb$r<
gdb$ r < <(cat 1_intest.txt 2_intest.txt)