@Ruri @Xanathos can I use the AND MODE
for the IF STATEMENT
as we use it in the KEYCHECK BLOCK
?
eg:
IF STRINGKEY @data.RESPONSECODE EqualTo "200" AND STRINGKEY @data.SOURCE Contains "redirect"
return;
END
Is it correct like that?
@Ruri @Xanathos can I use the AND MODE
for the IF STATEMENT
as we use it in the KEYCHECK BLOCK
?
eg:
IF STRINGKEY @data.RESPONSECODE EqualTo "200" AND STRINGKEY @data.SOURCE Contains "redirect"
return;
END
Is it correct like that?
data.STATUS = “SUCCESS”;
return;
It means if I have to use this one I no longer need the KEYCHECK BLOCK
right? or I just need it for the FAIL STATUS
What are you trying to achieve ? You can place return; in the KEYCHECK block or if you’re checking strings with Lolicode you can place it there as well.
return;
in the KEYCHECK BLOCK
! how is that possible, any example please?
BLOCK:Keycheck
KEYCHAIN SUCCESS OR
STRINGKEY @data.SOURCE Contains $"blablabla"
return;
ENDBLOCK
But it’s not editable in the stacker mode only in LoliCode right?
Tried but not useful with KEYCHEK BLOCK
Paste your code there.
I did and got the error, actually I found a solution using the IF STATEMENT
only but I’m not sure how to use the mode AND
on it.
To do AND you need to put 2 if statements one inside the other and the code will execute only if both are true
IF ...
IF ...
code here
END
END
Like this?
IF STRINGKEY @data.RESPONSECODE EqualTo "200"
IF STRINGKEY @data.SOURCE Contains "redirect"
data.STATUS = "SUCCESS";
return;
END
END
Yes like that should work, so basically if both the response code is 200 and the source contains redirect, it will set the status to success and end the script.
Oh thank you Ruri and @Xanathos you guys helped me a lot, just one more thing when the config find a SUCCESS KEY can I export the data used in the POST DATA that made the SUCCESS STATUS happen? (Parse it or something)
You mean your inputs ? If yes, that’s what OB natively does when it “Hits” (aka Success keys)
These will show in Data.
Enable “bot log” in RL settings, then start the job to get the hits, and then right click the hit → show full log to see the entire log just like in debugger.
@Xanathos @Ruri I do know these things already, what I mean is the POST DATA
that is going to be processed is not the same in my Wordlist because I have a parse block that parses only some of the DATA that I have in the Wordlist and not always the same DATA that’s why I want to parse what went SUCCESSFULLY in the check process. then I will export it with UTILITY.
Can’t you just write the post data to a variable and THEN pass that variable to the request block? Isn’t it the same thing?
Actually it’s more than one POST DATA
and I want to export only the one that caused the SUCCESS STATUS.
You can do all this from the code, just make multiple variables with the post data and then use them inside the request blocks, at the end make a check on success with IF statement and write the content of those variables to file with utility block, easy