C# 在C上使用JavaScripts方法#
我正在下载网页并解析javascript代码,这些代码具有代码内哈希和java解码功能。。。 我想从C程序调用javascript解码方法 在网页中,我:C# 在C上使用JavaScripts方法#,c#,javascript,methods,C#,Javascript,Methods,我正在下载网页并解析javascript代码,这些代码具有代码内哈希和java解码功能。。。 我想从C程序调用javascript解码方法 在网页中,我: window.decoded_hashes = {}; window.decodehash = function(hash) { window.dec_hash(hash); return window.decoded_hashes[hash]; window.dec_hash = function(hash) { (functi
window.decoded_hashes = {};
window.decodehash = function(hash) {
window.dec_hash(hash);
return window.decoded_hashes[hash];
window.dec_hash = function(hash) {
(function(__){window.decoded_hashes[hash] = _(__,8,_____(__)-12)+_(__,0,5);})((function(__){____='';for(___=0;___<_____(__);++___)____+=______(__,_____(__)-___-1);return window[_______(88,11,-13)]?__:____;})((function(__){____=window[_______(103,-2)]?'':'____';for(___=0;___<_____(__);++___)____+=(function(__){return __>111?(121-__):_______(__);})(__.charCodeAt(___));return ____;})((function(__){_______=function(){var _='',__=0,___=arguments;for(var ____=0;____<___.length;++____)_+=String.fromCharCode(__+=___[____]);return _;};______=function(__,___){return __.charAt(___);};_____=function(__){return __.length;};____=(_=function(_,__,___){____='';(___=___?___:(_____(_)-__));for(;___;--___)____+=(function(_,__){return ______(_,__)})(_,__++);return ____;})(__,3,3);____+=_(__,0,2)+_(__,8);return ____;})(hash))));
}
window.wall_post_hash = decodehash('tsucuqtyqvedvvpruuqasavdpwdcxafcystrdfvsyd');
window.decoded_hashes={};
window.decodehash=函数(哈希){
window.dec_散列(hash);
返回窗口。解码的_散列[hash];
window.dec_hash=函数(散列){
(函数(uuu){window.decoded_uhashes[hash]=uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu8、uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu12)+uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
查看关于如何使用Eval获得结果的示例
这是一个我在调试和更改后设法实现的实现。它返回的结果与您的示例相同。一个问题是.Net似乎无法使用函数“arguments”变量。因此,我向该函数添加了5个变量以使其工作。似乎传递的最多是3个
package Pack
{
class JSEval
{
public function MyEval(inputhash : String) : String
{
var ___ = 0;
var _= '';
var ____ = '';
var _______;
var ______;
var _____;
var ____ = (_ = function(_, __, ___) {
____ = '';
(___ = ___ ? ___ : (_____(_) - __));
for (; ___; --___) ____ += (function(_, __) {
return ______(_, __)
})(_, __++);
return ____;
})
var mywin = new Object();
mywin.decoded_hashes = {};
mywin.dec_hash = function(hash) {
(function(__) {
mywin.decoded_hashes[hash] = _(__, 8, _____(__) - 12) + _(__, 0, 5);
})((function(__) {
var ____ = '';
for (___ = 0; ___ < _____(__); ++___) ____ += ______(__, _____(__) - ___ - 1);
return mywin[_______(88, 11, -13)] ? __ : ____;
})((function(input) {
var res = mywin[_______(103, -2)] ? '' : '____';
for (var i = 0; i < _____(input); ++i) res += (function(input) {
return input > 111 ? (121 - input) : _______(input);
})(input.charCodeAt(i));
return res;
})((function(__) {
_______ = function(a,b,c,d,e) {
var arguments = new Array();
if( a != undefined )
arguments.push(a);
if( b != undefined )
arguments.push(b);
if( c != undefined )
arguments.push(c);
if( d != undefined )
arguments.push(d);
if( e != undefined )
arguments.push(e);
var _ = '';
var __ = 0;
for (var i = 0; i < arguments.length; ++i) _ += String.fromCharCode(__ += arguments[i]);
return _;
};
______ = function(__, ___) {
return __.charAt(___);
};
_____ = function(__) {
return __.length;
};
____ = (_ = function(_, __, ___) {
____ = '';
(___ = ___ ? ___ : (_____(_) - __));
for (; ___; --___) ____ += (function(_, __) {
return ______(_, __)
})(_, __++);
return ____;
})(__, 3, 3);
____ += _(__, 0, 2) + _(__, 8);
return ____;
})(hash))));
}
mywin.decodehash = function(hash) {
mywin.dec_hash(hash);
return mywin.decoded_hashes[hash];
}
return mywin.decodehash(inputhash);
}
}
}
软件包
{
类JSEval
{
公共函数MyEval(inputhash:String):String
{
var=0;
var u='';
var uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu;
变量;
var u__;;
var u__;;
变量uuuuuuuuuuuuuuuu=(uuu=函数(uuu,uuuuuuuu,uuuuuuu){
____ = '';
(___ = ___ ? ___ : (_____(_) - __));
对于(;__;;——___;)__;+=(函数(u,u;){
返回
})(_, __++);
返回u_;;
})
var mywin=新对象();
mywin.decoded_hashes={};
mywin.dec_hash=函数(hash){
(函数){
mywin.decoded_hash[hash]=u8、uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu;
})((函数){
var uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu;
对于(uuuuuu=0;uuuuuuuu111?(121-输入):\uuuuuuuuuuuuuuuuuuuuuuuu(输入);
})(输入charCodeAt(i));
返回res;
})((函数){
_______=函数(a,b,c,d,e){
var参数=新数组();
如果(a!=未定义)
参数。推送(a);
如果(b!=未定义)
参数。推送(b);
如果(c!=未定义)
参数。推送(c);
如果(d!=未定义)
参数。推送(d);
如果(e!=未定义)
参数。推(e);
var u='';
var _;=0;
对于(var i=0;i