mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-10 08:05:00 -04:00
feat(new tool): JS Unobfuscator
webcrack is a tool for reverse engineering javascript. It can deobfuscate obfuscator.io, unminify, transpile, and unpack webpack/browserify, to resemble the original source code as much as possible.
This commit is contained in:
parent
e876d03608
commit
b5d3ed6b89
7 changed files with 1035 additions and 106 deletions
36
src/tools/js-unobfuscator/js-unobfuscator.vue
Normal file
36
src/tools/js-unobfuscator/js-unobfuscator.vue
Normal file
|
@ -0,0 +1,36 @@
|
|||
<script setup lang="ts">
|
||||
import { webcrack } from 'webcrack';
|
||||
|
||||
const input = ref('');
|
||||
const result = computedAsync(async () => {
|
||||
try {
|
||||
return await webcrack(input.value);
|
||||
}
|
||||
catch (e: any) {
|
||||
return {
|
||||
code: `/*\n${e.toString()}\n*/`,
|
||||
bundle: '',
|
||||
};
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CInputText
|
||||
v-model:value="input"
|
||||
placeholder="Your obfuscate Javascript code"
|
||||
label="Obfuscate Javascript code:"
|
||||
rows="20"
|
||||
autosize
|
||||
raw-text
|
||||
multiline
|
||||
monospace
|
||||
/>
|
||||
|
||||
<n-form-item label="Deobfuscated code:">
|
||||
<textarea-copyable :value="result?.code" language="javascript" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Bundle:">
|
||||
<textarea-copyable :value="result?.bundle" language="javascript" />
|
||||
</n-form-item>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue