Brute-force Using Post Method

33 views
Skip to first unread message

th3ma...@gmail.com

unread,
Sep 14, 2014, 11:57:20 PM9/14/14
to iron...@googlegroups.com
Hey Team,

I was trying to test my skills on brute force using the following link on my test site:

https://gist.githubusercontent.com/Lavakumar/7181444/raw/WAP_Challenge_1_Solution_in_Python.py

Just wondering how this can be converted to POST method as the above code is meant for GET.

My Form contents:

<form action='' method='POST'>
Username:
<input type='text' name='username'><br><br>
Password:
<input type='password' name='password'><br><br>
<input type='submit' value='Submit' name='Submit button'><br><br>
</form>

Any additional info needed, shoot here.

M_M

Lavakumar Kuppan

unread,
Sep 15, 2014, 4:39:19 AM9/15/14
to iron...@googlegroups.com, th3ma...@gmail.com
Hi,
 
For you case you would have to change the line
r.Query.Set("password", password)
to
r.Body.Set("password", password)
 
This will ensure the Body parameter named 'password' is updated instead of query parameter with that name.
 
Thanks,
Lava

--
You received this message because you are subscribed to the Google Groups "ironwasp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ironwasp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages