I need the proper regex for this?

Hello guys
I just wanted to make a config for something and I got stuck with its regex type so if anyone knows how I can be able to make the right regexes for any string I would be very grateful.

The regex I need is for this one:
https://stranger.dz:2083|stranger1|stranger2
image

Or this one:
https://stranger.dz:2083:stranger1:stranger2
image

You should use the first one since the URL itself already has semicolons inside it and it would be split into 5 parts instead of 3.

Just define your own wordlist type in the Environment.ini file and use | as separator. Just set Verify to False so it doesn’t validate the regex. Let me know if you really need a regex for this instead of what I told you about.

1 Like

Actually yes I would prefer to use the exact regex of it, if you please that would be awesome :relaxed:

I guess something like this should work

1 Like

Thank you so much, I really appreciate your help

Also I wanted to ask about this problem, when the host is not existing I’m getting To check and I didn’t know how to set the Failure Key for that

image

You get tocheck because of ban loop evasion, you can disable it. Check your settings.

1 Like

So if I disable that will it go to Retries or to Errors?

Errors, which are treated exactly like bans (change proxy and retry data).

1 Like

I did set the ban loop evasion to 0 in order to disable it but now the config is giving me only errors it’s checking nothing, and I should’ve mentioned that the problem is not from the proxy it is from the host because some hosts does not exist that’s why they return to error, for example when you type a wrong host and domain of site let’s say stranger.com there isn’t such website with such host and domain so the browser will tell you This site can’t be reached and that’s exactly what I want to fix in the config

image

1 Like

Oh I get it now, then you need to wrap your http request block in a try/catch
Please read the documentation it’s all there

In the try put your http request, in the catch (a.k.a. what to do if it fails) set the status to fail. Easy fix!

TRY
BLOCK:HttpRequest... etc
ENDBLOCK
CATCH
data.STATUS = "FAIL";
return;
END
2 Likes

Didn’t get it, how to apply this TRY / CATCH in the config?

Click on LoliCode (not stacker) and find the http request block in there, then put it inside a try/catch block as I showed above, you have to paste the code.

You mean I should put the site URL as a variable in the TRY / CATCH in order to check if it works or not?

No you should put the entire block. There will be a block in the lolicode like BLOCK:HttpRequest etc… just cut it and paste it inside the try/catch, removing the old one so it’s now inside the try/catch.

1 Like

Now I get it, it worked perfectly, and what about the success key that I should write inside LoliCode so if the site exist it shows success

image

Well at this point just make a keycheck block right after the try/catch cause if it does not fail then it will continue with the execution and you can put a success key without any problems.

1 Like

Just figured it out, I don’t know how to thank you I’m so grateful for your assistance. Thank you Ruri :blue_heart:

1 Like