THE FORUM IS IN READ-ONLY MODE
Wondering how to
neilrice8019 last edited by
I am attempting to tackle a problem using OB. I have a <USER> that comes from a list, and the password is incrememental of a 4 digit pin. I want OB to go to the next <USER> in the in the User list, if the 4 digit pin is successful and logging both the USER and PIN that was successful/ How would I go about doing that?
You can use global variables.
Basically you want to:
- Check that combination
- If successful, store the username inside a global list (add it to the existing list)
- The bots must check if the username is already in the global list, if it is, they will fail immediately
If other people are interested in this, I can write a guide providing the LoliScript code to achieve this. Just give an upvote to this post if you want me to do it.
Alright I will write it, please give me a few days because I have my last exam and I don't have time to do anything apart from studying.
@neilrice8019 @Charles @lukesped @broken
Ok I decided to write it real quick, I did not test it but you get the idea I hope.
Of course you must generate the USER:PIN list in advance, generating them at runtime within OB is possible but complex and costly in terms of performance.
## We create the global variable (this is only executed if it doesn't exist) SET NEWGVAR "USERS" "" ## Check if the user is already in the USERS variable ## If it is, don't check the pin KEYCHECK BanOnToCheck=False KEYCHAIN FAILURE OR KEY "<USERS>" Contains "<USER>," ## ===== Here do the requests you need to do ===== ## Here we check for success, you could also use a keycheck instead of the IF IF "Success" EqualTo "True" ## We want to store the user in the global variable so it's not tried again SET GVAR "USERS" "<USERS><USER>," ENDIF