vul PHP preg_replace with \e

testing935
6 years ago

0

I want create injection like that :

regex : ‘/Evaluator/’\e
replace : system(“ls -afhltrR”)

but here is the error :

Warning: preg_replace(): Unknown modifier '\' in /challenge/web-serveur/ch37/index.php on line 25

Thank in advance for your answers

2replies
2voices
222views
dloser
6 years ago

1

There is no question (and hardly any proper context), so what kind of answers do you expect? And how about trying to figure some things out yourself. Try stuff on a local installation. That way, if you ask a question, you can perhaps ask one that is not trivial to answer or so open ended that you are basically asking for people to do your work for you.

Also, it would be nice to disclose more clearly that you are doing a challenge on another site and need help with that.

testing935
6 years ago

0

good idea dloser

You must be logged in to reply to this discussion. Login
1 of 3

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss