VbeDecoder
Decoder for encoded Visual Basic Script Encoded scripts (VBE), written in C#, and provided as a library for .Net Standard.
Install / Use
/learn @sbruyere/VbeDecoderREADME
vbeDecoder
Decoder for Visual Basic Script Encoded scripts (VBE) and JScript Encoded scripts (JSE), written in C#, and provided as a library for .Net Standard.
What is a VBE ?
The obfuscated VBE and JSE scripts are the result of a proprietary encoding of VBS (Visual Basic Script) and JS (JScript) scripts introduced by Microsoft in version 5 of those.
The intention was to give script authors the possibility to keep their source code confidential by obfucating it. While this feature has been abandoned by most developers, it is now very popular among malware writers to obfuscate their script in a easy way.
Various script formats can be encoded in this way:
- client scripts (
<script language="VBScript.Encode") - the server scripts of the classic ASP pages (
<%@Language="VBScript.Encode") - script files (
.vbs=>.vbe)
Developers / malware authors can encode their scripts by using the Microsoft's 'screnc.exe' command-line tool:
screnc.exe in.htm out.htm
Library
Nuggets
You can use the library by using Nuget package. For this purpose, please use one of the following methods.
Package Manager
Install-Package vbeDecoder -Version 1.0.0
.NET CLI
dotnet add package vbeDecoder --version 1.0.0
How to use ?
It's as simple as it sounds.
Decoding a file :
decodedScript = ScriptDecoder.DecodeFile(encodedScriptPath)
Decoding a raw script from a string:
decodedScript = ScriptDecoder.DecodeScript(encodedRawScript)
Decoding a raw script from a stream:
decodedScript = ScriptDecoder.DecodeStream(stream)
CLI
How to use ?
Arguments:
--stdin (Group: input) (Default: false) Read from stdin
-i, --input (Group: input) (Default: true) Input files to be processed.
-o, --output Output path.
--help Display this help screen.
--version Display version information.
Windows:
vbeDecoder.CLI.Core -i script.vbe -o decoded_script.vbs
Mutli-platform:
dotnet vbeDecoder.CLI.Core.dll -i script.vbe -o decoded_script.vbs
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
