Jump to content
UBot Underground

Different Proxies In Multiple Thread


Recommended Posts

Hello Everyone,

 

I have just written a bot which would run in multithread manner, in each thread different browser and in each browser of this thread, we set a proxy.

Am trying to achieve such that each of the thread should be running with its own proxy.

But when setting a proxy credential, it gets set for the whole bot and not for individual thread.

How can i achieve individual proxy get set for individual thread?

Is this something possible in ubot?

 

Thanks

Liz

Link to post
Share on other sites

Depends on how you did your threading. Try something like this...this is how I'm going to do it if it works. I just did this up real quick.

 

comment("the set below represents the file you would choose")
set(#private proxy list"40.186.20:4280:username:pword
40.186.20:1880:username:pword
40.186.20:2180:username:pword""Local")
clear list(%private proxies)
add list to list(%private proxies$list from text(#private proxy list$new line), "Delete""Global")
thread {
    in new browser {
        set(#p proxy next item$next list item(%private proxies), "Local")
        add list to list(%proxy breakdown$list from text(#p proxy next item":"), "Delete""Local")
        set(#proxy$list item(%proxy breakdown, 0), "Local")
        set(#port$list item(%proxy breakdown, 1), "Local")
        set(#username$list item(%proxy breakdown, 3), "Local")
        set(#password$list item(%proxy breakdown, 4), "Local")
        set proxy credentials(#username#password)
        change proxy("{#proxy}:{#port}")
    }
}

 

 

I had to do this anyway as you will see if you go to this thread on the last page in my post #44 & #46

 

http://www.ubotstudio.com/forum/index.php?/topic/10042-new-v4-tutorial-multi-threading-example/page-3

 

Lemme know if it works like this cuz I'm tired and going to bed.

 

HTH,

TC

Link to post
Share on other sites

Traffik,

 

Thanks a lot for the assistance.

But in your code, you used only one thread and that would work fine.

Can you please put that thread in a loop of 4 and create 4 threads and assign different proxy to each of the thread and may be navigate to whatismyip.com and check if the proxies are getting assigned properly.

 

This is where am failing.

 

Thanks in advance for the assistance

Link to post
Share on other sites

Here you go have fun with it. You can also check in the debugger all the list to see. I put a wait so you can look in the different windows to verify.

 

http://www.ubotstudio.com/forum/index.php?/topic/13995-free-multi-threaded-private-proxy-checker/

 

HTH,

TC

Link to post
Share on other sites
  • 3 weeks later...

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