I'm trying to write a python script that brute forces an ELF program. I need to input very large numbers into this ELF program for it to work. My current script is:
for x in range(10000000000000,100000000000000000):
print(x)
And then on the command line:
python script.py | ./program
I have identified 2 errors with this, the first is that it gives me a memory error because of the size of the numbers. The second is that the program keeps running after the input. I need it to input into the program, then end the program and input the next value.
The size of the numbers must remain, inputting low numbers will not crack the program.