It's not possible to simply snap your fingers and create a script out of thin air.
I think programmers are magicians. They wave a magic wand and solve puzzles.

Can you share some code?

Buggy

not reached to end of keyspace!
There is no end to the keyspace in my script!
It runs in full random mode, creating an endless loop.
Can you make the switch to have both random and sequential modes, like in Keyhunt?