const regex = /^(?:[[:^print:][:cntrl:]\s]|GIF89.{0,20})*<\?(?:php)?\s*\/\/open\s*templates\/yours\.php.{0,180}?yourlinkscam.{0,100}?rand\(\d+,.{0,2500}?your\s*account\s*will\s*be\s*limited\s*over\s*24\s*h.{0,200}?unauthorised\s*account\s*access.{0,220}?Click\s*the\s*link\s*Below.{0,80}Confirm\s*Your\s*Account.{0,450}?paypal\s*inc\..{0,300}?paypal\s*corporation(?:[^;]+;\s*)?\s*if\(\!empty\(\$_GET\[["']view['"]\]\)\)\{echo\s*\$html(?:[^>]+>\s*)?$/gis;
// Alternative syntax using RegExp constructor
// const regex = new RegExp('^(?:[[:^print:][:cntrl:]\\s]|GIF89.{0,20})*<\\?(?:php)?\\s*\\\/\\\/open\\s*templates\\\/yours\\.php.{0,180}?yourlinkscam.{0,100}?rand\\(\\d+,.{0,2500}?your\\s*account\\s*will\\s*be\\s*limited\\s*over\\s*24\\s*h.{0,200}?unauthorised\\s*account\\s*access.{0,220}?Click\\s*the\\s*link\\s*Below.{0,80}Confirm\\s*Your\\s*Account.{0,450}?paypal\\s*inc\\..{0,300}?paypal\\s*corporation(?:[^;]+;\\s*)?\\s*if\\(\\!empty\\(\\$_GET\\[["\']view[\'"]\\]\\)\\)\\{echo\\s*\\$html(?:[^>]+>\\s*)?$', 'gis')
const str = `<?php
//open templates/Yours.php with a text editor copy paste your html code in \$html between the 2 ' and change all ' in your html to \\' and href="http://yourlinkscam" to href="'.\$var.'"
ini_set("output_buffering",4096);
\$IDK = rand(00000000000, 99999999999).time();
error_reporting(0);
\$html='
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<style type="text/css">body { width: 100% !important;}</style>
</head>
<table width="0" border="0">
<tbody><tr>
<td> <div>
<table cellspacing="0" cellpadding="0" width="550" border="0">
<tbody>
<tr>
<td style=" BACKGROUND: #ffffff; LINE-HEIGHT: 22px;border-radius: 10px 10px 10px 10px">
<center><td>
<div style="FONT-SIZE:14px;FONT-FAMILY:Arial;COLOR:#747474">
<p align="left">
</p><div style="FONT-SIZE:10px;FONT-FAMILY:Arial black;COLOR:#828282;padding-left:30px">
<center><p style="FONT-SIZE:28px"><strong><em><font color="#003084">P<span><font>a</font></span>y</font><font color="#0098db">Pal</font></em></strong></center>
</p>
</div>
<p></p>
</div>
</td></center>
</sub></font></p></div></p>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div><table cellspacing="0" cellpadding="0" width="0" border="0">
<tbody>
<tr>
<td style=" BACKGROUND: #F3F3FF; ; LINE-HEIGHT: 22px">
<table cellspacing="0" cellpadding="0" width="600" align="left" border="0">
<tbody>
<tr>
<td>
<div>
<br />
<br />
<br />
<td style="PADDING-TOP:15px">
<div style="FONT-SIZE:15px;FONT-FAMILY:Arial;COLOR:#585858;margin-left:10px;margin-right:30px">
<center><p style="font-family:Helvetica Neue Light,Helvetica,Arial,sans-serif;font-size:20px;color:#009cde">Your Account will be limited over 24 h if you dont
confirm it .</p></center>
<br>
<p>
<strong>why my Account will Be limited ?</p></strong>
<center><em><li><ins>unauthorised account access From 59.56.111.253 . China-CN</ins></em></p></li>
<br>
Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0
<br>
<br>
<span style="color: #808080;"><strong>Click the link Below and login then follow steps to Confirm Your Account :</strong></span><br /><br /><br><a onclick="return true" href="'.\$var.'" style="FONT-SIZE:14px;FONT-FAMILY:Arial;WIDTH:250px;COLOR:#fff;TEXT-ALIGN:center;DISPLAY:inline-block;BACKGROUND-COLOR:#16aeff;border-radius:7px;line-height:28px"><strong>Confirm My Account
</strong> </a><br /> <br /> <br /> <br /> <span style="font-size: 10px; font-family: Arial, Verdena;"> <em>PayPal Inc. : PayPal Corporate Center, 100 North Tryon Street, Charlotte, NC 28255.
<br/>
<br/>
You can un-subscribe to security alerts by configuring your online account.
We are sending this email to provide support for your personal account. <br /> <br />© 2017 PayPal Corporation. All rights reserved</em> </span> </li>';
if(!empty(\$_GET["view"])){echo \$html;}
?>`;
// Reset `lastIndex` if this regex is defined globally
// regex.lastIndex = 0;
let m;
while ((m = regex.exec(str)) !== null) {
// This is necessary to avoid infinite loops with zero-width matches
if (m.index === regex.lastIndex) {
regex.lastIndex++;
}
// The result can be accessed through the `m`-variable.
m.forEach((match, groupIndex) => {
console.log(`Found match, group ${groupIndex}: ${match}`);
});
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for JavaScript, please visit: https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions