Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
vbsmin — VBScript minifier | Kitploit
Tools/GitHubGitHub/noraj/vbsmin
Payload GenerationScripting & AutomationWeb Application Exploitation
GitHubnoraj/vbsmin

vbsmin

VBScript minifier

View RepositoryWebsite
25413 days agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

VBSmin

Gem Version GitHub tag (latest SemVer) GitHub forks GitHub stars GitHub license Rawsec's CyberSecurity Inventory

Packaging status

VBScript minifier

Features

  • ⬜️ Remove extra whitespace
    • Trailing whitespace
    • Leading whitespace
    • Blank lines
    • Inline extra spaces
  • 💬 Remove comments
    • Single quote (start of the line)
    • Single quote (inline)
    • REM
  • 1️⃣ One-line
    • Line splitting (underscore)
    • Colon

Quick start

Quick install

root@kitploit:~
$ gem install vbsmin

See more install options.

Default usage: CLI

root@kitploit:~
$ vbsmin samples/features.vbs
Original file size: 344 bytes
Minified file size: 244 bytes
Size saved: 100 bytes

Original file path: samples/features.vbs
Minified file path: samples/features.min.vbs

Default usage: library

root@kitploit:~
require 'vbsmin'

vm = VBSMin.new
vm.minify('samples/features.vbs')

Example of output

So this chunk of script...

root@kitploit:~
' Get WMI Object.
On Error Resume Next
Set objWbemLocator = CreateObject _
  ("WbemScripting.SWbemLocator")

if Err.Number Then
  REM Display error
  WScript.Echo vbCrLf & "Error # " & _
               " " & Err.Description
End If
On Error GoTo 0	

... should be minified to:

root@kitploit:~
On Error Resume Next:Set objWbemLocator = CreateObject ("WbemScripting.SWbemLocator"):if Err.Number Then:WScript.Echo vbCrLf & "Error # " & " " & Err.Description:End If:On Error GoTo 0

References

Homepage / Documentation: https://noraj.github.io/vbsmin/

See why this CLI / tool was required.

Use cases

  • SQLi: when having a SQLi with write permission, you can write some files on the system, but some DBMS like PostgreSQL doesn't support newlines in an insert statement so you have to be able to write a one-line payload
  • File size:
    • in XSS or Word macro to get the more short and stealthy payload or even to bypass security mechanism based on length or size.
    • for performance or file upload limit

Author

Made by Alexandre ZANNI (@noraj)

Download Tool