Jump to content
UBot Underground

[GET] Script: Use public and private proxies at the same time


Recommended Posts

I needed this for something so I made it up and it works well. This way you can upload a file with both public and private proxies or at the very least the user can upload a list of private proxies and keep it in the standard format which is:

 

ip:port:username:password

 

 

set(#proxies, "", "Global")
clear list(%proxyList)
add list to list(%proxyList, $list from text(#proxies, $new line), "Delete", "Global")
loop($list total(%proxyList)) {
    load html("")
    clear cookies
    set(#checkPrivate, $nothing, "Global")
    set(#curProxy, $next list item(%proxyList), "Global")
    set(#checkPrivate, $find regular expression(#curProxy, "([0-9\\.]+\\:\\d\{2,5\})\\:[0-9a-zA-Z]+"), "Global")
    if($comparison(#checkPrivate, "=", $nothing)) {
        then {
            change proxy(#curProxy)
        }
        else {
            set(#curProxyIp, $find regular expression(#curProxy, "([0-9\\.]+\\:\\d\{2,5\})"), "Global")
            set(#getCreds, $find regular expression(#curProxy, "(?<=\\[a-zA-Z0-9]+\\:[a-zA-Z0-9]+$"), "Global")
            set(#proxyUsername, $find regular expression(#getCreds, "[a-zA-Z0-9]+(?=\\:)"), "Global")
            set(#proxyPassword, $find regular expression(#getCreds, "(?<=\\[a-zA-Z0-9]+"), "Global")
            change proxy(#curProxyIp)
            set proxy credentials(#proxyUsername, #proxyPassword)
        }
    }
    navigate("http://ipchicken.com/", "Wait")
    wait(10)
}
  • Like 3
Link to post
Share on other sites

I've made similar script by simply adding proxy data to list (split by ":") and checking length of list total  - if list has 4 items it will be used as private proxy if 2 it will be used as public

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