home *** CD-ROM | disk | FTP | other *** search
- ' Solaris finger bug '@a b c d e f g h'
-
- Function Main
-
- Dim request As String
- Dim data As String
- Dim fdata As String
- Dim SocketObject As Object
- Dim result As Boolean
- Dim fnd As Boolean
- result = false
- ip = getparameter("ComputerIP")
- port = "79"
- cr = Chr(13) + Chr(10)
- Socket.SetTimeout 5000,5000
- request = "a b c d e f g h"
- Set SocketObject = Socket.OpenTCP (ip,port)
- If Not SocketObject is Nothing Then
- SocketObject.send(request+cr)
- fdata = ""
- data = "1"
- While Len(data) > 0
- data = SocketObject.recv(256)
- fdata = fdata + data
- Wend
- If InStr(1, fdata,"nobody") > 0 Then
- 'echo("-> User list :"+cr)
- 'echo(fdata)
- result = true
- End If
- SocketObject.close
- End If
- main = result
-
- End Function
-