Jump to content
UBot Underground

How To Rotate Proxies With Multithreaded Browsers


Recommended Posts

Hi, i can multithread the browsers, it is just when the proxies reach the total list they stop rotating. I cant seem to get the code right by making it set back to 0 

 

 

if($comparison(#num created10"<"#number accounts10)) {
        then {
            if($comparison($list position(%proxy breakdown), ">"$list total(%proxys))) {
                then {
                    set list position(%proxys, 0)
                }
                else {
                }
            }
            if($comparison(%proxys"!="$nothing)) {
                then {
                    clear list(%proxy breakdown)
                    add list to list(%proxy breakdown$list from text($next list item(%proxys), ":"), "Delete""Global")
                    if($comparison($list total(%proxy breakdown), ">", 3)) {
                        then {
                            set proxy credentials($list item(%proxy breakdown, 2), $list item(%proxy breakdown, 3))
                            change proxy("{$list item(%proxy breakdown, 0)}:{$list item(%proxy breakdown, 1)}")
                        }
                        else if($comparison($list total(%proxy breakdown), "=", 3)) {
                            change proxy("{$list item(%proxy breakdown, 0)}:{$list item(%proxy breakdown, 1)}:{$list item(%proxy breakdown, 2)}")
                        }
                        else {
                            change proxy("{$list item(%proxy breakdown, 0)}:{$list item(%proxy breakdown, 1)}")
                        }
                    }
                    wait(1)

 

 

Please help, regards

Link to post
Share on other sites

First of all, when pasting your code in my uBot it contains errors.

 

Second, why not simply use:

change proxy($random list item(%your proxy list here))

That code will randomly (and unlimited) pick a proxy from your list and use it.

 

If you want to run it in order, i.e. you have a list of 100 proxies and want it to rotate from 1-100 and then reset it and start again from 1-100 then you could add a counter, something like:

comment("// add the Set Proxycount on the very top of your script")
set(#proxycount, 0, "Global")
comment("// ALL YOUR OTHER CODE HERE")
comment("// START MULTITHREADING")
change proxy($next list item(%your proxy file))
increment(#proxycount)
comment("// ALL YOUR OWN MULTITHREAD CODE HERE")
comment("// Add the following code below to the END of the multithread session")
if($comparison(#proxycount, ">=", 100)) {
    then {
        set list position(%your proxy file, 0)
        set(#proxycount, 0, "Global")
    }
    else {
    }
}
comment("// END MULTITHREADING")
Link to post
Share on other sites

Just thought of a better way of the second example i posted above.

comment("// add the Set Proxycount on the very top of your script")
set(#proxycount, 0, "Global")
set(#totalproxies, $list total(%your proxy file), "Global")
comment("// ALL YOUR OTHER CODE HERE")
comment("// START MULTITHREADING")
change proxy($next list item(%your proxy file))
increment(#proxycount)
comment("// ALL YOUR OWN MULTITHREAD CODE HERE")
comment("// Add the following code below to the END of the multithread session")
if($comparison(#proxycount, ">=", #totalproxies)) {
    then {
        set list position(%your proxy file, 0)
        set(#proxycount, 0, "Global")
    }
    else {
    }
}
comment("// END MULTITHREADING")

This code will automatically detect how many proxies are in your proxyfile and will reset to the first proxy when the end of the list is reached.

  • Like 1
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...