可以获取验证码然后提交用户名密码
2012-01-11 11:45:16| 分类:
网站安全研究
| 标签:
|举报
|字号大中小 订阅
Dim wb = New WebBrowser()
wb.Navigate("http://.........")
'等待加载完毕
While wb.ReadyState < WebBrowserReadyState.Complete
Application.DoEvents()
End While
'遍历寻找验证图像所在元素
For Each f As HtmlElement In wb.Document.Images
If f.GetAttribute("src").ToLower().EndsWith("personLogin_17.gif") Then
'将元素绝对定位到页面左上角
f.Style = "position: absolute; z-index: 9999; top: 0px; left: 0px"
'抓图
Dim b = New Bitmap(f.ClientRectangle.Width, f.ClientRectangle.Height)
wb.DrawToBitmap(b, New Rectangle(New Point(), f.ClientRectangle.Size))
PictureBox1.Image = b
Exit For
End If
Next
End Sub
评论这张
转发至微博
转发至微博
评论