LoWrIdErTJ - BotGuru 904 Posted September 8, 2014 Report Share Posted September 8, 2014 Someone else needed an example so I figured i would release this as Freeware If you would like the script and its useful subscribe to my youtube channel here commented code to show what areas are what in the code NOTE: this does not stop someone from sharing there account details, so you should use a wordpress plugin to limit the number of ip's allowed to login from to an account on a daily basis, or also log the ip address of sorts. this is a very basic way to lock down the software, and is by no means an anti theft measure as its easily able to be bypassed. comment("License will only validate 1 time per session License details will store to a license.txt file in same location as your bot .exe and preload it from that location if it already exists or save upon entering the correct license details this DOES NOT monitor multiple IPs or PC use. It only locks the bot to the login system.") ui window("Software License Info") { ui text box("License Username", #license username) ui text box("License Password", #license password) } comment("place in the url to your wordpress login page below This is the page with the username and password input area as default from wordpress") Validate Login("http://yoursite.com/wp-login-url") define Validate Login(#wordpress login url) { clear list(%license login) if($comparison(#license username, "=", "")) { then { add list to list(%license login, $list from file("{$special folder("Application")}\\license.txt"), "Delete", "Global") set(#license user, $list item(%license login, 0), "Global") set(#license pass, $list item(%license login, 1), "Global") } else { add item to list(%license login, #license username, "Delete", "Global") add item to list(%license login, #license password, "Delete", "Global") save to file("{$special folder("Application")}\\license.txt", %license login) set(#license user, #license username, "Global") set(#license pass, #license password, "Global") } } if($comparison(#license validated, "!=", 1)) { then { load html("<h1><font color=green><center><b><BR><BR>Validating License..</b></center></font></h1>") wait(3) in new browser { comment("you may if you ahve Dev version Ubot add a invisible node here to hide this browser from showing what its doing") clear cookies navigate(#wordpress login url, "Wait") wait for element(<name="wp-submit">, "", "Appear") type text(<username field>, #license user, "Standard") type text(<password field>, #license pass, "Standard") change checkbox(<name="rememberme">, "Checked") click(<name="wp-submit">, "Left Click", "No") wait for browser event("Everything Loaded", "") wait(5) if($exists(<id="login_error">)) { then { alert("License Details Incorrect..") stop script } else if($exists(<innertext="Dashboard">)) { set(#license validated, 1, "Global") } else { alert("License Details Incorrect..") stop script } } } } else { } } } } 3 Quote Link to post Share on other sites
UBotBuddy 331 Posted September 9, 2014 Report Share Posted September 9, 2014 Cool dude! Buddy Quote Link to post Share on other sites
arunner26 51 Posted September 9, 2014 Report Share Posted September 9, 2014 Thanks for the Freeware! Quote Link to post Share on other sites
Pete_UK 9 Posted September 9, 2014 Report Share Posted September 9, 2014 Nice one Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 10, 2014 Author Report Share Posted September 10, 2014 Great work bud! Howabout locking it down to facebook acc, linkedin acc a webhost acc (like hostgator) or better paypal acc ? Its a free script to help.Want to lock down to other services or discuss it I can definitely quote it for you. Feel free to send me an email: admin@botguru.net or skype: emw-dgn Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 10, 2014 Report Share Posted September 10, 2014 Like it thanks Great looking video too!! what did you make it with? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 10, 2014 Author Report Share Posted September 10, 2014 Like it thanks Great looking video too!! what did you make it with?thank you With VideoMakerFx Quote Link to post Share on other sites
vendeta30 4 Posted September 11, 2014 Report Share Posted September 11, 2014 Hello sorry i as the user works has to be registered in the blog and the txt file is generated by the bot Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 11, 2014 Author Report Share Posted September 11, 2014 Hello sorry i as the user works has to be registered in the blog and the txt file is generated by the bot yes locks down to yoru user system. want to block them change there email and password to block the account. 1 Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 11, 2014 Author Report Share Posted September 11, 2014 txt file is just to preload the license details next time is all. Quote Link to post Share on other sites
vendeta30 4 Posted September 11, 2014 Report Share Posted September 11, 2014 Ok thanks Quote Link to post Share on other sites
drhum 3 Posted September 13, 2014 Report Share Posted September 13, 2014 Nice of you to offer this as a freeware! Thanks! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 13, 2014 Author Report Share Posted September 13, 2014 no problem glad you all like it. Also keep in mind you can use this same concept in any membership site, login system Quote Link to post Share on other sites
mamica 10 Posted October 14, 2014 Report Share Posted October 14, 2014 This is a best licensing option for us little fishes that still are not making big bux with ubot. BUT in v5.5 it is not working. I dont know what is wrong, but why it is not working? Can you test it and probably find solution, thanks. P.S. i m reading 5.5 is so good, so i want to code there. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 14, 2014 Author Report Share Posted October 14, 2014 check the element selectors for the inputs for your site, and text on page after login or failed logins to verify all are linked how they need to be. Quote Link to post Share on other sites
totolcs 2 Posted April 28, 2020 Report Share Posted April 28, 2020 very helpful. im using my own method for license management. But i think ill use your method to manage license keys. RegardsTotolcs Quote Link to post Share on other sites
cob007 19 Posted April 28, 2020 Report Share Posted April 28, 2020 First when i read this i thought it was a lockdown or shutdown software related to COVID-19 Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 28, 2020 Author Report Share Posted April 28, 2020 original post date Sep 08 2014 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.