[Sentry MBA] Can I make a conditional call to a function?

Discussion in 'Cracking Discussions & Help Forum' started by ami289, Jun 26, 2016.

  1. ami289

    ami289 New Member

    Messages:
    2
    Likes:
    0
    Ratio:
    0
    Hey guys,

    I'm tweaking one of my old configs,
    And have a question I couldn't find an answer anywhere.

    I am trying to make an additional redirect,
    BUT ONLY when a certain keyword is found in the page.

    This already happens in the 'Additional Redirect' stage,
    So this is occurs AFTER the 'Form Redirect Stage',
    So I can't use it (also, it is used already in my config).

    I can successfully find if the keyword exists.
    I simply create a parsing variable,
    The I call the 'Compare' function, and give it a constant, and the parsed variable result.
    I then, successfully, receive 1 or 0 if the keyword is found or not.

    I can also successfully call the 'AddAdditionalRedirect' function, by its own, and call the additional redirect I'm interesting in.


    What I can't do, is connect the above 2 together.
    I want to be able to call the 'AddAdditionalRedirect' function ONLY if the comparison returns 1.


    Anyone know how, and if, it can be done?


    Thanks in advance guys.
     

Share This Page