mirror of
https://github.com/dockersrc/scripts
synced 2026-01-27 10:34:36 -05:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
17
htdocs/cgi-bin/printenv.vbs
Normal file
17
htdocs/cgi-bin/printenv.vbs
Normal file
@@ -0,0 +1,17 @@
|
||||
'!c:/windows/system32/cscript -nologo
|
||||
Option Explicit
|
||||
|
||||
Dim objShell, objArray, str, envvar, envval
|
||||
Set objShell = CreateObject("WScript.Shell")
|
||||
Set objArray = CreateObject("System.Collections.ArrayList")
|
||||
|
||||
WScript.StdOut.WriteLine "Content-type: text/plain; charset=iso-8859-1" & vbLF
|
||||
For Each str In objShell.Environment("PROCESS")
|
||||
objArray.Add str
|
||||
Next
|
||||
objArray.Sort()
|
||||
For Each str In objArray
|
||||
envvar = Left(str, InStr(str, "="))
|
||||
envval = Replace(Mid(str, InStr(str, "=") + 1), vbLF, "\n")
|
||||
WScript.StdOut.WriteLine envvar & Chr(34) & envval & Chr(34)
|
||||
Next
|
||||
Reference in New Issue
Block a user