Jump to content
UBot Underground

Proxy51 : Taking advantage of the API script


Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

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)
}

  • Like 2
Link to post
Share on other sites

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

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