All Projects β†’ noraj β†’ vbsmin

noraj / vbsmin

Licence: MIT license
VBScript minifier

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to vbsmin

Minify
Go minifiers for web formats
Stars: ✭ 2,824 (+14763.16%)
Mutual labels:  minify, minifier
imagemin-power-cli
Optimize (compress) images with power using imagemin πŸ’ͺ
Stars: ✭ 13 (-31.58%)
Mutual labels:  minify, minifier
MinifyAll
A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
Stars: ✭ 54 (+184.21%)
Mutual labels:  minify, minifier
Minify
CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
Stars: ✭ 1,710 (+8900%)
Mutual labels:  minify, minifier
MinifyAllCli
πŸ“¦ A lightweight, simple and easy npm tool to π—Ίπ—Άπ—»π—Άπ—³π˜† JSON/C, HTML and CSS! Also known as MinifyAll core! ⭐ Usable as π‘ͺ𝑳𝑰 tool or π’Šπ’Žπ’‘π’π’“π’•π’‚π’ƒπ’π’† in TS/JS as a 𝑴𝑢𝑫𝑼𝑳𝑬 πŸ₯°
Stars: ✭ 21 (+10.53%)
Mutual labels:  minify, minifier
relateurl
Create a relative URL with options to minify.
Stars: ✭ 52 (+173.68%)
Mutual labels:  minify
hasmin
Hasmin - A Haskell CSS Minifier
Stars: ✭ 55 (+189.47%)
Mutual labels:  minifier
pug-symfony
Pug (Jade) template engine for Symfony
Stars: ✭ 40 (+110.53%)
Mutual labels:  minify
asset-mix
Provides helpers functions for CakePHP to use Laravel Mix.
Stars: ✭ 27 (+42.11%)
Mutual labels:  minifier
RazorHtmlMinifier.Mvc5
β†˜οΈ Trivial compile-time Razor HTML Minifier for ASP.NET MVC 5.
Stars: ✭ 31 (+63.16%)
Mutual labels:  minifier
oscp-omnibus
A collection of resources I'm using while working toward the OSCP
Stars: ✭ 46 (+142.11%)
Mutual labels:  offensive-security
meteor
A cross-platform C2/teamserver supporting multiple transport protocols, written in Go.
Stars: ✭ 31 (+63.16%)
Mutual labels:  offensive-security
php-reverse-shell
PHP shells that work on Linux OS, macOS, and Windows OS.
Stars: ✭ 274 (+1342.11%)
Mutual labels:  offensive-security
booto
😍A light framework for React Application. Easy for life!
Stars: ✭ 18 (-5.26%)
Mutual labels:  minify
WireBirb
A scapy based module for programming offensive and defensive networking tools easier than before.
Stars: ✭ 16 (-15.79%)
Mutual labels:  offensive-security
Power-Refresh-VBScript
Visual Basic Script Refresher for Excel files with Power Query and PowerPivot model
Stars: ✭ 18 (-5.26%)
Mutual labels:  vbs
yii2-minify-url
Project on YII2 framework for create short url (url shortener)
Stars: ✭ 15 (-21.05%)
Mutual labels:  minify
Matthew-Lancaster
A Collect of Script For AutohotKey, DOS Command, VBScript, VB6, VB2008, Grub4Dos, Reg Keys, Win Powershell, SMTP, ARDUNIO, GITHUB Begin OCT 2018
Stars: ✭ 21 (+10.53%)
Mutual labels:  vbs
Shelly
Automatic Reverse Shell Generator
Stars: ✭ 38 (+100%)
Mutual labels:  offensive-security
Alom
Alom PHP Obfuscator / Encoder can protect from your codes
Stars: ✭ 50 (+163.16%)
Mutual labels:  minify

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

$ gem install vbsmin

See more install options.

Default usage: CLI

$ 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

require 'vbsmin'

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

Example of output

So this chunk of script...

' 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:

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)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].