Jump to content
UBot Underground

how to multi-thread with proxies?


Recommended Posts

Hi, how would i be able to multi thread X amount of threads with X amount of times to sign up for accounts on X site.

 

I have used a format from ubotdev, and works fine but how do i change proxies each time. Rotate through my proxy list each time? Is it the same as non multithreading?

 

Regards

Link to post
Share on other sites

Take a look at this, hope it helps you out

clear table(&proxy table)
clear table(&accounts table)
clear table(&current proxy table)
create table from file(#proxies, &proxy table)
create table from file(#accounts file, &accounts table)
set(#account row, 0, "Global")
set(#row, 0, "Global")
set(#Tcount, 0, "Global")
set(#num Threads, 0, "Global")
set(#pics liked, 0, "Global")
loop(#Loopcnt) {
    loop while($comparison(#num Threads, ">=", #MaxThreads)) {
        wait(1)
    }
    InitiateThreading()
}
define InitiateThreading {
    increment(#num Threads)
    increment(#Tcount)
    Routine2thread()
}
define Routine2thread {
    set(#local row, #row, "Local")
    increment(#row)
    set(#local account row, #account row, "Local")
    increment(#account row)
    thread {
        in new browser {
            if($file exists(#proxies)) {
                then {
                    change proxy("{$table cell(&proxy table, #local row, 0)}:{$table cell(&proxy table, #local row, 1)}")
                    set proxy credentials($table cell(&proxy table, #local row, 2), $table cell(&proxy table, #local row, 3))
                    wait(2)
                }
                else {
                }
            }
            type text(<username field>, $table cell(&accounts table, #local account row, 0), "Standard")
            type text(<password field>, $table cell(&accounts table, #local account row, 1), "Standard")
            decrement(#num Threads)
        }
    }
}
ui open file("Accounts:", #accounts file)
ui open file("Proxies:", #proxies)
ui drop down("Max. Threads to Open", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,68,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,168,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,231,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,268,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300", #MaxThreads)
ui text box("Loop Count", #Loopcnt)
ui stat monitor("Total Threads Created", #Tcount)
ui stat monitor("No. of Open Threads", #num Threads)
  • Like 2
Link to post
Share on other sites

 

Take a look at this, hope it helps you out

clear table(&proxy table)
clear table(&accounts table)
clear table(&current proxy table)
create table from file(#proxies, &proxy table)
create table from file(#accounts file, &accounts table)
set(#account row, 0, "Global")
set(#row, 0, "Global")
set(#Tcount, 0, "Global")
set(#num Threads, 0, "Global")
set(#pics liked, 0, "Global")
loop(#Loopcnt) {
    loop while($comparison(#num Threads, ">=", #MaxThreads)) {
        wait(1)
    }
    InitiateThreading()
}
define InitiateThreading {
    increment(#num Threads)
    increment(#Tcount)
    Routine2thread()
}
define Routine2thread {
    set(#local row, #row, "Local")
    increment(#row)
    set(#local account row, #account row, "Local")
    increment(#account row)
    thread {
        in new browser {
            if($file exists(#proxies)) {
                then {
                    change proxy("{$table cell(&proxy table, #local row, 0)}:{$table cell(&proxy table, #local row, 1)}")
                    set proxy credentials($table cell(&proxy table, #local row, 2), $table cell(&proxy table, #local row, 3))
                    wait(2)
                }
                else {
                }
            }
            type text(<username field>, $table cell(&accounts table, #local account row, 0), "Standard")
            type text(<password field>, $table cell(&accounts table, #local account row, 1), "Standard")
            decrement(#num Threads)
        }
    }
}
ui open file("Accounts:", #accounts file)
ui open file("Proxies:", #proxies)
ui drop down("Max. Threads to Open", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,68,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,168,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,231,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,268,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300", #MaxThreads)
ui text box("Loop Count", #Loopcnt)
ui stat monitor("Total Threads Created", #Tcount)
ui stat monitor("No. of Open Threads", #num Threads)

Ive added this in, when i load my accounts and navigate to a login page and change the elements for user&pass, i get a table error for the routine?

Link to post
Share on other sites

You have to use a .csv file for the accounts and proxies with a delimiter set to a colon :

Accounts.csv =
username:password
username:password
username:password

Proxies.csv =
IP:PORT:USER:PASS
IP:PORT:USER:PASS
IP:PORT:USER:PASS
Link to post
Share on other sites

You have to use a .csv file for the accounts and proxies with a delimiter set to a colon :

 

Accounts.csv =

username:password

username:password

username:password

 

Proxies.csv =

IP:PORT:USER:PASS

IP:PORT:USER:PASS

IP:PORT:USER:PASS

My windows computer doesn't have .csv applications

Link to post
Share on other sites

It's just a file extension that stands for (comma separated values) you probably can't see them because you don't have your computer set to show file extensions here is how you can get your computer to show them in windows 7. http://windows.microsoft.com/en-US/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista (Recommended)To open a .csv file all you  have to do is right click the document and select edit in notepad. (Not Recommended) install open office or microsoft office and open it with that.

 

What is a .csv file? Read this.

http://en.wikipedia.org/wiki/Comma-separated_values

Link to post
Share on other sites

It's just a file extension that I belive stands for (comma separated values) you probably

can't see them because you don't have your computer set to show file extensions here

is how you can get your computer to show them in windows 7

http://windows.microsoft.com/en-US/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista

 

http://en.wikipedia.org/wiki/Comma-separated_values

i dont have excell

Link to post
Share on other sites

My current script is multithreaded but it types in username:password into the email box, how do i split the table so user=email and pass=pass 

Link to post
Share on other sites

in ubot at the top left you will see an option called bot, click that and in the box that appears enter a colon replacing the comma to set the bots delimiter to a colon and click ok, then try and run the script.

Link to post
Share on other sites

in ubot at the top right you will see an option called bot, click that and in the box that appears enter a colon replacing the comma to set the bots delimiter to a colon and click ok then try and run the script.

omg thanks, and its the top left lol! why didnt anyone ever tell me that?? now how do i assign proxies to each different account or to rotate?

Link to post
Share on other sites

the way this script works is the account on line one and the proxy on line one will be used at the same time, and so on and so forth down the files, for example after the account on line one has been made with the proxy on line one, they will both increment at the same time till the end of the file.

Account.csv                  Proxy.csv
1.username:password     =    1.IP:PORT:USER:PASS
2.username:password     =    2.IP:PORT:USER:PASS
3.username:password     =    3.IP:PORT:USER:PASS
4.username:password     =    4.IP:PORT:USER:PASS
Link to post
Share on other sites

I've added an example here, I think it should help you to understand how threading with proxies works. To get it working for your project you just need to replace scraper with your custom code...

Link to post
Share on other sites

I've added an example here, I think it should help you to understand how threading with proxies works. To get it working for your project you just need to replace scraper with your custom code...

Thanks mate, How do i use next list item in multithreading so all threads dont use the same account at once? 

Link to post
Share on other sites
  • 4 weeks later...

Thanks mate, How do i use next list item in multithreading so all threads dont use the same account at once? 

Didn't saw your question, sorry...you use next list item outside the thread, and pass account row (easier, similar to how I pass in "#PROXY ROW" in example) or  all account details to the thread.

Link to post
Share on other sites
  • 3 years 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...