Open gokaybiz opened 6 months ago
Sounds like a good idea
I'd rather pass them as options so it works with async and can edit the AST directly instead of having to parse/generate result.code
again
And also change the format to be compatible with babel plugins (https://babeljs.io/docs/plugins#plugin-development)
How about such an API?
function myPlugin({ types }) {
return {
runAfter: 'deobfuscate', // 'parse' | 'prepare' | 'unminify' | 'deobfuscate' | 'unpack'
visitor: {
Identifier(path) {}
},
};
}
const result = await webcrack(input, { plugins: [myPlugin] });
console.log(result.code);
And also change the format to be compatible with babel plugins
I 🖤 that idea!
Sounds like a good idea I'd rather pass them as options so it works with async and can edit the AST directly instead of having to parse/generate
result.code
again And also change the format to be compatible with babel plugins (https://babeljs.io/docs/plugins#plugin-development)How about such an API?
function myPlugin({ types }) { return { runAfter: 'deobfuscate', // 'parse' | 'prepare' | 'unminify' | 'deobfuscate' | 'unpack' visitor: { Identifier(path) {} }, }; } const result = await webcrack(input, { plugins: [myPlugin] }); console.log(result.code);
Great!
It'd be great If we can extend rules/scripts. Depends on choice, before or after deobfuscation.
For example: