need help with webbrowser in a project
ok my project is going to be able to add friends to my myspace group i got it adding the people and everything but i want it to bypass accounts that require email lastname or captcha entrys how would i go about doing this? here is my code so far if you can correct or improve it any feel free to do so
Code:
Sub Addem(BrowSerA As WebBrowser, List As ListBox)
On Error GoTo Error:
Dim i As Integer
For i = 0 To List.ListCount - 1
BrowSerA.Navigate2 "http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendId=" & List.List(i)
Do Until BrowSerA.ReadyState = 4
DoEvents
Form1.Text3.Text = BrowSerA.Document.documentelement.innerhtml
Loop
BrowSerA.Document.All("ctl00_ctl00_ctl00_cpMain_cpMain_cpfMainBody_AddFriendRequestButtons_btnAddToFriends").Click
Form1.Label1.Caption = Form1.Label1.Caption + 1
pause 1
Do Until BrowSerA.LocationURL = ("http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_confirm&statusCD=0&friendId=") & List.List(i)
DoEvents
Loop
Next
Error:
List.ListIndex = List.ListIndex + 1
BrowSerA.Navigate "http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendId=" & List.List(i)
End Sub
Re: need help with webbrowser in a project
CAPTCHA is designed to prevent exactly what you are trying to do, and with good reason. So what exactly do you want to do with this program that you need to ask how to bypass security protocols?
Re: need help with webbrowser in a project
ok maybe you took that wrong lol wow ill show my source all it is is a program that sends myspace friend requests not anything illegal if you want ill show my source ...
Re: need help with webbrowser in a project
Quote:
Originally Posted by
Charlie Stallings
... but i want it to bypass accounts that require email lastname or captcha entrys ...
If I understand correctly, you are not trying to bypass, but rather just ignore those ppl that require additional security. For those of us that don't know, how is your code to know whether email or captcha is required? Whatever page you are navigating to, might have that info or clues. What are those clues?
Re: need help with webbrowser in a project
yeah thats right not bypass just ignore them like skip them all together and i can get the innerhtml of the document which containts the stuff but how would i check to see if that page contains the captcha or stuff?
heres the captcha form
Code:
<div id="ctl00_ctl00_ctl00_cpMain_cpMain_cpfMainBody_VerificationPanel_mainPanel" class="verificationRequired">
<div id="ctl00_ctl00_ctl00_cpMain_cpMain_cpfMainBody_VerificationPanel_captchaPanel" class="addToFriendsView">
<div class="privacyRequiredViewExclamationIcon">
<img id="exclamation" alt="" src="http://x.myspacecdn.com/modules/friends/static/img/octagonmuted.gif" />
</div><div class="privacyRequiredCaptchaWrapper">
LuPiT@'s settings require that you solve a CAPTCHA to add them as a Friend.
<br />
Re: need help with webbrowser in a project
I see I misread your OP. I apologize for any undue insinuations.
In general, you would need to follow each link and examine the resulting page, parse it, and then determine if there is a bot test or not. Here is where your question becomes a domain specific question, and to get a specific answer, you would need to show us an example of every possibility. You will need to determine a heuristic that can distinguish between a page that requires a CAPTCHA or some other test and between a page that contains no such test or that contains a test you can fulfill. For CAPTCHA, it's probably pretty simple... just search for the term "CAPTCHA". However, it may be easier to identify a page that contains no test than it is to try to identify all tests. In any case, everything depends on how mySpace actually constructs those pages, so I'd suggest downloading the sources and studying them. Find out what distinguishes one type of test from another, and then see if there's a consistent flag that you can read in and use to determine if this page has a test.
Re: need help with webbrowser in a project
i dont get it i can get the info into the richtextbox like the html data but how to i find the strings within the data?