mirror of
https://github.com/thegeneralist01/twitter-tid-deobf-fork
synced 2026-01-11 07:30:38 +01:00
add base
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
0b0d6f516a
commit
3d34959df0
6 changed files with 475 additions and 4 deletions
5
deobf.js
5
deobf.js
|
|
@ -19,7 +19,8 @@ let beautify_opts = {
|
|||
minified: false,
|
||||
concise: false,
|
||||
}
|
||||
const script = readFileSync('./source/a.js', 'utf-8');
|
||||
const [_,__,inputPath,outputPath] = process.argv;
|
||||
const script = readFileSync(inputPath, "utf-8");
|
||||
|
||||
const AST = parser.parse(script, {})
|
||||
|
||||
|
|
@ -557,4 +558,4 @@ writeFileSync("output.log", output, 'utf-8')
|
|||
|
||||
const final_code = generate(AST, beautify_opts).code;
|
||||
|
||||
fs.writeFileSync('./output/a.js', final_code);
|
||||
fs.writeFileSync(outputPath, final_code);
|
||||
Loading…
Add table
Add a link
Reference in a new issue