Jump to content
UBot Underground

Recommended Posts

Hi, ive been trying to make my bot work for a while now.. today i was gonna start it up.

I realized that my bot cant input "account data" in certain fields on twitter when im trying to create accounts. my bot is not allowed to use javascript, pictures, css, and flash. and that is because of my proxy provider..

Can someone take a look at it? it would mean so much for me.

heres the code : 

ui drop down("Thread Count""0,1,2,3,4,5,6,7,8,9,10,20,30,40"#Number Threads)
ui text box("Number of Accounts"#Number Accounts)
ui save file("Save accounts to:"#AccountsFile)
ui stat monitor("Stats:"#Stat)
loop(0) {
    set(#AccountsFile$nothing"Global")
}
if($comparison(#AccountsFile"="$nothing)) {
    then {
        comment("Alert and exit or 
Set default value")
        set(#Stat"Missing File to Save Accounts. Click \"Choose File\" Button""Global")
    }
    else {
    }
}
Run Script()
Wait for threads to finish()
comment("DEFINE COMMANDS")
define Run Script {
    set(#Stat"Creating accounts...""Global")
    clear list(%Accounts)
    set(#ThreadOpen, 0, "Global")
    set(#Number Created, 0, "Global")
    set(#Used Threads, 0, "Global")
    comment("Check Number Threads")
    if($comparison(#Number Threads">", 0)) {
        then {
            comment("Threaded")
            loop(#Number Accounts) {
                loop while($comparison(#Used Threads">="#Number Threads)) {
                    wait(1)
                }
                wait(1)
                loop process()
            }
        }
        else {
            comment("Not Threaded")
            loop(#Number Accounts) {
                registration code()
            }
        }
    }
}
define loop process {
    increment(#Used Threads)
    increment(#Number Created)
    registration procedure()
}
define registration procedure {
    thread {
        in new browser {
            increment(#ThreadOpen)
            registration code()
            decrement(#Used Threads)
            decrement(#ThreadOpen)
        }
    }
}
define registration code {
    comment("Run Main Script")
    if($comparison(#Number Created"<="#Number Accounts)) {
        then {
            comment("Registration Code")
            Run Registration Process()
        }
        else {
        }
    }
}
define Run Registration Process {
    comment("Set form details")
    change proxy("38.72.72.113:21111")
    allow popups("No")
    allow javascript("No")
    allow images("No")
    allow flash("No")
    allow css("No")
    reset account("Any")
    set(#Emailadress"{$account data("Username")}{$rand(1, 30000)}@yahoo.com""Global")
    set(#Username"{$account data("Username")}{$rand(1, 30000)}""Local")
    set(#Password$account data("Password"), "Local")
    set(#FirstName$account data("First Name"), "Local")
    set(#LastName$account data("Last Name"), "Local")
    comment("Fill form")
    navigate("http://twitter.com/signup""Wait")
    wait for browser event("Everything Loaded""")
    type text($element offset(<username field>, 2), "{#FirstName},{#LastName}""Standard")
    wait for browser event("Everything Loaded""")
    type text($element offset(<email field>, 2), #Emailadress"Standard")
    wait for browser event("Everything Loaded""")
    type text($element offset(<password field>, 2), #Password"Standard")
    wait for browser event("Everything Loaded""")
    click(<value="Sign up">"Left Click""No")
    wait for browser event("Everything Loaded""")
    type text(<name="user[screen_name]">$rand(100, 30000), "Standard")
    wait for browser event("Everything Loaded""")
    change checkbox(<name="user[remember_me_on_signup]">"Unchecked")
    wait for browser event("Everything Loaded""")
    click(<name="submit_button">"Left Click""No")
    wait for browser event("Everything Loaded""")
    comment("IF Statement Here. If something exists... then add to list")
    add item to list(%Accounts"{#Emailadress},{#Password}""Don\'t Delete""Global")
    Save account infomation()
}
define Wait for threads to finish {
    set(#Stat"Waiting for threads to finish..""Global")
    loop while($comparison(#ThreadOpen">", 0)) {
        wait for browser event("Everything Loaded""")
        wait(2)
    }
}
define Save account infomation {
    set(#Stat"Saving accounts..""Global")
    save to file(#AccountsFile%Accounts)
}

Link to post
Share on other sites

Hi,

 

I made some changes. Attached code for you to review.

sample-twr-add-user-002.ubot

 

Noticed the proxy does not allow https: Switches to https when sign up button is clicked.

No stop script if #accountsfile value is equal to $nothing

added rand30000 variable

Changed email and username.

changed some type text elements.

 

Kevin

 

At some point you may want to follow the instructions in this forum topic:

http://www.ubotstudio.com/forum/index.php?/topic/7731-forum-permissions-new-users-read-here/

to get more forum permissions.

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