Results 1 to 7 of 7

Thread: need help with webbrowser in a project

  1. #1

    Thread Starter
    Lively Member Charlie Stallings's Avatar
    Join Date
    Nov 2009
    Location
    Virginia
    Posts
    118

    Exclamation 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

  2. #2
    Hyperactive Member Lenggries's Avatar
    Join Date
    Sep 2009
    Posts
    353

    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?

  3. #3

    Thread Starter
    Lively Member Charlie Stallings's Avatar
    Join Date
    Nov 2009
    Location
    Virginia
    Posts
    118

    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 ...

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: need help with webbrowser in a project

    Quote Originally Posted by Charlie Stallings View Post
    ... 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?
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

    Thread Starter
    Lively Member Charlie Stallings's Avatar
    Join Date
    Nov 2009
    Location
    Virginia
    Posts
    118

    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 />

  6. #6
    Hyperactive Member Lenggries's Avatar
    Join Date
    Sep 2009
    Posts
    353

    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.

  7. #7

    Thread Starter
    Lively Member Charlie Stallings's Avatar
    Join Date
    Nov 2009
    Location
    Virginia
    Posts
    118

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width