Hack Forums
[Shell] how do i make a password bruteforce attacker in batch - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] how do i make a password bruteforce attacker in batch (/showthread.php?tid=3598363)



how do i make a password bruteforce attacker in batch - danielpherlio - Jul 4, 2013

how do i make a bruteforce attacker in batch code please?


* - ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ - Jul 4, 2013

Bruteforce in batch? I've never even thought of that. It would have to recognize when its scanning through a character when to stop if that character is correct. Like if the password is HeLlOwOrLd1? it will need to recognize uppercase, lowercase, numbers, and special characters, and I don't think that batch scripting has that sort of power. I could be completely wrong though. If anyone knows anything further, I would love to see this or how you would code it.


* - Nakamoto. - Jul 4, 2013

It is not possible in batch, not for logins online anyway. Maybe for folders but like most bruteforce tools you would need combo list.


* - Aussie - Jul 4, 2013

Try python.

If a website uses php get (minecraft site uses that I think), you can do that easily.


* - White Light - Jul 4, 2013

Batch has no (direct) way of interfacing with the keyboard, so unless you used some kind of third party app to type out letters or strings, it wouldn't work. That being said, if you were going to use a third-party app, you may as well do the whole damn thing in that language.


* - SIM-1073426 - Jul 5, 2013

I've made some dictionary attackers for some sites in Batch. For Instagram and L-eakforums I think. It's really simple if you know what you're doing. However around 70% wa in VBScript. My advice is to learn Python instead.


* - lolcatz - Jul 8, 2013

you can create a file then use something to use it to bruteforce

Code
@echo off
setlocal enableDelayedExpansion
set chars=abcdefghijklmnopqrstuvwxyz
set maxPos=26
del output.txt 2>nul

>prior.txt echo(""
for /l %%I in (1 1 %1) do (
  >new.txt (
    for /f %%A in (prior.txt) do for /l %%N in (0 1 %maxPos%) do echo(%%~A!chars:~%%N,1!
  )
  type new.txt>>output.txt
  move /y new.txt prior.txt >nul
)
del prior.txt

open a cmd windows where it is located then type filename number

number being how many chars so if i named it lel it be
lel 4 it would make a 4 char txt file of the alphabet