Jump to content
UBot Underground

How Can I Pull A String From A Flat File?


Recommended Posts

I'm still new to ubot, trying to figure it out.

 

How can I pull data from a text file randomly?

 

I want to be able to take an email or password from within text file such as:

 

yourname1@youremail.com, yourpassword1

yourname2@youremail.com, yourpassword2

yourname3@youremail.com, yourpassword3

 

and randomly insert the email & password from the corresponding line so they match when inputted when logging into hotmail or gmail for example. I'm not sure how to do this, hope it makes sense.

 

thanks in advance.

Edited by skinnyking
Link to post
Share on other sites

Is it possible to separate the values i.e. so if the list shows youremail@domain.com, yourpassword

that I can pull the email and insert into my browser field and then insert the 'yourpassword' from the same list line into the password field.

Link to post
Share on other sites

try

clear list(%Datas)
add list to list(%Datas,$list from text("yourname1@youremail.com, yourpassword1
yourname2@youremail.com, yourpassword2
yourname3@youremail.com, yourpassword3
yourname4@youremail.com, yourpassword4
yourname5@youremail.com, yourpassword5
yourname6@youremail.com, yourpassword6
yourname7@youremail.com, yourpassword7
yourname8@youremail.com, yourpassword8
yourname9@youremail.com, yourpassword9
yourname10@youremail.com, yourpassword10
yourname11@youremail.com, yourpassword11
yourname12@youremail.com, yourpassword12",$new line),"Delete","Global")
loop(5) {
    set(#randomItem,$random list item(%Datas),"Global")
    set(#Email,$replace regular expression(#randomItem,",.*",""),"Global")
    set(#Password,$replace regular expression(#randomItem,".*?,",""),"Global")
    alert("Email: {#Email}
Password: {#Password}")
}
Link to post
Share on other sites

Hi Dady lovely baby u got there.

when i set a user i usually use ini file reader plugin so i set  every account to a ini file and load it when needed.In Ubot there are lots of ways coding the same action , same as in any language.

Basically i store each username and password(in most cases username equals email) in a ini file and then i could call them whenever i need them.

like this:

define Save Account {
    plugin command("IniFileReader.dll", "ini container", "{$special folder("Application")}\\ACC\\{#firstname}_{#lastname}1.dll") {
        plugin command("IniFileReader.dll", "ini write", "fbaccounts", "username", #realmail)
        plugin command("IniFileReader.dll", "ini write", "fbaccounts", "password", #password)
    }
}
Save Account()

so next time i log into FB  i could call that account and log in. Match is assured.

I never use a table or list for that.

just my 2 cents

If u need more code just say here i will be happy to help u as others helped me in the past.

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