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.vbsrequire '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 On Error Resume Next:Set objWbemLocator = CreateObject ("WbemScripting.SWbemLocator"):if Err.Number Then:WScript.Echo vbCrLf & "Error # " & " " & Err.Description:End If:On Error GoTo 0References
Homepage / Documentation: this CLI / tool was required.
Use cases
- SQLi: when having a 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 or file upload limit
Author
Made by Alexandre ZANNI (
SOCIAL SHARE CARD GENERATOR