skinnyking 0 Posted June 16, 2016 Report Share Posted June 16, 2016 (edited) 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, yourpassword1yourname2@youremail.com, yourpassword2yourname3@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 June 16, 2016 by skinnyking Quote Link to post Share on other sites
darryl561 177 Posted June 16, 2016 Report Share Posted June 16, 2016 Might be better ways but this will work: demo.ubot 1 Quote Link to post Share on other sites
skinnyking 0 Posted June 16, 2016 Author Report Share Posted June 16, 2016 Hey thanks Darryl I'll take a look. Some nice tools in your signature you have there. Quote Link to post Share on other sites
skinnyking 0 Posted June 16, 2016 Author Report Share Posted June 16, 2016 Sorry if this sounds like a really basic question but how can I see the list content i.e what's inside of %emails ? thanksAh ignore that I figured it out lol Quote Link to post Share on other sites
skinnyking 0 Posted June 16, 2016 Author Report Share Posted June 16, 2016 Is it possible to separate the values i.e. so if the list shows youremail@domain.com, yourpasswordthat 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. Quote Link to post Share on other sites
darryl561 177 Posted June 16, 2016 Report Share Posted June 16, 2016 I made a mistake in the demo bot. Try this one: demo2.ubot It will navigate to the ubot playground and enter the email in 1 form field and the corresponding password in another form field. Quote Link to post Share on other sites
pash 504 Posted June 16, 2016 Report Share Posted June 16, 2016 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}") } Quote Link to post Share on other sites
skinnyking 0 Posted June 16, 2016 Author Report Share Posted June 16, 2016 Great stuff guys thanks, I'm learning a lot here. I've substituted a command so the information is pulled from a file rather than a manually entered list, cheers Quote Link to post Share on other sites
BobbyP 8 Posted June 16, 2016 Report Share Posted June 16, 2016 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 centsIf u need more code just say here i will be happy to help u as others helped me in the past. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.