RyuzakiH / CloudflareSolverRe

Cloudflare Javascript & reCaptcha challenge (I'm Under Attack Mode or IUAM) solving / bypass .NET Standard library.
MIT License
179 stars 49 forks source link

Javascript regex update #26

Closed nebojsasandin closed 4 years ago

nebojsasandin commented 4 years ago

Cloudflare was updated recently, and the: CloudflareSolverRe.Types.Javascript.JsChallenge.JsChallengeRegex ...needs an update.

I'm using this one: private static readonly Regex JsChallengeRegexS = new Regex(@"(?<script>.*?var s,t,o,p, b,r,e,a,k,i,n,g,\w, (?<className>\w+?)={""(?<propName>\w+?)"":(?<propValue>.*?)};[\w\W\s\S\n\r.]*?(?<calculations>\s*?\w+?\.\w+?[+\-*\/]=(?:(?<normal>(?:\+|\(|\)|\!|\[|\]|\/)+?;)|(?<charCode>(?:\+|\(|\)|\!|\[|\]|\/)+?\(function.*?}\(.*?\)\)\);)|(?<cfdn>function\(.\)\{var.*?;\s.*?;)))+.*?a\.value\s=\s\(\+\w+\.\w+\)\.toFixed\((?<round>\d+)\);.*?[\w\W\s\S\n\r.]*?},\s*(?<delay>\d+)\);.*?)([\w\W\s\S\n\r.]*?form.*action="")(?<action>\S+?)("")([\w\W\s\S\n\r.]*?name=""r""\svalue="")(?<r>\S+?)(""[\w\W\s\S\n\r.]*?value="")(?<jschl_vc>\w*)(""[\w\W\s\S\n\r.]*?name=""pass""\svalue="")(?<pass>\S+?)(""[\w\W\s\S\n\r.]*?cf-dn-\S+"">)(?<cf_dn>\S+?)(</div>)", RegexOptions.Singleline); ...and it's working fine.

iIIusi0n commented 4 years ago

um... not working for me

ngosang commented 4 years ago

Fix available => https://github.com/RyuzakiH/CloudflareSolverRe/pull/29