-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeobsfucate.py
More file actions
23 lines (14 loc) · 6.64 KB
/
deobsfucate.py
File metadata and controls
23 lines (14 loc) · 6.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def main(array):
hexArray = []
for item in array:
hexArray.append(hex(array.index(item)))
with open('deobfuscate2.js') as f:
filedata = f.read()
for x in hexArray:
index = int(x, 16)
string = array[index]
filedata = filedata.replace(f"findStringFunc('{x}')", "'" + string + "'")
with open('deobfuscate2.js', 'w') as f:
f.write(filedata)
stringArray = ['script', 'stripQuery', '/nions-to-vnse-the-Bewarfish-so-like-here-hoa-Mon', 'open', 'length', '[object\x20Array]', 'string', '_bodyBlob', 'retry', 'FileReader', 'redirect', '_initBody', 'measures', 'withCredentials', 'clone', 'could\x20not\x20read\x20FormData\x20body\x20as\x20blob', 'bodyUsed', 'content-type', 'body', 'Chromium', 'waitingOnToken', 'default', '_state', 'run', 'toLowerCase', 'cookie', 'forEach', 'timerId', 'listeners', ';\x20max-age=', 'hasOwnProperty', 'min', 'summary', ':\x20', 'application/x-www-form-urlencoded;charset=UTF-8', 'You\x20cannot\x20resolve\x20a\x20promise\x20with\x20itself', 'interrogation', 'random', '[object\x20Float32Array]', 'response', 'reject', 'You\x20must\x20pass\x20an\x20array\x20to\x20race.', 'slice', 'hash', '__awaiter', 'x-d-token', 'number', 'deleteCookie', 'fonts', '?cachebuster=', 'fun', 'cookieDomain', '__web', 'getItem', 'onload', 'port1', 'callGlobalCallback', 'return\x20this', 'updateToken', 'pop', 'message', 'Invalid\x20status\x20code', 'external', 'function', 'Unable\x20to\x20find\x20a\x20challenge\x20script\x20with\x20`src`\x20attribute\x20`', 'uate', 'defineProperty', 'setSeconds', 'pow', 'toString', 'could\x20not\x20read\x20FormData\x20body\x20as\x20text', 'Recaptcha', 'has', '_IDE_Recorder', 'array', 'DOMContentLoaded', '[object\x20Uint8ClampedArray]', '[object\x20Int32Array]', 'append', 'prototype', '600', 'cast', 'fromTokenResponse', 'start', 'getElementsByTagName', 'enableFull', 'PUT', 'log', 'exports', '_stop', 'keys', 'charCodeAt', 'progress', 'set', 'MacIntel', 'map', 'A\x20promises\x20callback\x20cannot\x20return\x20that\x20same\x20promise.', 'setToken', 'process.binding\x20is\x20not\x20supported', 'Failed\x20to\x20construct\x20Promise:\x20Please\x20use\x20the\x20new\x20operator,\x20this\x20object\x20constructor\x20cannot\x20be\x20called\x20as\x20a\x20function.', 'title', '400', 'search', '_result', 'reeseSkipExpirationCheck', 'fromJson', 'Snow\x20Leopard', '__esModule', 'headers', 'get', 'umask', 'apply', 'getSeconds', 'Lion/Mountain\x20Lion', 'polyfill', 'Request\x20error\x20for\x20POST\x20', 'reese84_', 'reeseRetriedAutoload', 'addEventListener', '__s', 'CaptchaPayload', 'json', '_script_fn', 'setRequestHeader', 'readyState', '', 'finally', 'Network\x20request\x20failed', '[object\x20Uint32Array]', 'reeseSkipAutoLoad', 'resolve', 'tion', 'floor', 'done', 'cache_', 'automationCheck', 'findChallengeScript', 'POST', 'HEAD', 'duration', 'undefined', '__generator', '__extends', 'parse', 'all', 'getOwnPropertyNames', 'readAsText', 'screen', 'fetch', 'video', 'next', 'bon', 'true', 'ops', 'env', 'status', 'argv', 'bind', 'responseURL', 'ontimeout', 'emit', 'parentNode', 'responseType', 'visibilitychange', 'text/plain;charset=UTF-8', 'getElementById', 'getAllResponseHeaders', 'Win32', 'data-advanced', '_remaining', 'GET', 'send', 'Array\x20Methods\x20must\x20be\x20provided\x20an\x20Array', 'statusText', 'entries', 'object', 'total', 'SolutionResponse', 'sent', 'setItem', 'scheduler', 'Non-ok\x20status\x20code:\x20', 'removeAllListeners', 'appendChild', 'process.chdir\x20is\x20not\x20supported', '_onerror', 'update', 'currentTokenError', 'iterator', 'Mavericks', 'FormData', 'onmessage', 'none_secure', 'prependOnceListener', '_bodyText', 'initializeProtection', 'Linux', 'x-d-test', 'clearMarks', 'blob', 'findScriptBySource', 'Windows', 'setCookie', 'buildCookie', 'loading', 'constructor', '_start', 'Safari', 'callback', 'runAutomationCheck', 'solve', 'startInternal', 'appendQueryParam', '_script_', '_instanceConstructor', 'throw', 'Promise', 'credentials', '[object\x20Uint8Array]', 'COOKIE_NAME', 'addListener', '_bodyArrayBuffer', 'push', '__proto__', 'match', 'replace', '[object\x20Int16Array]', 'toStringTag', 'INPUT', 'onerror', '_willSettleAt', 'include', 'Internet\x20Explorer', '_label', 'legacy', 'X-Request-URL', 'reduce', 'location', 'race', 'setTimeout', 'PerformanceTimer', 'httpClient', 'timer', '__fx', 'isSearchEngine', 'buffer', '_bodyFormData', 'mark', 'hostname', 'unsupported\x20BodyInit\x20type', 'text', 'userAgent', 'debug', 'currentTokenExpiry', 'renewInSec', '700', 'started', 'media', 'trys', 'removeListener', '[object\x20Promise]', 'application/json;\x20charset=utf-8', 'url', 'error:\x20', 'stringify', 'arrayBuffer', '[object\x20Int8Array]', 'getTime', 'type', 'browser', 'versions', ';\x20domain=', 'now', 'marks', 'Module', 'pageshow', 'token', 'lax', 'responseText', 'polyfill\x20failed\x20because\x20global\x20object\x20is\x20unavailable\x20in\x20this\x20environment', '=;\x20path=/;\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:01\x20GMT', 'Solution', 'omit', 'getAttribute', 'text/plain;\x20charset=utf-8', 'max', 'stopInternal', 'Timeout\x20while\x20retrieving\x20token', 'WebKitMutationObserver', 'lax', 'Already\x20read', 'call', 'performance', 'return', 'trim', ';\x20path=/', 'ROTL', '_settledAt', 'submitCaptcha', 'Request', 'document', 'postMessage', 'SECONDARY_COOKIE', 'measure', 'timerFactory', 'shift', 'concat', 'isArray', 'indexOf', 'join', 'createElement', 'method', '=([^;]+)', 'clearTimeout', 'promise', 'mode', 'Unexpected\x20token\x20response\x20format', 'postbackUrl', 'URLSearchParams', 'validate', ';\x20samesite=none;\x20secure', 'result', 'label', 'toHexStr', '_eachEntry', 'currentToken', 'onProtectionLoaded', 'setPrototypeOf', 'web', 'OPTIONS', 'off', 'tokenExpiryCheck', '_enumerate', '_asap', 'Headers', 'onProtectionInitialized', 'ArrayBuffer', 'isPrototypeOf', 'fire', '_subscribers', 'name', 'recaptcha', 'createTextNode', 'error', 'cwd', 'CaptchaProvider', 'referrer', 'then', 'split', 'triggerTimeMs', 'beta\x20error:\x20', 'navigator', 'stop', '_bodyInit', 'beta', 'nextTick', 'Protection', 'Blob', '___dTL', 'Yosemite', 'PRIMARY_COOKIE', 'substring', 'interrogatorFactory', 'observe', 'tokenEncryptionKeySha2', 'reese84interrogator', 'online', 'extractCookie', 'getToken', 'eval', '500', 'Body\x20not\x20allowed\x20for\x20GET\x20or\x20HEAD\x20requests', 'documentElement', 'Generator\x20is\x20already\x20executing.', 'setTimeout\x20has\x20not\x20been\x20defined', '_setScheduler', 'Post', 'clearTimeout\x20has\x20not\x20been\x20defined', 'once', 'Firefox', 'isView', 'COOKIE_NAME_SECONDARY', 'ceil', 'audio', 'src', 'prependListener', '_unwrapped', 'catch', 'RecoverableError', '[object\x20process]', 'port2', 'create', 'value', 'cpu', 'runLater']
main(stringArray)