merkaba 36 Posted October 13, 2012 Report Share Posted October 13, 2012 Lately I've been lazy, figured I'd toss this out there for people using proxy51 for shared proxies. It's actually a combined script that loads proxies from proxy51, sets a random user agent, clears cookies/flash cookies etc First thing you should do is set the delimiter : Bot > Properties Set to : Now to load the table create table from file("YOUR_PROXY51_API_LINK", &proxy) Everything else : define clear tracking { set(#agent, $rand(1, 969), "Global") if($comparison(#agent, "<=", 167)) { then { set user agent("Internet Explorer 10") } else { if($comparison(#agent, "<=", 511)) { then { set user agent("Firefox 6") } else { if($comparison(#agent, "<=", 928)) { then { set user agent("Chrome") } else { if($comparison(#agent, "<=", 969)) { then { set user agent("Safari") } else { } } } } } } } } shell("cmd.exe /c rmdir /s /q \"%APPDATA%\\Macromedia\\Flash Player\\#SharedObjects\\\"") clear cookies set proxy credentials($table cell(&proxy, #row, 2), $table cell(&proxy, #row, 3)) change proxy("{$table cell(&proxy, #row, 0)}:{$table cell(&proxy, #row, 1)}") } Remember to set Row ahead of time (0), and increment it on each pass. Quote Link to post Share on other sites
Big Jay 35 Posted October 16, 2012 Report Share Posted October 16, 2012 I am playing with you code, but ran into a error when running it... the error lies with the #row variable. Does it need to be set to something. I am still kinda noobish with ubot... I'll see what I can figure out. Quote Link to post Share on other sites
merkaba 36 Posted October 16, 2012 Author Report Share Posted October 16, 2012 I am playing with you code, but ran into a error when running it... the error lies with the #row variable. Does it need to be set to something. I am still kinda noobish with ubot... I'll see what I can figure out. set(#row, 0, "Global") set that once ahead of time somewhere where it'll run (not in a loop usually). increment(#row) that in the loop to move to the next csv row whenever you need to. A simple example would be something like this. define clear tracking { set(#agent, $rand(1, 969), "Global") if($comparison(#agent, "<=", 167)) { then { set user agent("Internet Explorer 10") } else { if($comparison(#agent, "<=", 511)) { then { set user agent("Firefox 6") } else { if($comparison(#agent, "<=", 928)) { then { set user agent("Chrome") } else { if($comparison(#agent, "<=", 969)) { then { set user agent("Safari") } else { } } } } } } } } shell("cmd.exe /c rmdir /s /q \"%APPDATA%\\Macromedia\\Flash Player\\#SharedObjects\\\"") clear cookies set proxy credentials($table cell(&proxy, #row, 2), $table cell(&proxy, #row, 3)) change proxy("{$table cell(&proxy, #row, 0)}:{$table cell(&proxy, #row, 1)}") } create table from file("YOUR_PROXY51_API_LINK", &proxy) set(#row, 0, "Global") loop($table total rows(&proxy)) { clear tracking() navigate("http://www.whatsmyip.org/", "Wait") wait(1) increment(#row) } 2 Quote Link to post Share on other sites
Big Jay 35 Posted October 16, 2012 Report Share Posted October 16, 2012 Thanks M! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 17, 2012 Report Share Posted October 17, 2012 also stead of the nested if statements make it into ifelse ifelse ifelse ifelse Quote Link to post Share on other sites
Big Jay 35 Posted October 17, 2012 Report Share Posted October 17, 2012 @TJ... So like this: define clear tracking { set(#agent, $rand(1, 969), "Global") if($comparison(#agent, "<=", 167)) { then { set user agent("Internet Explorer 10") } else if($comparison(#agent, "<=", 511)) { then { set user agent("Firefox 6") } } else if($comparison(#agent, "<=", 928)) { then { set user agent("Chrome") } } else if($comparison(#agent, "<=", 969)) { then { set user agent("Safari") } } else { } } shell("cmd.exe /c rmdir /s /q \"%APPDATA%\\Macromedia\\Flash Player\\#SharedObjects\\\"") clear cookies set proxy credentials($table cell(&proxy, #row, 2), $table cell(&proxy, #row, 3)) change proxy("{$table cell(&proxy, #row, 0)}:{$table cell(&proxy, #row, 1)}") } create table from file("YOUR_PROXY51_API_LINK", &proxy) set(#row, 0, "Global") loop($table total rows(&proxy)) { clear tracking() navigate("http://www.whatsmyip.org/", "Wait") wait(1) increment(#row) } Just trying to understand the best practices... 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.