求问JS大神,这段JS是什么意思

 var _K = function() {
        setTimeout('location.href=location.pathname+location.search.replace(/[\?|&]captcha-challenge/,\'\')', 1500);
        document.cookie = '__jsl_clearance=1536651629.335|0|' + (function() {
            var _o = [function(_K) {
                return _K
            }, function(_o) {
                return _o
            }, (function() {
                var _K = document.createElement('div');
                _K.innerHTML = '<a href=\'/\'>_1R</a>';
                _K = _K.firstChild.href;
                var _o = _K.match(/https?:\/\//)[0];
                _K = _K.substr(_o.length).toLowerCase();
                return function(_o) {
                    for (var _1R = 0; _1R < _o.length; _1R++) {
                        _o[_1R] = _K.charAt(_o[_1R])
                    };
                    return _o.join('')
                }
            })()],
                _1R = [
                    [-~!{}],
                    [-~!{}] + ((+ !! window['__p' + 'hantom' + 'as']) + [
                        []
                    ][0]), [5],
                    [-~!{}] + [-~ {} - ~ {}],
                    [4 + 4],
                    [((-~ {} << -~ {}) << -~~~ {}) - ~ (-~ ((-~ (+!window['__p' + 'hantom' + 'as']) ^ -~~~ {})))],
                    [-~ {} - ~ {} - ~ {}], ((+ !! window['__p' + 'hantom' + 'as']) + [
                        []
                    ][0]), [-~ {} - ~ {}], ((-~ [] + [2]) / [2] + [] + []), [-~!{}] + [-~!{}],
                    [((-~ {} << -~ {})) * [(-~ {} << -~ {})]],
                    [(-~ {} + [((-~ {} << -~ {}) << -~~~ {})] >> -~ {})]
                ];
            for (var _K = 0; _K < _1R.length; _K++) {
                _1R[_K] = _o[[1, 2, 1, 0, 2, 1, 0, 1, 0, 2, 1, 0, 1][_K]](['DrZ', 'CzjdH', ({} + [] + [
                    []
                ][0]).charAt((+!window['__p' + 'hantom' + 'as']) + 8) + ({} + [] + [
                    []
                ][0]).charAt((+!window['__p' + 'hantom' + 'as']) + 8), [window['__p' + 'hantom' + 'as'] + [] + [
                    []
                ][0]][0].charAt(([-~ (+!window['__p' + 'hantom' + 'as'])] + ~~![] >> -~ (+!window['__p' + 'hantom' + 'as']))), [-~ {} - ~ {} - ~ {}], 'mXzcZO9GLO', [
                    [5]
                ], 'D', [
                    [-~!{}] + ((+ !! window['__p' + 'hantom' + 'as']) + [
                        []
                    ][0])], 'L', [
                    [(-~ {} + [((-~ {} << -~ {}) << -~~~ {})] >> -~ {})]
                ], 'Y%', ({} + [] + [
                    []
                ][0]).charAt((+!window['__p' + 'hantom' + 'as']) + 8)][_1R[_K]])
            };
            return _1R.join('')
        })() + ';Expires=Tue, 11-Sep-18 08:40:29 GMT;Path=/;'
    };
if ((function() {
    try {
        return !!window.addEventListener;
    } catch (e) {
        return false;
    }
})()) {
    document.addEventListener('DOMContentLoaded', _K, false)
} else {
    document.attachEvent('onreadystatechange', _K)
}

这段JS是什么意思啊,这边是想要得到document.cookie 的值,请问有什么办法么 。要怎么改造才可以再java代码里直接模拟执行啊?

中间这一段是用类似于jsfuck
http://www.jsfuck.com/
这种东西转过了的吧,基本上没法看(正常人都理解不了,如果想要弄明白得花很多时间)

图片说明
无论怎么加密都只是为了让人看不懂,而解析器绝对能看懂(解析器看不懂就是错误了)

所以看上述图片就是
_1R =
这一段的执行结果,所以你可以类似的全部执行完,看最后结果,再替换,只能这样解决.
前端加密无论怎样其实都是意义不大的原因也就是这样. 无论怎么混淆,怎么乱,如果愿意花时间的话是一定能分析出来的,其余的部分就需要你自己去解决了

图片说明
上面图片错了

    document.cookie = '__jsl_clearance=1536651629.335|0|' + (function() {
        var _o = [function(_K) {
            return _K
        }, function(_o) {
            return _o
        }, (function() {
            var _K = document.createElement('div');
            _K.innerHTML = '<a href=\'/\'>_1R</a>';
            _K = _K.firstChild.href;
            var _o = _K.match(/https?:\/\//)[0];
            _K = _K.substr(_o.length).toLowerCase();
            return function(_o) {
                for (var _1R = 0; _1R < _o.length; _1R++) {
                    _o[_1R] = _K.charAt(_o[_1R])
                };
                return _o.join('')
            }
        })()],
            _1R = [
                [-~!{}],
                [-~!{}] + ((+ !! window['__p' + 'hantom' + 'as']) + [
                    []
                ][0]), [5],
                [-~!{}] + [-~ {} - ~ {}],
                [4 + 4],
                [((-~ {} << -~ {}) << -~~~ {}) - ~ (-~ ((-~ (+!window['__p' + 'hantom' + 'as']) ^ -~~~ {})))],
                [-~ {} - ~ {} - ~ {}], ((+ !! window['__p' + 'hantom' + 'as']) + [
                    []
                ][0]), [-~ {} - ~ {}], ((-~ [] + [2]) / [2] + [] + []), [-~!{}] + [-~!{}],
                [((-~ {} << -~ {})) * [(-~ {} << -~ {})]],
                [(-~ {} + [((-~ {} << -~ {}) << -~~~ {})] >> -~ {})]
            ];
        for (var _K = 0; _K < _1R.length; _K++) {
            _1R[_K] = _o[[1, 2, 1, 0, 2, 1, 0, 1, 0, 2, 1, 0, 1][_K]](['DrZ', 'CzjdH', ({} + [] + [
                []
            ][0]).charAt((+!window['__p' + 'hantom' + 'as']) + 8) + ({} + [] + [
                []
            ][0]).charAt((+!window['__p' + 'hantom' + 'as']) + 8), [window['__p' + 'hantom' + 'as'] + [] + [
                []
            ][0]][0].charAt(([-~ (+!window['__p' + 'hantom' + 'as'])] + ~~![] >> -~ (+!window['__p' + 'hantom' + 'as']))), [-~ {} - ~ {} - ~ {}], 'mXzcZO9GLO', [
                [5]
            ], 'D', [
                [-~!{}] + ((+ !! window['__p' + 'hantom' + 'as']) + [
                    []
                ][0])], 'L', [
                [(-~ {} + [((-~ {} << -~ {}) << -~~~ {})] >> -~ {})]
            ], 'Y%', ({} + [] + [
                []
            ][0]).charAt((+!window['__p' + 'hantom' + 'as']) + 8)][_1R[_K]])
        };
        return _1R.join('')
    })() + ';Expires=Tue, 11-Sep-18 08:40:29 GMT;Path=/;'
};


    只有这一段是有用的js, 这应该是中国企业公信网登录的代码,
    js应该是被加密过, 这一段是生成 
    __jsl_clearance=1542624521.638|0|O5EIQQcRpa20YGhjL2vQp7fs2ww%3D;Expires=Mon, 19-Nov-18 11:48:41 GMT;Path=/;
    这个的 登录用