Unix Number Generator
Hello peoples!
I have recently discovered the wonders of Hydra, a brute force tool that utilizes many networking protocols for entry. It is a great tool, but it has a downside. The brute force only allows login attempts from lists, it has no number/letter generator. So basically, it can do dictionary attacks, which is great, but limited. I was wondering if someone had a number generator that i could use the output into a list, indirectly using a brute force number generator. I kinda figured it would be impossible for letters, and would be easier for numbers. Does anyone have something where it takes a numerical value as an input, and generates all numbers with that number of digits? Or, better yet, can someone point me in the right direction. My computer is on a bash unix shell, and if you peoples could help that would be great! Thanks!
If you don't know C++ then it's easy as hell to do a number generator. Something like this off the top of my head works on windows:
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
ofstream file ( "output_file.txt" );
int start_number = 0;
int end_number = 1000000;
for (int i=start_number;i<=end_number;i++)
{
file << i << endl;
}
file.close();
return 0;
}```
It will write all numbers from zero to one million into output_file.txt. I don't know much about unix though but I'm guessing it will be slightly different.