-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide new CLI, and fix github release workflow
Provide syntax coloring Try improve workflow Fix naming in publish workflow Provide real CLI with syntax Coloring Fix readme with information about CLI options Improve way of processing CLI options & standard input
- Loading branch information
Showing
8 changed files
with
320 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
using CommandLine; | ||
using System.Collections.Generic; | ||
using vbSparkle.Options; | ||
|
||
namespace vbSparkle.CLI | ||
{ | ||
class Options | ||
class BaseOptions | ||
{ | ||
[Option('p', "path", Group = "inputGroup", HelpText = "Path of directory or script file(s) to be deobfuscated.")] | ||
public IEnumerable<string> InputFiles { get; set; } | ||
|
||
[Option("stdin", | ||
Default = false, | ||
Group = "inputGroup", | ||
HelpText = "Read from stdin")] | ||
public bool stdin { get; set; } | ||
|
||
[Option('o', "output", Required = false, Default = null, HelpText = "File offset.")] | ||
public string Output { get; set; } | ||
|
||
[Option( | ||
Default = false, | ||
HelpText = "Prints all messages to standard output.")] | ||
public bool Verbose { get; set; } | ||
[Option("sym-rename-mode", | ||
Default = SymbolRenamingMode.None, | ||
HelpText = "Define how symbols can be renamed.")] | ||
public SymbolRenamingMode SymbolRenamingMode { get; set; } | ||
|
||
[Option("junk-code-processing", | ||
Default = JunkCodeProcessingMode.Comment, | ||
HelpText = "Define how junk code should be processed.")] | ||
public JunkCodeProcessingMode JunkCodeProcessingMode { get; set; } | ||
|
||
[Option('i', "indent-spacing", | ||
Default = 4, | ||
HelpText = "Defines the number of spaces taken into account for the indentation of the code.")] | ||
public int IndentSpacing { get; set; } | ||
|
||
} | ||
|
||
class Options: BaseOptions | ||
{ | ||
[Option('p', "path", Required = true, HelpText = "Path of directory or script file(s) to be deobfuscated.")] | ||
public IEnumerable<string> InputFiles { get; set; } | ||
|
||
} | ||
} |
Oops, something went wrong.