Jump to content
UBot Underground

Using Proxies - I have no idea what I am doing


Recommended Posts

Heyall'

 

I am trying to build a bot that switches proxies. But no dice so far.

 

So in my UI I have a check box to "use proxies" a drop down so they choose IP or HTTP, a private proxie file, a field for private proxie user name and another field for private proxie password.

 

I am also not sure what should have the bot do if they choose HTTP. I figured they could put their URL's in the private proxie file instead of the I.P.'s. - I figure that would work. Whaddya think?

 

This is the code I am using:

 

define Set PROXIE COMMANDS {

clear list(%proxys)

add list to list(%proxys, $list from file(#privateproxiefile), "Delete", "Global")

set list position(%proxys, 0)

}

define Change Proxy {

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

then {

if($comparison(#proxietype, "=", 2)) {

then {

set proxy credentials(#privateproxieusername, #privateproxipassword)

}

change proxy($next list item(%proxys))

else {

if($comparison(#proxietype, "=", "HTTP")) {

then {

navigate(%proxys, "Wait")

}

else {

}

}

}

}

}

else {

}

}

}

Set PROXIE COMMANDS()

Change Proxy()

Link to post
Share on other sites

your in luck i was just re writing one for private proxies

 

ui check box("Use Proxies", #use proxies)
ui open file("Proxies", #proxies)
ui text box("Proxy Username", #privateproxyusername)
ui text box("Proxy Password", #privateproxypassword)
clear list(%proxies)
add list to list(%proxies, $list from file(#proxies), "Delete", "Global")
if($comparison(#use proxies, "=", "true")) {
then {
 change proxy($random list item(%proxies))
 set proxy credentials(#privateproxyusername, #privateproxypassword)
 navigate("https://www.whatismyip.com", "Wait")
 wait(4)
}
}

  • Like 3
Link to post
Share on other sites

Heyall'

 

I am trying to build a bot that switches proxies. But no dice so far.

 

So in my UI I have a check box to "use proxies" a drop down so they choose IP or HTTP, a private proxie file, a field for private proxie user name and another field for private proxie password.

 

I am also not sure what should have the bot do if they choose HTTP. I figured they could put their URL's in the private proxie file instead of the I.P.'s. - I figure that would work. Whaddya think?

 

This is the code I am using:

 

define Set PROXIE COMMANDS {

clear list(%proxys)

add list to list(%proxys, $list from file(#privateproxiefile), "Delete", "Global")

set list position(%proxys, 0)

}

define Change Proxy {

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

then {

if($comparison(#proxietype, "=", 2)) {

then {

set proxy credentials(#privateproxieusername, #privateproxipassword)

}

change proxy($next list item(%proxys))

else {

if($comparison(#proxietype, "=", "HTTP")) {

then {

navigate(%proxys, "Wait")

}

else {

}

}

}

}

}

else {

}

}

}

Set PROXIE COMMANDS()

Change Proxy()

 

 

part of the problem with your code was the 3 different spellings of

 

proxi

 

proxy

 

and proxie

 

keep it all

 

proxy ( correct spelling )

 

and it should also work

  • Like 1
Link to post
Share on other sites

thanks I will plug it in as see what happens. One more question. in my proxy file I only had IP's am I suppose to put the port in their as well?

 

Like so: ip,port

 

 

yes put the 127.1.1.1:80 (example ip only)

 

port in the text file

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