Skip to content

Commit

Permalink
Fix CLI instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBaryoPX committed Aug 1, 2023
1 parent f655457 commit 1647b07
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,22 @@ console.log(`Obfuscation type is probably ${most_likely_obfuscation_type}`);
```

### CLI
> obfuscation-detector /path/to/obfuscated.js [stopAfterFirst]
```bash
obfuscation-detector /path/to/obfuscated.js [stopAfterFirst]
```

Getting all matching obfuscation types for a file:
> $ obfuscation-detector /path/to/obfuscated.js
> [+] function_to_array_replacements, augmented_proxied_array_function_replacements
```bash
$ obfuscation-detector /path/to/obfuscated.js
[+] function_to_array_replacements, augmented_proxied_array_function_replacements
```

Getting just the first match:
> $ obfuscation-detector /path/to/obfuscated.js stop
> [+] function_to_array_replacements
```bash
$ obfuscation-detector /path/to/obfuscated.js stop
[+] function_to_array_replacements
```


The `stopAfterFirst` arguments doesn't have to be any specific string, it just needs not to be empty.

Expand Down

0 comments on commit 1647b07

Please sign in to comment.