Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Here’s the VBS
EXEC master.dbo.xp_cmdshell 'C:\Windows\System32\cscript.exe "C:\tests\convert.VBS" //B', NO_OUTPUT EXEC master.dbo.xp_cmdshell 'cscript convert.VBS' –-.vbs in system32 directory EXEC master.dbo.xp_cmdshell '"C:\tests\convert.VBS"'
set img = CreateObject("ImageMagickObject.MagickImage.1") set fso = CreateObject("Scripting.FileSystemObject") set files = fso.GetFolder("C:/TESTS").Files for each file in files img.Convert file.name, "C:/TESTS/converted/%d_" & file.name 'if file.name == ("convert.VBS") then 'do nothing 'else 'fso.deletefile(file.name) 'end if next set files = fso.GetFolder("C:/TESTS/converted").FIles for each file in files wscript.echo file.name next WScript.Quit(0)