Jump to content
UBot Underground

Facebook fighting bot scripts.. Need Help


Recommended Posts

Hey all,

Had a bot running for Facebook for the last couple of months.  Looks like they implemented some anti bot measures.  Is there any way around this?

http://screencast.com/t/CKFVG7IFI

 

When the bot goes to click "upload photo/video"  it somehow knows it's coming from a bot.  Is there a work around for this?

 

Please help!

 

Here's what I have..

 

navigate("http://www.facebook.com", "Wait")
type text($element offset(<email field>, 0), #FBemail, "Standard")
type text($element offset(<password field>, 0), #FBpassword, "Standard")
click(<login button>, "Left Click", "No")
wait for browser event("Everything Loaded", "")
navigate("https://www.facebook.com/{#Pagename}", "Wait")
wait for browser event("Everything Loaded", "")
loop($list total(%images)) {
    set(#ImageNumber, $next list item(%images), "Global")
    wait for browser event("Everything Loaded", "")
    wait(2)
    wait for browser event("Everything Loaded", "")
    wait(2)
    click(<title="Choose a file to upload">, "Left Click", "No")
    wait(2)

 

have tried all different variations with innerhtml, tag, pictures etc... nothing seems to work.

Thanks for any help, this is really screwing me up right now.

 

-Wouldjaball

Edited by wouldjaball
Link to post
Share on other sites

Here is a work around that works.

ui open file("Image:", #file)
click(<innertext="Add Photo / Video">, "Left Click", "No")
wait for element(<name="composer_unpublished_photo[]">, "", "Appear")
change file field(<name="composer_unpublished_photo[]">, $nothing)
wait for element(<name="xhpc_message_text">, "", "Appear")
wait for browser event("Everything Loaded", "")
change file field(<outerhtml=w"<input type=\"file\" class=\"*\" title=\"Choose a file to upload\" name=\"composer_unpublished_photo[]\" id=\"*\" multiple=\"\">">, #file)
wait(1)
wait for browser event("Everything Loaded", "")
if($exists(<name="ok">)) {
    then {
        click(<name="ok">, "Left Click", "No")
        wait for element(<name="ok">, "", "Disappear")
    }
    else {
    }
}

  • Like 2
Link to post
Share on other sites

Hey guys... thanks for all of your help, but it's still not working...  I changed user agent to Safari and here's what I have code wise... the red line is where it seems to stall:

wait for browser event("Everything Loaded", "")
    wait(2)
    wait for browser event("Everything Loaded", "")
    wait(2)

 

This is where the code seems to stall...  It no longer recognizes the innertext, and you can't change file field until that has been clicked. 
    click(<innertext="Add Photo / Video">, "Left Click", "No")
    wait for element(<name="composer_unpublished_photo[]">, "", "Appear")
    change file field(<name="composer_unpublished_photo[]">, $nothing)
    wait for element(<name="xhpc_message_text">, "", "Appear")
    wait for browser event("Everything Loaded", "")
    change file field(<outerhtml=w"<input type=\"file\" class=\"*\" title=\"Choose a file to upload\" name=\"composer_unpublished_photo[]\" id=\"*\" multiple=\"\">">, #ImageNumber)
    wait(2)

 

Thanks for your help!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...