Jump to content
UBot Underground

[SOLVED] Using Private proxies from a .txt file


Recommended Posts

Hi, i have a bot which uses a .csv file and pull the proxy data from the table cells but i need the boot to use a text file and this format.

 

IP:PORT:USERNAME:PASSWORD

IP:PORT:USERNAME:PASSWORD

IP:PORT:USERNAME:PASSWORD

IP:PORT:USERNAME:PASSWORD

IP:PORT:USERNAME:PASSWORD

 

 

can someone please explain a bit how that can be done?

 

 

Thanks for your time.

 

Regards

Link to post
Share on other sites

add list to list (list from file)

 

in your loop where you will be setting up the proxy for use..

add list to list (list from text(list item (first list), :))

 

where that will grab a line from the first list and break it down by : making 4 lines in this list.

 

now use those list items to change proxy and set proxy credentials.

Link to post
Share on other sites

Hi, i am trying this but somehow its not coming right in my mind. can you explain a bit more please. thanks

 

is this right way?

 

add list to list(%proxy data, $list from text($list item(%ip, 0), ":"), "Delete", "Global")

Link to post
Share on other sites

working without issue..

 

clear list(%proxy list)
add list to list(%proxy list, $list from file("path to file list here"), "Delete", "Global")
set(#pos, 0, "Global")
loop($list total(%proxy list)) {
   clear list(%break down)
   add list to list(%break down, $list from text($list item(%proxy list, #pos), ":"), "Delete", "Global")
   set proxy credentials($list item(%break down, 2), $list item(%break down, 3))
   change proxy("{$list item(%break down, 0)}:{$list item(%break down, 1)}")
   navigate("http://whatismyip.com", "Wait")
   increment(#pos)
}

Link to post
Share on other sites

Load file into a TABLE, set table separator to ":".

The just cycle the total-table-rows

 

And use the table-row ... 0 for IP 1 for PORT ...etc... and the corresponding ROW ...

Increment the ROW ... and loop again

 

Thats how I do this.

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

Hmm... so... I tried this:

 

define SeperateProxyInfo {
   clear table(&FullProxyInfo)
   set(#pos, 0, "Global")
   loop($list total(%proxyList)) {
    clear list(%breakDown)
    add list to list(%breakDown, $list from text($list item(%proxyList, #pos), ":"), "Delete", "Global")
    set table cell(&FullProxyInfo, #pos, 0, $list item(%breakDown, 0))
    set table cell(&FullProxyInfo, #pos, 1, $list item(%breakDown, 1))
    set table cell(&FullProxyInfo, #pos, 2, $list item(%breakDown, 2))
    set table cell(&FullProxyInfo, #pos, 3, $list item(%breakDown, 3))
    increment(#pos)
   }
   set(#pos, 0, "Global")
   loop($table total rows(&FullProxyInfo)) {
    set(#proxylist, $append line to text(#proxylist, "{$table cell(&FullProxyInfo, #pos, 0)}|{$table cell(&FullProxyInfo, #pos, 1)}|{$table cell(&FullProxyInfo, #pos, 2)}|{$table cell(&FullProxyInfo, #pos, 3)}"), "Global")
    increment(#pos)
   }
}

 

And it works... EXCEPT... if the proxy doesn't need a password... I get all sorts of errors.

 

Is there a way to around all the errors? Some check you can do first?

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

Fixed this....

 

1. Grab the line to a list broken by ":"

 

2. write the total list to table col 0

 

3. write rest of data starting at col 1

 

4. When cycling through, check the first column... if it's a 2, then just set the proxy ip and port, if it's 4, then grab the password and username.

 

This allows multiple types of proxies in the same file.

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