Jump to content
UBot Underground

Proxy rotation


Recommended Posts

Hi Guys

 

I am working with the proxy rotation feature in ub4.

basically it will allow me to turn on proxy support and then allow me to toggle between normal proxies or private authenticated proxies.

 

Well that's the idea. I have not got passed the plain proxy setting yet. IP:Port

 

I based this off Lily's example but for some reason I am not getting the IP address set.

In whatsmyip the IP stays the same even though ot is rotating through the IP list.

 

Could someone run a test or indicate what I am doing wrong here as it can't be that difficult. I have read through nearly all the proxy examples.

 

I have attached the proxy list for the test

 

Thanks

 

ui check box("Activate Proxy Usage", #ProxyOn)

ui check box("Use Private Proxies:", #UsePrivateProxies)

ui open file("Proxies: IP:Port", #Proxies)

ui open file("Private proxies: IP:Post:U:P", #PrivateProxies)

ui stat monitor("Proxy list postition:", #ProxyListPosition)

ui stat monitor("Proxy list count:", $list total(%proxies))

if($comparison(#ProxyOn, "=", "true")) {

then {

if($comparison(#UsePrivateProxies, "=", "true")) {

then {

set(#ProxyList, #PrivateProxies, "Global")

}

else {

set(#ProxyList, #Proxies, "Global")

}

}

clear list(%proxies)

add list to list(%proxies, $list from file(#ProxyList), "Delete", "Global")

set(#ProxyListPosition, 0, "Global")

loop($list total(%proxies)) {

change proxy($list item(%proxies, #ProxyListPosition))

wait(3)

navigate("http://www.whatismyip.com/", "Wait")

wait(6)

increment(#ProxyListPosition)

}

}

}

proxylist.txt

Link to post
Share on other sites

I didn't run your code, but I do know this from experience...you need to refresh the browser after setting a new proxy (not just navigate, but refresh). you can use this:

 

 

 

run javascript("location.reload(true);")

 

 

John

Link to post
Share on other sites

Thanks that did the trick John.

 

Should this reload script not maybe be added to the change proxy command.

I will add this as a suggestion.

 

Thanks for the help the proxies. They being set now

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