• 微信公众号：美女很有趣。 工作之余，放松一下，关注即送10G+美女照片！

# python反爬之js混淆-字符串映射

2周前 (04-09) 7次浏览

`document.write(":"+(Six9FiveNine^FiveFiveFour)+(EightZeroTwoFour^One2One)+(Six9FiveNine^FiveFiveFour)+(EightZeroTwoFour^One2One))`

8080，出来了，跟最开始的源码对上了，

```eval(function(p, r, o, x, y, s) {
y = function(c) {
return (c < r ? '' : y(parseInt(c / r))) + ((c = c % r) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
}
;
if (!''.replace(/^/, String)) {
while (o--) {
s[y(o)] = x[o] || y(o)
}
x = [function(y) {
return s[y]
}
];
y = function() {
return '\w+'
}
;
o = 1
}
;while (o--) {
if (x[o]) {
p = p.replace(new RegExp('\b' + y(o) + '\b','g'), x[o])
}
}
return p
}('n=8;c=D^C;r=7;k=2;t=B^E;p=9;a=F^A;e=G^I;h=1;s=6;l=5;d=4;f=0;g=y^u;b=3;o=w^z;i=x^v;m=H^L;q=U^T;j=S^W;J=f^j;X=h^i;K=k^g;M=b^a;N=d^e;P=l^m;Q=s^t;O=r^q;R=n^o;V=p^c;', 60, 60, '^^^^^^^^^^Six8Seven^Nine^SevenEightZero^Three^FourSevenNine^One^Three5Two^Six^Three7Five^One2One^Seven^Eight^Zero7Six^Zero^FiveFiveFour^Two^Zero4Eight^Five^Four^FiveSixThree^443^3127^7134^6491^2476^1080^6588^7342^8088^11944^1337^4125^3679^1941^8909^EightZeroTwoFour^One6OneSix^8118^Five7FourTwo^OneZeroNineOne^FiveSixSixSeven^EightFiveSevenThree^Zero1ZeroEight^Six9FiveNine^4130^8888^10791^TwoOneThreeZero^8090^TwoFourEightFive'.split('u005e'), 0, {}))
```