Jump to content
UBot Underground

Efficient Proxy Coding Advice


Recommended Posts

So I'm working on my first public bot that uses proxies. Because people (in general) are stupid I'm trying to make it as mistake proof as possible. I don't need someone to explain to me how to make proxies work. That is easy enough as I have proxies working and changing already.

 

What I'm am hoping to get is some advise on how to implement them efficiently. I understand how to do this, but I think I'm just coding it really inefficiently as the bot is really bogging down as I'm working.

 

This particular part of the bot isn't anything special. It is simply creating hotmail accounts to be used on another part of the bot.

 

If anyone has some advise or code examples it would be greatly appreciated.

Link to post
Share on other sites

ok so after hours of coding and recoding I think I have this figured out...

 

loop while($not($exists(<id="idDiv_PWD_UsernameExample">)) AND $comparison($add(#proxy num, 1), "<=", $table total rows(&proxies))) {
    change proxy($table cell(&proxies, #proxy num, 0))
    change browser properties()
    change useragent()
    navigate("http://hotmail.com", "Wait")
    wait complete()
    increment(#proxy num)
    wait(1)
}

If anyone has any thoughts or a better implementation I would be happy to hear it.

 

This is looking to see if the username field does not appear on the page and if the IP number in the table is less than or equal to the total number of proxies. Then it changes the proxy and does the check again.

Link to post
Share on other sites

ui open file("Email File:", #emailfile)
ui text box("Private proxy user name:", #privateproxyusername)
ui text box("Private proxy password", #privateproxypassword)
add item to list(%proxies, $list from file(#emailfile), "Delete", "Global")
clear cookies
set user agent("Internet Explorer 6")
set referrer("https://google.ca")
set proxy credentials(#privateproxyusername, #privateproxypassword)
change proxy($next list item(%proxies))

Edited by AutomationNinja
Link to post
Share on other sites
ui open file("Email File:", #emailfile)

ui text box("Private proxy user name:", #privateproxyusername)

ui text box("Private proxy password", #privateproxypassword)

add item to list(%proxies, $list from file("C:\\"), "Delete", "Global")

clear cookies

set user agent("Internet Explorer 6")

set referrer("https://google.ca")

set proxy credentials(#privateproxyusername, #privateproxypassword)

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

well the proxies are stored in a table from another part of the bot and the first part of the proxy changing and credentials setting is done previously. Sorry I didn't mention that above. I was really having a hard time checking proxies and moving on to another if the proxy was bad. I had all kinds of if then commands.

Link to post
Share on other sites
  • 1 year later...

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