From 14383617f5ba6b4926a7fee8b338219ab1fb6226 Mon Sep 17 00:00:00 2001 From: Gesugao-san Date: Mon, 21 Jun 2021 13:20:57 +0300 Subject: [PATCH 1/2] Added argparse, colorama to req.txt & README changes --- README.md | 16 +++++++++++++++- requirements.txt | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index 3164808..6f3d404 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,17 @@ # vbe-decoder.py -Decode one or multiple encoded VBScript files, often seen with a `.vbe` file extension. +Decode one or multiple encoded VBScript files, often seen with a `.vbe` file extension into decoded `.vbs` files. + +## Installing requirements + +The following command will install the packages according to the configuration file requirements.txt. + +```shell + +usage: pip install -r requirements.txt +``` + +Note the -r option; without it, pip thinks you want to install a package named requirements.txt, which doesn't exist. ## Usage @@ -21,6 +32,9 @@ optional arguments: ## Examples ```bash +# install the packages +$ pip install -r requirements.txt + # display on stdout $ python3 vbe-decoder.py encoded.vbe diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..24a3e1e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +argparse +colorama From 6bef9732fa484bf00940287e22ebaaf190bb8107 Mon Sep 17 00:00:00 2001 From: Gesugao-san Date: Tue, 6 Jul 2021 10:00:22 +0300 Subject: [PATCH 2/2] Git, VSCode, License staff --- .editorconfig | 18 ++++++++++++++++ .gitattributes | 9 ++++++++ .github/CODEOWNERS | 1 + .gitignore | 48 +++++++++++++++++++++++++++++++++++++++++ .vscode/extensions.json | 14 ++++++++++++ .vscode/launch.json | 12 +++++++++++ .vscode/settings.json | 22 +++++++++++++++++++ LICENSE | 21 ++++++++++++++++++ 8 files changed, 145 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .github/CODEOWNERS create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 LICENSE diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f26da75 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ + +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = crlf +files.encoding = "utf8" +indent_size = 4 +indent_style = tab +insert_final_newline = true +max_line_length = 80 +trim_trailing_whitespace = true + +[*.py] +indent_style = space diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..839c461 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ + +* text=auto + +## Enforce text mode and CRLF line breaks +*.md text eol=crlf +*.txt text eol=crlf + +# Scripts +*.py text eol=crlf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..f930602 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +./vbe-decoder.py @JohnHammond diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2883ce6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,48 @@ +# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig + +# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode + +# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) + diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..b293df4 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,14 @@ +{ + "recommendations": [ + "eamodio.gitlens", + "jasonnutter.vscode-codeowners", + "shan.code-settings-sync", + "shd101wyy.markdown-preview-enhanced", + "wwm.better-align", + "yzhang.markdown-all-in-one", + "ms-python.python", + "editorconfig.editorconfig", + "usernamehw.errorlens", + "oderwat.indent-rainbow" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c9b45ad --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,12 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Текущий файл", + "type": "python", + "request": "launch", + "program": "./vbe-decoder.py", + "console": "integratedTerminal" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f3ce98e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "editor.detectIndentation": false, + "editor.insertSpaces": false, + "editor.tabSize": 4, + "files.encoding": "utf8", + "files.eol": "\r\n", + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "files.trimTrailingWhitespace": true, + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/.classpath": true, + "**/.project": true, + "**/.settings": true, + "**/.factorypath": true + }, + "python.pythonPath": "C:\\Program Files\\Python39\\python.exe", +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6728811 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 JohnHammond + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.