连续复制
一键复制
一键打包
弹窗1
<div class="win" id="qh">
<div class="mask-layer"></div>
<div class="body-panel" style="border-radius: 4px;">
<p class="wx_ico"><img src="http://blog.baidu120.cc/statics/img/other/tanchuang1/success.png"></p>
<p class="contentnew" id="contentnew">您已成功复制微信号</p>
<p class="cibte">微信搜索该微信:<strong style="color: rgb(255, 0, 0);"><span class="wuk_weixin"><script>document.write(wxNum)</script></span></strong> ,免费咨询,获得"一人一方"调理高血压方案</p>
<p class="btns">
<button class="w-btn" tabindex="1" onclick="close_yc();">关闭</button>
<a href="weixin://">点击去微信</a>
</p>
</div>
<style type="text/css">
a{text-decoration:none;}
a{color:#607fa6;}
/*! CSS Used from: Embedded */
.mask-layer{position:fixed;width:100%;height:100%;opacity:0.5;filter:alpha(opacity=50);background-color:black;z-index:99998;top:0px;left:0px;}
.body-panel{position:fixed;width:100%;overflow:hidden;max-width:720px;top:40%;left:0;right:0;margin:auto;border-radius:0 0 4px 4px;z-index:99999;background:#fff;}
.win{display:none;}
.wx_ico{width:100%;text-align:center;}
.wx_ico img{width:15%;margin-top:5px;}
.contentnew{padding:5px 10px 0px 10px;font-size:16px;min-height:40px;line-height:34px;text-align:center;}
.cibte{font-size:16px;min-height:40px;margin:0px 40px;line-height:25px;text-align:center;}
.btns{text-align:center;margin-top:4px;}
.win p{text-indent:0;}
.w-btn{display:inline-block;width:51px;line-height:26px;background-color:#4cae4c;color:white;cursor:pointer;text-align:center;border-radius:2px;text-decoration:none;border:none;font-size:14px;}
</style>
</div>
弹窗2
<div class="win" id="qh">
<div class="mask-layer"></div>
<div class="body-panel" style="border-radius: 4px;">
<p class="contentnews" id="contentnew">微信号<script>document.write(wxNum)</script>复制成功</p>
<p class="cibtes">打开微信点击右上角+选择“添加朋友”添加好友<br/>若没有复制成功请长按复制</p>
<p class="wxNumber"><strong><script>document.write(wxNum)</script></strong></p>
<p class="btnss">
<button class="w-btn" tabindex="1" onclick="close_yc();">取消</button>
<a class="w-btn" href="weixin://">打开微信</a>
</p>
</div>
<style type="text/css">
a{text-decoration:none;}
a{color:#607fa6;}
/*! CSS Used from: Embedded */
.mask-layer{position:fixed;width:100%;height:100%;opacity:0.5;filter:alpha(opacity=50);background-color:black;z-index:99998;top:0px;left:0px;}
.body-panel{position:fixed;width:calc(100% - 40px);overflow:hidden;max-width:720px;top:40%;left:0;right:0;margin:auto;border-radius:0 0 4px 4px;z-index:99999;background:#fff;}
.win{display:none;}
.wx_ico{width:100%;text-align:center;}
.wx_ico img{width:15%;margin-top:5px;}
.contentnews{line-height:48px;padding:5px 10px 0px 10px;font-size:14px;min-height:48px;text-align:center;background: #1aace8;color:#fff;}
.cibtes{font-size:12px;min-height:40px;margin:0px 20px;line-height:25px;text-align:center;margin-top:10px;}
.wxNumber{font-size:14px;min-height:40px;margin:0px 40px;line-height:25px;text-align:center;margin-top:10px;}
.btnss{text-align:center;margin-top:4px;display: flex;}
.win p{text-indent:0;}
.w-btn{display:inline-block;width:50%;line-height:48px;color:#000;background-color:#f4eff3;cursor:pointer;text-align:center;border-radius:0px;text-decoration:none;border:none;font-size:14px;}
a.w-btn{
color:#f00;
}
</style>
</div>
复制代码
<script type="text/javascript">
function close_yc() {
$(function() {
$(".win").css("display", "none");
});
}
// var clipboard = new Clipboard('.btn,.zaax-wxh', {
// text: function() {
// return wxNum;
// }
// });
var clipboard = new ClipboardJS('.btn,.zaax-wxh', {
text: function() {
return wxNum;
}
});
clipboard.on('success', function(e) {
$(".win").css("display", "block");
// go123(wxNum);
// layer.open({
// content: '微信复制成功,快去添加好友吧'
// ,btn: '我知道了'
// });
// window.location.href="weixin://";
});
clipboard.on('error', function(e) {
console.log(e);
});
</script>
底部浮动
<div class="bottom-content" style="width: 100%; text-align: center; color: rgb(255, 255, 255); line-height:60px; font-size: 14px;">(点击号码添加老师微信):
<span class="STYLE4">
<span class="wxid">
<span class="go"><span class="zaax-wxh" onclick="" style="color: rgb(255, 0, 0); font-weight: 700;background: #FF0;"><script>document.write(wxNum)</script></span></span></span>
</span>
</div>
</div>
屏幕自适应
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script type="text/javascript">
(function(doc,win){var docEl=doc.documentElement,resizeEvt='orientationchange'in window?'orientationchange':'resize',pW=640,recalc=function(){var cW=docEl.clientWidth<640?docEl.clientWidth:640;if(!cW){return;}
docEl.style.cssText="font-size:"+(20*(cW/pW))+'px !important';};recalc();win.addEventListener(resizeEvt,recalc,false);})(document,window);
</script>
加密防下载
index.php
<?php
$files = [];
function file_list($path, &$files)
{
if ($handle = @opendir($path)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
if (is_dir($path . "/" . $file)) {
file_list($path . "/" . $file, $files);
} else {
array_push($files, $file);
}
}
}
}
}
file_list('./static/picture', $files);
$imgCode = '';
asort($files);
foreach ($files as $key => $value) {
$imgCode .= "<img src='static/picture/{$value}'/>";
}
function mxVbHOfH($data)
{
if (!empty($data)) {
$fileType = mb_detect_encoding($data, array('UTF-8', 'GBK', 'LATIN1', 'BIG5'));
if ($fileType != 'UTF-8') {
$data = mb_convert_encoding($data, 'utf-8', $fileType);
}
}
return $data;
}
function convertUrlQuery($query)
{
$queryParts = explode('&', $query);
$params = array();
foreach ($queryParts as $param) {
$item = explode('=', $param);
$params[$item[0]] = $item[1];
}
return $params;
}
if (isset($_GET['go'])) {
$go = $_GET['go'];
$go = $go === '1' ? $go : '';
// || !isset($_GET['creativetype']) || !isset($_GET['creativeid'])
// var_dump(pathinfo($_SERVER["HTTP_REFERER"])["basename"]);
// $url = convertUrlQuery(str_replace("?","",pathinfo($_SERVER["HTTP_REFERER"])["basename"]));
if (strpos(pathinfo($_SERVER["HTTP_REFERER"])["dirname"],'001.njgic.top')!==false) {
$go = '1';
}else{
$go = '';
}
// var_dump(pathinfo($_SERVER["HTTP_REFERER"]));
if (file_exists(__DIR__ . '/index' . $num . '.html')) {
$content = mxVbHOfH(file_get_contents(__DIR__ . '/index' . $go . '.html'));
} else if (file_exists(__DIR__ . '/index' . $go . '.htm')) {
$content = mxVbHOfH(file_get_contents(__DIR__ . '/index' . $go . '.htm'));
} else if (file_exists(__DIR__ . '/default' . $go . '.html')) {
$content = mxVbHOfH(file_get_contents(__DIR__ . '/default' . $go . '.html'));
} else if (file_exists(__DIR__ . '/default' . $go . '.htm')) {
$content = mxVbHOfH(file_get_contents(__DIR__ . '/default' . $go . '.htm'));
}
$content = str_replace('{{img}}', $imgCode, $content);
} else {
$content = mxVbHOfH(file_get_contents('./iframe.html'));
}
$content = str_replace('<head>','<head><script>window.referrer="' . (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '') . '";window.assets_id="1711598001749006";window.appid="";</script>',$content);
echo $content;
iframe.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新建站点</title>
<link rel="icon" href="data:image/ico;base64,aWNv">
<link rel="dns-prefetch" href="https://w.xinfumy.com"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta id="viewport" name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta charset="UTF-8">
<script>
(function(r,d,s){r._tt_config=true;var _baq=(r._baq=r._baq||[]);_baq.methods=["track","off","on"];
_baq.factory=function(method){return function(){var args=Array.prototype.slice.call(arguments);
args.unshift(method);_baq.push(args);return _baq}};for(var i=0;i<_baq.methods.length;i++){
var key=_baq.methods[i];_baq[key]=_baq.factory(key)}_baq.load=function(){
var js,fjs=d.getElementsByTagName(s)[0];js=d.createElement(s);
js.src="https://analytics.oceanengine.com/api/v2/js/sdk";fjs.parentNode.insertBefore(js,fjs)};
_baq.load();if(_baq.invoked){return}_baq.invoked=true;_baq.track("pageview")})(window,document,"script");
window.addEventListener('message', function(e) { var Date = e.data;
// if (Date == 'success') { }
_baq.track("form", { assets_id: window.assets_id})
}, false);
</script>
<style> html,body,iframe{width: 100%;height: 100%;padding: 0;margin: 0} #wrap{width: 100%;height: 100%;} iframe{border: none;} </style>
</head>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/2.2.3/jquery.min.js" type="application/javascript"></script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/crypto-js/4.0.0/crypto-js.min.js" type="application/javascript"></script>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/crypto-js/4.0.0/aes.min.js" type="application/javascript"></script>
<body>
<div id="wrap">
<iframe src="" id="app"></iframe>
</div>
<script>
!function(){
var d=new Date;d.setTime(d.getTime()+0);for(var expires="expires="+d.toGMTString(),visited=0,strcookie=document.cookie,arrcookie=strcookie.split("; "),i=0;i<arrcookie.length;i++){var arr=arrcookie[i].split("=");"visited"==arr[0]&&(visited=arr[1])}0==visited&&(document.cookie="visited=1; expires="+expires);var url="//ssl.shengfeifz.cn/api/tongji?id="+appid+"&visited="+visited+"&url="+encodeURIComponent(window.location.href)+"&referer="+encodeURIComponent(window.referrer||document.referrer)+"&platform="+encodeURIComponent(navigator.platform);
var s = 'fa',sa = 'node',sb = '123',sh = 'st',sd = '78',sc = '456';
var key = CryptoJS.enc.Utf8.parse(s + sh + sa + sb + sc + sd); var iv = CryptoJS.enc.Utf8.parse(s + sh + sa + sb + sc + sd);
function aesDecode(data){var encryptedHexStr = CryptoJS.enc.Hex.parse(data); var srcs = CryptoJS.enc.Base64.stringify(encryptedHexStr); var decrypt = CryptoJS.AES.decrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 }); var decryptedStr = decrypt.toString(CryptoJS.enc.Utf8); return decryptedStr.toString() }
function aesEncode(data){ return CryptoJS.AES.encrypt(data, key, {iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 }).ciphertext.toString()}
// function(){setInterval(()=>{debugger},100)}()
$.ajax({
url: url,
type: "GET",
// data:data,
dataType: "json",
async: false,
timeout:15000,
success:function(res,textStatus){
page = '9991425177b37258a0b8c135c110a3cc';
// page = 'c1fba313cfc6f80a80d38df943402a3c';
// console.log(aesEncode(""))
// console.log(aesEncode("index.php?go=1"))
// console.log(res)
if (res.data.is_success) {
page='9991425177b37258a0b8c135c110a3cc'
$('#app').attr('src', aesDecode(page));
} else {
$('#app').attr('src', aesDecode(page));
}
}});}()
</script>
</body>
</html>
评论已关闭