HelloInsomnia 1103 Posted June 12, 2013 Report Share Posted June 12, 2013 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) } 3 Quote Link to post Share on other sites
bestmacros 60 Posted June 13, 2013 Report Share Posted June 13, 2013 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 1 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.