elizbeth 2 Posted May 21, 2013 Report Share Posted May 21, 2013 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? ThanksLiz Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted May 21, 2013 Report Share Posted May 21, 2013 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:pword40.186.20:1880:username:pword40.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 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted May 21, 2013 Report Share Posted May 21, 2013 Well. actually I know it works in my private proxy checker bot. I just have not tried in a regular bot the way you want to,It should tho. Quote Link to post Share on other sites
luis carlos 94 Posted May 21, 2013 Report Share Posted May 21, 2013 http://www.ubotstudio.com/forum/index.php?/topic/13060-unique-ip-per-thread/ Quote Link to post Share on other sites
elizbeth 2 Posted May 22, 2013 Author Report Share Posted May 22, 2013 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 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted May 22, 2013 Report Share Posted May 22, 2013 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 Quote Link to post Share on other sites
webpro 31 Posted May 29, 2013 Report Share Posted May 29, 2013 Man i LOVE THIS THREADThanks guys Quote Link to post Share on other sites
Security 17 Posted June 17, 2013 Report Share Posted June 17, 2013 Man i LOVE THIS THREADThanks guysI second that.. Very helpful. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.