Developing A Bruteforce Script Using Batch

How can i make a bruteforcing script in batch language? Here is the scenario so any answer according to this will be appreciated. I have a website in which by changing id= value results page changes. For example: If i type https://mywebsite.com/php?id=12 i get different result and when i type https://mywebsite.com/php?id=13 i get different result. So i wanna bruteforce all those php?id= value automatically and save the obtained results in clearly readable text format.

1 Like

You want absolutely to make the script in batch?
I have really bad memories when I was programming with this language.
I think it’s pretty easy to do it with bash and python.

I would then rather consider making it in Python. Are there any resources that will help in getting started? as all i am getting is bruteforcing script for Gmail, Facebook and Instagram.

1 Like

Okay. Can you send me dm for answer me some questions about the site (because the part of getting the results every page is a bit complex for some pages.)
If you want you can send me here or on twitter: https://twitter.com/chr_jim :wink:

The main part of the code without getting the results is this:

main_target_link = 'https://mywebsite.com/php?id='
for i in range(1,100): # i will be our id number (by default it will go from 1-99!)
  id_number = str(i)
  final_target = main_target_link + id_number
  ...<The code for scraping every page>...
1 Like

Also if you want to start learning python (learn python3!) just do some projects.
I learned good enough python3 the previous week cause I had to do some projects in python3 for my university :joy: .
I learned with the same way bash…So I suggest you to start some projects with python and read stackoverflow for every problem you have :wink:

In bash this script may help you:

for i in {1..9999}
do
    wget --content-disposition --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" "https://mywebsite.com/php?id=$i"
done

Apply execution permissions
chmod +x script.sh

then run:
./script.sh

hope it helps!

1 Like