How to run Windows OS cmd.exe multiple commands one after another,
I use ncrack
, commands
I manually open cmd.exe and I paste this code:
ncrack --user Admin -P pass1.txt <IPAddress>:3389 -oN good.txt -f
When pass1.txt is finished I paste manually to cmd.exe the second command, which contains the Pass2.txt etc...:
ncrack --user Admin -P pass2.txt <IPAddress>:3389 -oN good.txt -f
then I paste manually to cmd, Pass.3txt
ncrack --user Admin -P pass3.txt <IPAddress>:3389 -oN good.txt -f
How can I run all commands automatically in a batch file, one after another and not all at the same time?
ncrack
as example? Becausencrack
targets particular IP? If so, the right thing to do is to change the example command, not to nuke the entire question. If you tell us your reasons we may work something out.<IPAddress>
in case that is your concern as well.