I created a simple password program which takes a string when its invoked, and prints thank you if its correct. Now I want to write a brute forcer. The password is a 4 blocks 4 digit password ( example 1234 5678 9012 3456, so its called like this C:>pass 1234 5678 9012 3456 ). The problem is how to pass the output of brute_force.exe as the argument of pass.exe. I tried piping but its not working.
I tried this C:>brute_force | pass > ans.txt
So that the " Thank you" will be printed in ans.txt.