fix: add a deobfuscate packed js function

master
Vishnunarayan K I 2020-03-18 16:57:39 +05:30
parent 46d6464f6c
commit 0c97817d00
1 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,10 @@ def format_command(cmd, episode, file_format, path):
return cmd
def deobfuscate_packed_js(packedjs):
return eval_in_node('eval=console.log; ' + packedjs)
def eval_in_node(js: str):
# TODO: This should be in util
output = subprocess.check_output(['node', '-e', js])