lelinhtinh / de4js

JavaScript Deobfuscator and Unpacker
https://lelinhtinh.github.io/de4js/
MIT License
1.3k stars 325 forks source link

I can not use this deobfuscator #17

Closed aeguy closed 4 years ago

aeguy commented 4 years ago

https://pastebin.com/7bQUNSvp

thats link can show the code

lelinhtinh commented 4 years ago

Eval -> Eval -> Eval -> Array -> Unreadable ..or Auto decode -> Unreadable

'use strict';
$(document).ready(function () {
    setInterval(function () {
        if (!$("#mycontent:visible").length) window.location.href = "http://www.soratemplates.com/"
    }, 3E3)
});
window.onload = function () {
    var $link = document.getElementById("mycontent");
    $link.setAttribute("href", "http://www.soratemplates.com/");
    $link.setAttribute("rel", "dofollow");
    $link.setAttribute("title", "Free Blogger Templates");
    $link.setAttribute("style", "display: inline-block!important; font-size: inherit!important; color: #F13638!important; visibility: visible!important;z-index:99!important; opacity: 1!important;");
    $link.innerHTML = "SoraTemplates"
};
$(document).ready(function ($) {
    var lastLevel = -1;
    var label = "";
    var value = "";
    $("#menu").find("ul").find("li").each(function () {
        var path = $(this).text();
        var this_href = $(this).find("a").attr("href");
        var resourceAbsUrl = 0;
        var i = 0;
        for (; i < path.length && (resourceAbsUrl = path.indexOf("_", resourceAbsUrl), -1 != resourceAbsUrl); i++) resourceAbsUrl++;
        if (level = i, level > lastLevel && (label = label + "<ul>", value = value + "<ul id='sub-menu'>"), level < lastLevel) {
            offset = lastLevel - level;
            i = 0;
            for (; i < offset; i++) {
                label = label + "</ul></li>";
                value =
                    value + "</ul></li>"
            }
        }
        path = path.replace(/_/gi, "");
        label = label + ("<li><a href='" + this_href + "'>" + path + "</a>");
        value = value + ("<li><a href='" + this_href + "'>");
        i = 0;
        for (; i < level; i++) value = value + "";
        value = value + (path + "</a>");
        lastLevel = level
    });
    var _0xca51x8 = 0;
    for (; lastLevel >= _0xca51x8; _0xca51x8++) {
        label = label + "</ul>";
        value = value + "</ul>";
        if (0 != _0xca51x8) {
            label = label + "</li>";
            value = value + "</li>"
        }
    }
    $("#menu .LinkList").html(value);
    $("#menu > .LinkList > ul").attr("id", "nav");
    $("#menu ul > li > ul").parent("li").addClass("hasSub");
    $("#menu .widget").attr("style", "display:block!important;")
});
$(document).ready(function () {
    var related_node_ids = location.href.toLowerCase();
    $(".nav-menu ul li a").each(function () {
        if (related_node_ids.indexOf(this.href.toLowerCase()) > -1) {
            $("li.highlight").removeClass("highlight");
            $(this).parent().addClass("highlight")
        }
    })
});
$(function () {
    var result = $("#pull");
    menu = $(".nav-menu ul");
    menuHeight = menu.height();
    $(result).on("click", function (event) {
        event.preventDefault();
        menu.slideToggle()
    });
    $(window).resize(function () {
        var _0xca51xc = $(window).width();
        if (_0xca51xc > 320 && menu.is(":hidden")) menu.removeAttr("style")
    })
});
$(function () {
    $(".nav-menu ul li:nth-child(1)").addClass("highlight");
    $(".nav-menu ul li ul li").removeClass("highlight")
});
$(document).ready(function () {
    $("ul#sub-menu").parent("li").addClass("hasSub");
    jQuery
});
$(document).ready(function () {
    $("ul#sub-menu").parent("li").addClass("hasSub");
    $(".nav-menu ul li").each(function () {
        $(this).hoverTimeout(0, function () {
            $(this).children("ul").slideDown()
        }, 0, function () {
            $(this).children("ul").hide()
        })
    })
});
aeguy commented 4 years ago

thankyou so much, how you do that ? Could you asking me ?

lelinhtinh commented 4 years ago

I think it's about security, avoiding malicious code.