-
Notifications
You must be signed in to change notification settings - Fork 3
/
startExtension.min.js
executable file
·1 lines (1 loc) · 2.56 KB
/
startExtension.min.js
1
!function(){const fuzzerSettings=document.createElement("div");fuzzerSettings.style.position="fixed",fuzzerSettings.style.bottom="100px",fuzzerSettings.style.right="100px",fuzzerSettings.style.backgroundColor="#e9ecef",fuzzerSettings.style.border="2px solid black",fuzzerSettings.style.borderRadius="5px",fuzzerSettings.style.padding="20px",fuzzerSettings.style.fontSize="20px",fuzzerSettings.style.color="black",fuzzerSettings.style.fontFamily="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif",document.body.appendChild(fuzzerSettings),fuzzerSettings.innerHTML='<div><h3>Fuzzer Settings</h3></div><div><input style="width:100%;font-size:20px;margin-bottom:20px;" id="attackerIp" type="text" placeholder="Attacker IP" /></div><div><input style="width:100%;font-size:20px;margin-bottom:20px;" id="attackerPort" type="text" placeholder="Attacker Port" /></div><div><input id="xssScanEnabled" type="checkbox" /><label style="padding-left:5px">XSS Scan Enabled</label></div><div><input id="sqliScanEnabled" type="checkbox" /><label style="padding-left:5px">SQLi Scan Enabled</label></div><div><input id="rceScanEnabled" type="checkbox" /><label style="padding-left:5px">RCE Scan Enabled</label></div><div><input id="formFuzzerEnabled" type="checkbox" /><label style="padding-left:5px">FormFuzzer Enabled</label></div>';const button=document.createElement("button");button.innerText="SCAN PAGE",button.style.bottom="100px",button.style.right="200px",button.style.backgroundColor="black",button.style.borderRadius="5px",button.style.padding="20px",button.style.fontSize="20px",button.style.color="white",button.style.paddingTop="20px",button.style.width="100%",fuzzerSettings.appendChild(button),fuzzerSettings.innerHTML+='<button href="#gui" rel="modal:open" style="bottom: 100px; right: 200px; background-color: brown; border-radius: 5px; padding: 20px; font-size: 20px; color: white; width: 100%;">OPEN GUI</button>',button.addEventListener("click",()=>{const xssScanEnabled=document.getElementById("xssScanEnabled").checked,sqliScanEnabled=document.getElementById("sqliScanEnabled").checked,rceScanEnabled=document.getElementById("rceScanEnabled").checked,formFuzzerEnabled=document.getElementById("formFuzzerEnabled").checked,attackerIp=document.getElementById("attackerIp").value,attackerPort=document.getElementById("attackerPort").value;jBHH.init(xssScanEnabled,sqliScanEnabled,rceScanEnabled,formFuzzerEnabled,attackerIp,attackerPort)}),document.body.innerHTML+='<div id="gui" class="modal"><div id="#container"></div><a href="#" rel="modal:close">Close</a></div>'}();