Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Regex Protection(Bypassing to XSS or Open Redirect) - Javascript

Hello there,
Anyone in the universe can help me finding out the function.What will be done with this regex string

Quote:/^#~?!(?:\/?[\w\.-])+\/?(?:\?|$)/


When it passed to this javascript statement like this.

Code
(/^#~?!(?:\/?[\w\.-])+\/?(?:\?|$)/).test(location.hash)&&location.replace(location.hash.substr(location.hash.indexOf('!')+1));

And is it possible to bypass this regex string may be making an xss attack or an open redirect?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Mr. RobotApr 28, 2018 04:42 AM 27 1,050 Apr 28, 2018 04:42 AM
Last Post: Mr. Robot
by redlightrouterFeb 6, 2017 02:41 PM 9 287 Feb 6, 2017 02:41 PM
Last Post: Ryuga
by AbductedNov 13, 2016 12:57 PM 9 284 Nov 13, 2016 12:57 PM
Last Post: ๖ۣۜAnubis