用的iframe框架,首页用了框架来加载网页,所以所有的内页链接都是在iframe框架内打开,首页的网址就不会变了。
你可能会发现网页上没看到iframe代码,是因为站长把框架代码隐藏到这段JS中了
- function isMobile(){const mobileDevices=['\x70\x68\x6f\x6e\x65','\x70\x61\x64','\x70\x6f\x64','\x69\x50\x68\x6f\x6e\x65','\x69\x50\x6f\x64','\x69\x6f\x73','\x69\x50\x61\x64','\x41\x6e\x64\x72\x6f\x69\x64','\x4d\x6f\x62\x69\x6c\x65','\x42\x6c\x61\x63\x6b\x42\x65\x72\x72\x79','\x49\x45\x4d\x6f\x62\x69\x6c\x65','\x4d\x51\x51\x42\x72\x6f\x77\x73\x65\x72','\x4a\x55\x43','\x46\x65\x6e\x6e\x65\x63','\x77\x4f\x53\x42\x72\x6f\x77\x73\x65\x72','\x42\x72\x6f\x77\x73\x65\x72\x4e\x47','\x57\x65\x62\x4f\x53','\x53\x79\x6d\x62\x69\x61\x6e','\x57\x69\x6e\x64\x6f\x77\x73 \x50\x68\x6f\x6e\x65','\x4b\x69\x6e\x64\x6c\x65','\x53\x69\x6c\x6b','\x50\x6c\x61\x79\x62\x6f\x6f\x6b','\x42\x42\x31\x30','\x4e\x69\x6e\x74\x65\x6e\x64\x6f','\x58\x62\x6f\x78','\x50\x6c\x61\x79\x53\x74\x61\x74\x69\x6f\x6e','\x48\x75\x61\x77\x65\x69','\x58\x69\x61\x6f\x6d\x69','\x4f\x70\x70\x6f','\x56\x69\x76\x6f','\x4f\x6e\x65\x50\x6c\x75\x73','\x53\x61\x6d\x73\x75\x6e\x67','\x4c\x47','\x53\x6f\x6e\x79','\x48\x54\x43','\x5a\x54\x45','\x4d\x6f\x74\x6f\x72\x6f\x6c\x61','\x4e\x6f\x6b\x69\x61'];return mobileDevices['\x73\x6f\x6d\x65'](device=>{return navigator['\x75\x73\x65\x72\x41\x67\x65\x6e\x74']['\x6d\x61\x74\x63\x68'](new window["\x52\x65\x67\x45\x78\x70"](device,'\x69'))})}const mobileUrl="\x68\x74\x74\x70\x73\x3a\x2f\x2f\x71\x7a\x7a\x2e\x77\x70\x65\x69\x2e\x6e\x65\x74\x2f";function getIosVersion(){const match=navigator['\x75\x73\x65\x72\x41\x67\x65\x6e\x74']['\x6d\x61\x74\x63\x68'](/OS (\d+)_(\d+)_?(\d+)?/);return match?window["\x70\x61\x72\x73\x65\x49\x6e\x74"](match[1],10):false}const isIOS=!!navigator['\x75\x73\x65\x72\x41\x67\x65\x6e\x74']['\x6d\x61\x74\x63\x68'](/(iPod|iPhone|iPad)/);const time=window["\x4d\x61\x74\x68"]['\x66\x6c\x6f\x6f\x72'](window["\x4d\x61\x74\x68"]['\x72\x61\x6e\x64\x6f\x6d']()*(1000-500+1))+500;if(isMobile()){if(isIOS&&getIosVersion()<13){setTimeout(()=>{window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e']['\x68\x72\x65\x66']=mobileUrl},time)}else{window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x6d\x65\x74\x61 \x69\x64\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x6e\x61\x6d\x65\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x63\x6f\x6e\x74\x65\x6e\x74\x3d\x22\x75\x73\x65\x72\x2d\x73\x63\x61\x6c\x61\x62\x6c\x65\x3d\x6e\x6f\x2c\x77\x69\x64\x74\x68\x3d\x64\x65\x76\x69\x63\x65\x2d\x77\x69\x64\x74\x68\x2c \x69\x6e\x69\x74\x69\x61\x6c\x2d\x73\x63\x61\x6c\x65\x3d\x31\x2e\x30\x22 \x2f\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x73\x74\x79\x6c\x65\x3e\x68\x74\x6d\x6c\x2c\x62\x6f\x64\x79\x7b\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6f\x76\x65\x72\x66\x6c\x6f\x77\x3a\x68\x69\x64\x64\x65\x6e\x3b\x7d\x3c\x2f\x73\x74\x79\x6c\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x64\x69\x76 \x73\x74\x79\x6c\x65\x3d\x22\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x70\x6f\x73\x69\x74\x69\x6f\x6e\x3a\x61\x62\x73\x6f\x6c\x75\x74\x65\x3b\x74\x6f\x70\x3a\x30\x3b\x6c\x65\x66\x74\x3a\x30\x3b\x7a\x2d\x69\x6e\x64\x65\x78\x3a\x32\x31\x34\x37\x34\x38\x33\x36\x34\x37\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a\x23\x66\x66\x66\x22\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x69\x66\x72\x61\x6d\x65 \x73\x72\x63\x3d\x22'+mobileUrl+'\x22 \x66\x72\x61\x6d\x65\x62\x6f\x72\x64\x65\x72\x3d\x22\x30\x22 \x73\x74\x79\x6c\x65\x3d\x22\x62\x6f\x72\x64\x65\x72\x3a\x30\x3b\x77\x69\x64\x74\x68\x3a \x31\x30\x30\x25\x3b \x74\x65\x78\x74\x2d\x61\x6c\x69\x67\x6e\x3a \x63\x65\x6e\x74\x65\x72\x3b \x62\x6f\x72\x64\x65\x72\x3a \x6d\x65\x64\x69\x75\x6d \x6e\x6f\x6e\x65\x3b \x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6d\x61\x78\x2d\x68\x65\x69\x67\x68\x74\x3a \x34\x30\x30\x30\x70\x78\x3b\x22\x3e\x3c\x2f\x69\x66\x72\x61\x6d\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x2f\x64\x69\x76\x3e')}}else{window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x6d\x65\x74\x61 \x69\x64\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x6e\x61\x6d\x65\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x63\x6f\x6e\x74\x65\x6e\x74\x3d\x22\x75\x73\x65\x72\x2d\x73\x63\x61\x6c\x61\x62\x6c\x65\x3d\x6e\x6f\x2c\x77\x69\x64\x74\x68\x3d\x64\x65\x76\x69\x63\x65\x2d\x77\x69\x64\x74\x68\x2c \x69\x6e\x69\x74\x69\x61\x6c\x2d\x73\x63\x61\x6c\x65\x3d\x31\x2e\x30\x22 \x2f\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x73\x74\x79\x6c\x65\x3e\x68\x74\x6d\x6c\x2c\x62\x6f\x64\x79\x7b\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6f\x76\x65\x72\x66\x6c\x6f\x77\x3a\x68\x69\x64\x64\x65\x6e\x3b\x7d\x3c\x2f\x73\x74\x79\x6c\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x64\x69\x76 \x73\x74\x79\x6c\x65\x3d\x22\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x70\x6f\x73\x69\x74\x69\x6f\x6e\x3a\x61\x62\x73\x6f\x6c\x75\x74\x65\x3b\x74\x6f\x70\x3a\x30\x3b\x6c\x65\x66\x74\x3a\x30\x3b\x7a\x2d\x69\x6e\x64\x65\x78\x3a\x32\x31\x34\x37\x34\x38\x33\x36\x34\x37\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a\x23\x66\x66\x66\x22\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x69\x66\x72\x61\x6d\x65 \x73\x72\x63\x3d\x22\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x2e\x67\x75\x73\x68\x69\x6a\x75\x2e\x6e\x65\x74\x2f\x22 \x66\x72\x61\x6d\x65\x62\x6f\x72\x64\x65\x72\x3d\x22\x30\x22 \x73\x74\x79\x6c\x65\x3d\x22\x62\x6f\x72\x64\x65\x72\x3a\x30\x3b\x77\x69\x64\x74\x68\x3a \x31\x30\x30\x25\x3b \x74\x65\x78\x74\x2d\x61\x6c\x69\x67\x6e\x3a \x63\x65\x6e\x74\x65\x72\x3b \x62\x6f\x72\x64\x65\x72\x3a \x6d\x65\x64\x69\x75\x6d \x6e\x6f\x6e\x65\x3b \x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6d\x61\x78\x2d\x68\x65\x69\x67\x68\x74\x3a \x34\x30\x30\x30\x70\x78\x3b\x22\x3e\x3c\x2f\x69\x66\x72\x61\x6d\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x2f\x64\x69\x76\x3e')}
复制代码 将编码后的字符接码后得到如下代码
- function isMobile() { const mobileDevices = ['phone', 'pad', 'pod', 'iPhone', 'iPod', 'ios', 'iPad', 'Android', 'Mobile', 'BlackBerry', 'IEMobile', 'MQQBrowser', 'JUC', 'Fennec', 'wOSBrowser', 'BrowserNG', 'Symbian', 'Windows Phone', 'Kindle', 'Silk', 'PlayBook', 'BB10', 'Nintendo', 'Xbox', 'PlayStation', 'Vivo', 'Opera', 'OnePlus', 'Samsung', 'LG', 'Sony', 'HTC', 'ZTE', 'Motorola', 'Nokia']; return mobileDevices.some(device = >{ return navigator.userAgent.match(new window["RegExp"](device, 'i')) })}const mobileUrl = "https://qzz.wpei.net/";function getIosVersion() { const match = navigator.userAgent.match(/OS (\d+)_(\d+)_?(\d+)?/); return match ? parseInt(match[1], 10) : false}const isIOS = !!navigator.userAgent.match(/(iPod|iPhone|iPad)/);const time = window.Math.floor(window.Math.random() * (1000 - 500 + 1)) + 500;if (isMobile()) { if (isIOS && getIosVersion() < 13) { setTimeout(() = >{ window.location.href = mobileUrl }, time) } else { window.document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0" />'); window.document.write('<style>html,body{width:100%;height:100%;overflow:hidden;}</style>'); window.document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff;"></div>'); window.document.write('<iframe src="' + mobileUrl + '" frameborder="0" style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff"></iframe>') }} else { window.document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0" />'); window.document.write('<style>html,body{width:100%;height:100%;overflow:hidden;}</style>'); window.document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff;"></div>'); window.document.write('<iframe src="https://www.gushiju.net/" frameborder="0" style="border:0;width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff"></iframe>'); window.document.write('<iframe src="https://www.gushi8.net/" frameborder="0" style="border:0;width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff"></iframe>')}
复制代码 可以看到其中的iframe框架代码 |