Jump to content
UBot Underground

Extracting Email:PW from txt file


Recommended Posts

Using UBot Pro v4

 

I'm trying to create an account on a site and I want to use the same password for the account that was already created for the Email and stored in a txt file in Email:Password format.

 

How can I pull the email and password separately from the same txt file to fill out both the Email and Password fields on an Account Registration?

 

I'd really prefer not to use a csv file if possible. Thanks for any help in advance.

Link to post
Share on other sites

you can use something like this to split the email:pw

 

Example: Copy and paste this in the code view

 

navigate("http://ubotstudio.com/playground/simpleform.aspx", "Wait")
clear list(%Accounts)
clear list(%AccountsSplit)
set(#Account, $nothing, "Global")
set(#Account, "MyEmail@Email.com:EmailPassword", "Global")
set(#AccountReplace, $nothing, "Global")
add item to list(%Accounts, #Account, "Don\'t Delete", "Global")
add list to list(%AccountsSplit, $list from text(%Accounts, ":"), "Don\'t Delete", "Global")
type text(<username field>, $list item(%AccountsSplit, 0), "Standard")
type text(<password field>, $list item(%AccountsSplit, 1), "Standard")

  • Like 1
Link to post
Share on other sites

This probably sounds like a really dumb question, but what do I put in place of "MyEmail@Email.com:EmailPassword" in order to get it to pull the Emails and Passwords from my txt file in order?

Link to post
Share on other sites

try this:

 

Make a Accounts.txt on your desktop also change the "C:\\Users\\Admin\\Desktop\\Accounts.txt" to your own directory that has the accounts.txt. You will need to replace that in two places when loading the list and saving the list.

 

This will grab an item from accounts.txt and remove it from the list and save it and then fill the form.

 

Let me know if you wanted it differently but this is how i do it, i remove the item so i dont grab it again later.

 

navigate("http://ubotstudio.com/playground/simpleform.aspx", "Wait")
clear list(%Accounts)
clear list(%AccountsSplit)
set(#Account, $nothing, "Global")
clear list(%AccountsList)
add list to list(%AccountsList, $list from file("C:\\Users\\Admin\\Desktop\\Accounts.txt"), "Delete", "Global")
set(#Account, $list item(%AccountsList, 0), "Global")
remove from list(%AccountsList, 0)
save to file("C:\\Users\\Admin\\Desktop\\Accounts.txt", %AccountsList)
set(#AccountReplace, $nothing, "Global")
add item to list(%Accounts, #Account, "Don\'t Delete", "Global")
add list to list(%AccountsSplit, $list from text(%Accounts, ":"), "Don\'t Delete", "Global")
type text(<username field>, $list item(%AccountsSplit, 0), "Standard")
type text(<password field>, $list item(%AccountsSplit, 1), "Standard")

 

hope this helps.

Accounts.txt

Split Data Example.ubot

  • Like 3
Link to post
Share on other sites
  • 2 weeks later...
  • 1 month 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...