Phpbb2 foro hackeado

  • Jetlag
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 03, 2004
  • Mensajes: 12
  • Loc: Vancouver, Canada
  • Status: Offline

Nota Diciembre 21st, 2004, 4:55 pm

Quote:
Hoy en día una gran cantidad de web han sido hackeado por un denominado "Net-Worm.Perl.Santy.a". Este gusano infecta a determinados sitios web explotando una vulnerabilidad en phpBB. Santy.a se está propagando con rapidez, y ha causado una epidemia. Santy.a es algo de una novedad - que crea una especialmente formulado solicitud de búsqueda de Google, lo que resulta en una lista de sitios web corriendo versiones vulnerables de phpBB. A continuación, se envía una petición que contenga un procedimiento que va a desencadenar la vulnerabilidad a estos sitios. Una vez que el servidor atacado procesa la solicitud, el gusano penetrará el sitio, ganando control sobre los recursos. A continuación, se repite esta rutina. Una vez que el gusano ha adquirido el control de un sitio, se escanear todos los directorios en el sitio infectado. Todos los archivos con las extensiones. Htm,. Php,. Asp,. Shtm,. Jsp y phtm serán sobrescritos con el texto Este sitio ha sido borrado! Este sitio ha sido borrado! NeverEverNoSanity WebWorm generación. Aparte de desfigurar los sitios infectados con este texto, el gusano no tiene carga de pago. No va a infectar máquinas que se utilizan para ver los sitios infectados. Recomendamos que todos los usuarios de phpBB debe actualizar a la versión 2.0.11 para prevenir sus sitios de ser desfigurado.

Desde http://www. phpbb2.de

Ejemplo de algunos lugares afectados
http://beta.search.msn.com/results.aspx?q=%22This+site+is+defaced%21%21%21%22+NeverEverNoSanity&FORM=QBHP
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Diciembre 21st, 2004, 4:55 pm

  • ScienceOfSpock
  • Mastermind
  • Mastermind
  • Avatar de Usuario
  • Registrado: Jul 06, 2004
  • Mensajes: 1890
  • Loc: Las Vegas
  • Status: Offline

Nota Diciembre 21st, 2004, 10:30 pm

Jetlag escribió:
Quote:
Hoy en día una gran cantidad de web han sido hackeado por un denominado "Net-Worm.Perl.Santy.a". Este gusano infecta a determinados sitios web explotando una vulnerabilidad en phpBB. Santy.a se está propagando con rapidez, y ha causado una epidemia. Santy.a es algo de una novedad - que crea una especialmente formulado solicitud de búsqueda de Google, lo que resulta en una lista de sitios web corriendo versiones vulnerables de phpBB. A continuación, se envía una petición que contenga un procedimiento que va a desencadenar la vulnerabilidad a estos sitios. Una vez que el servidor atacado procesa la solicitud, el gusano penetrará el sitio, ganando control sobre los recursos. A continuación, se repite esta rutina. Una vez que el gusano ha adquirido el control de un sitio, se escanear todos los directorios en el sitio infectado. Todos los archivos con las extensiones. Htm,. Php,. Asp,. Shtm,. Jsp y phtm serán sobrescritos con el texto Este sitio ha sido borrado! Este sitio ha sido borrado! NeverEverNoSanity WebWorm generación. Aparte de desfigurar los sitios infectados con este texto, el gusano no tiene carga de pago. No va a infectar máquinas que se utilizan para ver los sitios infectados. Recomendamos que todos los usuarios de phpBB debe actualizar a la versión 2.0.11 para prevenir sus sitios de ser desfigurado.

Desde http://www. phpbb2.de

Ejemplo de algunos lugares afectados
http://beta.search.msn.com/results.aspx?q=%22This+site+is+defaced%21%21%21%22+NeverEverNoSanity&FORM=QBHP


I apaga mi foro, no porque no quiero para hacer frente al problema, sino porque su las vacaciones, no tengo tiempo para hacerle frente.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • Avatar de Usuario
  • Registrado: May 28, 2003
  • Mensajes: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Nota Diciembre 21st, 2004, 10:56 pm

Esto es lo que se verá como si usted es víctima:

Imagen
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Rabid Dog
  • Web Master
  • Web Master
  • Avatar de Usuario
  • Registrado: May 21, 2004
  • Mensajes: 3229
  • Loc: South Africa
  • Status: Offline

Nota Diciembre 21st, 2004, 11:26 pm

ir para ver si aparecen más info
http://www.us-cert.gov/cas/techalerts/TA04-356A.html
de US-CERT técnica la seguridad cibernética
Watch me grow
  • meman
  • Web Master
  • Web Master
  • Avatar de Usuario
  • Registrado: Ago 03, 2004
  • Mensajes: 3432
  • Loc: London Town , Apples and pears and all that crap
  • Status: Offline

Nota Diciembre 22nd, 2004, 2:46 am

Su realmente muy inteligente, aunque de derribo en todo el sitio, es estúpido.

Vínculo que dice la gente debería de actualizar a 2.0.11, pero el destaque es explotar aún se utiliza en la explotación de 2.0.11, ¿no? i pensamiento phpBB publicó un parche para 2.0.11 para hacerle frente.
GodBeGone - Atheist Blog
  • cubechris
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Ago 30, 2004
  • Mensajes: 247
  • Loc: Gloucester, UK
  • Status: Offline

Nota Diciembre 22nd, 2004, 3:29 am

Esto ha pasado a ser como yo todavía estaba en 2.0.10, pero Google ahora se han reportado haber dejado el gusano de su uso para encontrar los foros phpBB.

Para tarde para mí, también, como ahora estoy haciendo una instalación nueva, ¿por qué me siguen dando el siguiente mensaje:

Código: [ Select ]
phpBB : Critical Error

Could not connect to the database
  1. phpBB : Critical Error
  2. Could not connect to the database
Click Into Surprises!
  • Maedhros
  • Proficient
  • Proficient
  • Avatar de Usuario
  • Registrado: Oct 31, 2004
  • Mensajes: 325
  • Loc: Durham, England
  • Status: Offline

Nota Diciembre 22nd, 2004, 3:40 am

meman escribió:
Vínculo que dice la gente debería de actualizar a 2.0.11, pero el destaque es explotar aún se utiliza en la explotación de 2.0.11, ¿no? i pensamiento phpBB publicó un parche para 2.0.11 para hacerle frente.

No, su fijo en 2.0.11 -- http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=244451 . Hubo un parche para arreglar las versiones anteriores, aunque...
Gentoo Linux: "All of a sudden, Larry the Cow was in control. And he liked it."
  • cubechris
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Ago 30, 2004
  • Mensajes: 247
  • Loc: Gloucester, UK
  • Status: Offline

Nota Diciembre 22nd, 2004, 4:39 am

¿Puede alguien por favor me ofrecen asesoramiento en cuanto a lo que he hecho mal? No puedo instalar mi foro!
Click Into Surprises!
  • Maedhros
  • Proficient
  • Proficient
  • Avatar de Usuario
  • Registrado: Oct 31, 2004
  • Mensajes: 325
  • Loc: Durham, England
  • Status: Offline

Nota Diciembre 22nd, 2004, 4:46 am

"No se puede conectar a la base de datos" - que sólo puede ser causado por un cierto número de cosas. Asegúrese de que su nombre de usuario y contraseña son correctos, y que youve Posee el servidor de base de datos creada. Estos valores deben estar en config.php.
Gentoo Linux: "All of a sudden, Larry the Cow was in control. And he liked it."
  • cubechris
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Ago 30, 2004
  • Mensajes: 247
  • Loc: Gloucester, UK
  • Status: Offline

Nota Diciembre 22nd, 2004, 6:58 am

alguien dispuesto a ayudarme a lo largo de Messenger con mi instalación?
Click Into Surprises!
  • cubechris
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Ago 30, 2004
  • Mensajes: 247
  • Loc: Gloucester, UK
  • Status: Offline

Nota Diciembre 22nd, 2004, 9:12 am

Ok Ive hecho la instalación hasta cierto punto, a continuación, obtener este mensaje de error:


Código: [ Select ]
An error has occurred during installation
An error occurred trying to update the database
Table 'phpbb_auth_access' already exists
  1. An error has occurred during installation
  2. An error occurred trying to update the database
  3. Table 'phpbb_auth_access' already exists
Click Into Surprises!
  • Maedhros
  • Proficient
  • Proficient
  • Avatar de Usuario
  • Registrado: Oct 31, 2004
  • Mensajes: 325
  • Loc: Durham, England
  • Status: Offline

Nota Diciembre 22nd, 2004, 9:21 am

Usted sabe, la mayoría de los mensajes de error están diseñados para ser de carácter informativo. :wink:

En este caso, la tabla de base de datos ya existe, por lo que no puede ser creado de nuevo. Youll tiene que ir en la base de datos con phpMyAdmin o equivalente y quitar la mesa, junto con los otros que comienzan con phpbb_. Por supuesto, esto borrará todos los datos que dentro de tablas, pero si youve nunca las usaron para phpBB theyll antes de estar vacío de todos modos.
Gentoo Linux: "All of a sudden, Larry the Cow was in control. And he liked it."
  • George L.
  • Bronze Member
  • Bronze Member
  • No Avatar
  • Registrado: Nov 05, 2007
  • Mensajes: 2206
  • Loc: Malaysia
  • Status: Offline

Nota Abril 23rd, 2009, 7:58 am

whatlikesit12345 escribió:
thats hacking básicamente bruta.

toman el administrador y luego obtener una lista de contraseñas

por ejemplo:

Admin: adminisgod
Admin: adminisgod1
Admin: adminisgod2
Admin: adminisgod3
ect
ect
ect

luego ejecutarlo (la lista) a través de un programa y se cierra la sesión en, se detiene y dice que la contraseña. no es difícil. No es que yo lo sabría. Sé que los amigos que lo hacen


Un ejemplo de un programa de fuerza bruta que podría han utilizado algún programa que fue desarrollado utilizando Visual Basic. A continuación se muestra un código de ejemplo, si usted todavía se pregunta cómo fue construido. Es sólo la mitad del código, no anuncio completo por razones obvias. Esto creo que es mi especulación, sino que podría haber utilizado otra estrategia o una combinación. Es mi curiosidad a veces trato de pensar cuáles son sus motivaciones para desarrollar herramientas y el aprendizaje de todos estos sitios web para entrometerse. De todos modos, por la naturaleza humana siempre son curiosos como yo. Somos todos. No estoy seguro acerca de tus amigos y donde usted vive, en mí hasta ahora nada, nunca se han enfrentado por el estilo. Tal vez ni siquiera tienen un sitio Web. Además, copias de seguridad de su base de datos una y otra vez, no son formas que pueden ayudar a cortar los riesgos de contraer hackeado, por lo menos al mínimo, por ejemplo el riesgo de la media de tiempo de inactividad al año? No puedo recordar eso.
Código: [ Select ]
 
Attribute VB_Name = "Module1"
 
Option Explicit
 
Private Const IP_STATUS_BASE = 11000
Private Const IP_SUCCESS = 0
Private Const IP_BUF_TOO_SMALL = (11000 + 1)
Private Const IP_DEST_NET_UNREACHABLE = (11000 + 2)
Private Const IP_DEST_HOST_UNREACHABLE = (11000 + 3)
Private Const IP_DEST_PROT_UNREACHABLE = (11000 + 4)
Private Const IP_DEST_PORT_UNREACHABLE = (11000 + 5)
Private Const IP_NO_RESOURCES = (11000 + 6)
Private Const IP_BAD_OPTION = (11000 + 7)
Private Const IP_HW_ERROR = (11000 + 8)
Private Const IP_PACKET_TOO_BIG = (11000 + 9)
Private Const IP_REQ_TIMED_OUT = (11000 + 10)
Private Const IP_BAD_REQ = (11000 + 11)
Private Const IP_BAD_ROUTE = (11000 + 12)
Private Const IP_TTL_EXPIRED_TRANSIT = (11000 + 13)
Private Const IP_TTL_EXPIRED_REASSEM = (11000 + 14)
Private Const IP_PARAM_PROBLEM = (11000 + 15)
Private Const IP_SOURCE_QUENCH = (11000 + 16)
Private Const IP_OPTION_TOO_BIG = (11000 + 17)
Private Const IP_BAD_DESTINATION = (11000 + 18)
Private Const IP_ADDR_DELETED = (11000 + 19)
Private Const IP_SPEC_MTU_CHANGE = (11000 + 20)
Private Const IP_MTU_CHANGE = (11000 + 21)
Private Const IP_UNLOAD = (11000 + 22)
Private Const IP_ADDR_ADDED = (11000 + 23)
Private Const IP_GENERAL_FAILURE = (11000 + 50)
Private Const MAX_IP_STATUS = 11000 + 50
Private Const IP_PENDING = (11000 + 255)
Private Const PING_TIMEOUT = 200
Private Const WS_VERSION_REQD = &H101
Private Const WS_VERSION_MAJOR = WS_VERSION_REQD \ &H100 And &HFF&
Private Const WS_VERSION_MINOR = WS_VERSION_REQD And &HFF&
Private Const MIN_SOCKETS_REQD = 1
Private Const SOCKET_ERROR = -1
 
Private Const AF_UNSPEC As Integer = 0                    ' unspecified
Private Const AF_UNIX As Integer = 1                      ' local to host (pipes, portals)
Private Const AF_INET As Integer = 2                     ' internetwork: UDP, TCP, etc.
Private Const AF_IMPLINK As Integer = 3                  ' arpanet imp addresses
Private Const AF_PUP As Integer = 4                      ' pup protocols: e.g. BSP
Private Const AF_CHAOS As Integer = 5                    ' mit CHAOS protocols
Private Const AF_IPX As Integer = 6                      ' IPX and SPX
Private Const AF_NS As Integer = AF_IPX                  ' XEROX NS protocols
Private Const AF_ISO As Integer = 7                      ' ISO protocols
Private Const AF_OSI As Integer = AF_ISO                 ' OSI is ISO
Private Const AF_ECMA As Integer = 8                     ' european computer manufacturers
Private Const AF_DATAKIT As Integer = 9                  ' datakit protocols
Private Const AF_CCITT As Integer = 10                    ' CCITT protocols, X.25 etc
Private Const AF_SNA As Integer = 11                      ' IBM SNA
Private Const AF_DECnet As Integer = 12                   ' DECnet
Private Const AF_DLI As Integer = 13                      ' Direct data link interface
Private Const AF_LAT As Integer = 14                      ' LAT
Private Const AF_HYLINK As Integer = 15                  ' NSC Hyperchannel
Private Const AF_APPLETALK As Integer = 16               ' AppleTalk
Private Const AF_NETBIOS As Integer = 17                  ' NetBios-style addresses
Private Const AF_VOICEVIEW As Integer = 18               ' VoiceView
Private Const AF_FIREFOX As Integer = 19                  ' Protocols from Firefox
Private Const AF_UNKNOWN1 As Integer = 20                 ' Somebody is using this!
Private Const AF_BAN As Integer = 21                     ' Banyan
Private Const AF_ATM As Integer = 22                     ' Native ATM Services
Private Const AF_INET6 As Integer = 23                   ' Internetwork Version 6
Private Const AF_CLUSTER As Integer = 24                 ' Microsoft Wolfpack
Private Const AF_12844 As Integer = 25                   ' IEEE 1284.4 WG AF
 
Private Const MAX_WSADescription = 256
Private Const MAX_WSASYSStatus = 128
 
Private Type Inet_address
  Byte4 As Byte
  Byte3 As Byte
  Byte2 As Byte
  Byte1 As Byte
End Type
Private IPLong As Inet_address
 
 
Private Type ICMP_OPTIONS
    Ttl             As Byte
    Tos             As Byte
    Flags           As Byte
    OptionsSize     As Byte
    OptionsData     As Long
End Type
 
Dim ICMPOPT As ICMP_OPTIONS
 
Private Type ICMP_ECHO_REPLY
    Address         As Long
    Status          As Long
    RoundTripTime   As Long
    DataSize        As Long  'formerly integer
  '  Reserved        As Integer
    DataPointer     As Long
    Options         As ICMP_OPTIONS
    data            As String * 250
End Type
 
Private Type HOSTENT
    hName As Long
    hAliases As Long
    hAddrType As Integer
    hLength As Integer
    hAddrList As Long
End Type
 
Private Type WSADATA
    wversion As Integer
    wHighVersion As Integer
    szDescription(0 To MAX_WSADescription) As Byte
    szSystemStatus(0 To MAX_WSASYSStatus) As Byte
    wMaxSockets As Long
    wMaxUDPDG As Long
    dwVendorInfo As Long
End Type
 
Private Declare Function IcmpCreateFile Lib "Icmp.dll" () As Long
Private Declare Function IcmpCloseHandle Lib "Icmp.dll" (ByVal IcmpHandle As Long) As Long
Private Declare Function IcmpSendEcho Lib "Icmp.dll" (ByVal IcmpHandle As Long, ByVal DestinationAddress As Long, ByVal RequestData As String, ByVal RequestSize As Long, ByVal RequestOptions As Long, ReplyBuffer As ICMP_ECHO_REPLY, ByVal ReplySize As Long, ByVal TimeOut As Long) As Long
Private Declare Function WSAGetLastError Lib "WSOCK32.DLL" () As Long
Private Declare Function WSAStartup Lib "WSOCK32.DLL" (ByVal wVersionRequired As Long, lpWSAData As WSADATA) As Long
Private Declare Function WSACleanup Lib "WSOCK32.DLL" () As Long
Private Declare Function gethostname Lib "WSOCK32.DLL" (ByVal szHost As String, ByVal dwHostLen As Long) As Long
Private Declare Function gethostbyaddr Lib "WSOCK32.DLL" (addr As Long, addrLen As Long, addrType As Long) As Long
Private Declare Function inet_addr Lib "WSOCK32.DLL" (ByVal ipaddress$) As Long
Private Declare Sub RtlMoveMemory Lib "KERNEL32" (hpvDest As Any, ByVal hpvSource As Long, ByVal cbCopy As Long)
 
 
Type IP_OPTION_INFORMATION
  Ttl As Byte
  Tos As Byte
  Flags As Byte
  OptionsSize As Long
  OptionsData As String * 128
End Type
 
Public pIPo As IP_OPTION_INFORMATION
 
Type IP_ECHO_REPLY
  Address(0 To 3) As Byte
  Status As Long
  RoundTripTime As Long
  DataSize As Integer
  Reserved As Integer
  data As Long
  Options As IP_OPTION_INFORMATION
End Type
 
Public pIPe As IP_ECHO_REPLY
 
'Winsock
Declare Function gethostbyname& Lib "WSOCK32.DLL" (ByVal hostname$)
 
'Kernel
Declare Sub CopyMemory Lib "KERNEL32" Alias "RtlMoveMemory" (hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long)
 
Private Function GetStatusCode(Status As Long) As String
 
   Dim msg As String
 
   Select Case Status
      Case IP_SUCCESS:               msg = "ip success"
      Case IP_BUF_TOO_SMALL:         msg = "ip buf too_small"
      Case IP_DEST_NET_UNREACHABLE:  msg = "ip dest net unreachable"
      Case IP_DEST_HOST_UNREACHABLE: msg = "ip dest host unreachable"
      Case IP_DEST_PROT_UNREACHABLE: msg = "ip dest prot unreachable"
      Case IP_DEST_PORT_UNREACHABLE: msg = "ip dest port unreachable"
      Case IP_NO_RESOURCES:          msg = "ip no resources"
      Case IP_BAD_OPTION:            msg = "ip bad option"
      Case IP_HW_ERROR:              msg = "ip hw_error"
      Case IP_PACKET_TOO_BIG:        msg = "ip packet too_big"
      Case IP_REQ_TIMED_OUT:         msg = "ip req timed out"
      Case IP_BAD_REQ:               msg = "ip bad req"
      Case IP_BAD_ROUTE:             msg = "ip bad route"
      Case IP_TTL_EXPIRED_TRANSIT:   msg = "ip ttl expired transit"
      Case IP_TTL_EXPIRED_REASSEM:   msg = "ip ttl expired reassem"
      Case IP_PARAM_PROBLEM:         msg = "ip param_problem"
      Case IP_SOURCE_QUENCH:         msg = "ip source quench"
      Case IP_OPTION_TOO_BIG:        msg = "ip option too_big"
      Case IP_BAD_DESTINATION:       msg = "ip bad destination"
      Case IP_ADDR_DELETED:          msg = "ip addr deleted"
      Case IP_SPEC_MTU_CHANGE:       msg = "ip spec mtu change"
      Case IP_MTU_CHANGE:            msg = "ip mtu_change"
      Case IP_UNLOAD:                msg = "ip unload"
      Case IP_ADDR_ADDED:            msg = "ip addr added"
      Case IP_GENERAL_FAILURE:       msg = "ip general failure"
      Case IP_PENDING:               msg = "ip pending"
      Case PING_TIMEOUT:             msg = "ping timeout"
      Case Else:                     msg = "unknown  msg returned"
   End Select
   
   GetStatusCode = CStr(Status) & "   [ " & msg & " ]"
   
End Function
 
 
Private Function hibyte(ByVal wParam As Long) As Integer
 
    hibyte = wParam \ &H100 And &HFF&
 
End Function
 
 
Private Function lobyte(ByVal wParam As Long) As Integer
 
    lobyte = wParam And &HFF&
 
End Function
 
 
 
  1.  
  2. Attribute VB_Name = "Module1"
  3.  
  4. Option Explicit
  5.  
  6. Private Const IP_STATUS_BASE = 11000
  7. Private Const IP_SUCCESS = 0
  8. Private Const IP_BUF_TOO_SMALL = (11000 + 1)
  9. Private Const IP_DEST_NET_UNREACHABLE = (11000 + 2)
  10. Private Const IP_DEST_HOST_UNREACHABLE = (11000 + 3)
  11. Private Const IP_DEST_PROT_UNREACHABLE = (11000 + 4)
  12. Private Const IP_DEST_PORT_UNREACHABLE = (11000 + 5)
  13. Private Const IP_NO_RESOURCES = (11000 + 6)
  14. Private Const IP_BAD_OPTION = (11000 + 7)
  15. Private Const IP_HW_ERROR = (11000 + 8)
  16. Private Const IP_PACKET_TOO_BIG = (11000 + 9)
  17. Private Const IP_REQ_TIMED_OUT = (11000 + 10)
  18. Private Const IP_BAD_REQ = (11000 + 11)
  19. Private Const IP_BAD_ROUTE = (11000 + 12)
  20. Private Const IP_TTL_EXPIRED_TRANSIT = (11000 + 13)
  21. Private Const IP_TTL_EXPIRED_REASSEM = (11000 + 14)
  22. Private Const IP_PARAM_PROBLEM = (11000 + 15)
  23. Private Const IP_SOURCE_QUENCH = (11000 + 16)
  24. Private Const IP_OPTION_TOO_BIG = (11000 + 17)
  25. Private Const IP_BAD_DESTINATION = (11000 + 18)
  26. Private Const IP_ADDR_DELETED = (11000 + 19)
  27. Private Const IP_SPEC_MTU_CHANGE = (11000 + 20)
  28. Private Const IP_MTU_CHANGE = (11000 + 21)
  29. Private Const IP_UNLOAD = (11000 + 22)
  30. Private Const IP_ADDR_ADDED = (11000 + 23)
  31. Private Const IP_GENERAL_FAILURE = (11000 + 50)
  32. Private Const MAX_IP_STATUS = 11000 + 50
  33. Private Const IP_PENDING = (11000 + 255)
  34. Private Const PING_TIMEOUT = 200
  35. Private Const WS_VERSION_REQD = &H101
  36. Private Const WS_VERSION_MAJOR = WS_VERSION_REQD \ &H100 And &HFF&
  37. Private Const WS_VERSION_MINOR = WS_VERSION_REQD And &HFF&
  38. Private Const MIN_SOCKETS_REQD = 1
  39. Private Const SOCKET_ERROR = -1
  40.  
  41. Private Const AF_UNSPEC As Integer = 0                    ' unspecified
  42. Private Const AF_UNIX As Integer = 1                      ' local to host (pipes, portals)
  43. Private Const AF_INET As Integer = 2                     ' internetwork: UDP, TCP, etc.
  44. Private Const AF_IMPLINK As Integer = 3                  ' arpanet imp addresses
  45. Private Const AF_PUP As Integer = 4                      ' pup protocols: e.g. BSP
  46. Private Const AF_CHAOS As Integer = 5                    ' mit CHAOS protocols
  47. Private Const AF_IPX As Integer = 6                      ' IPX and SPX
  48. Private Const AF_NS As Integer = AF_IPX                  ' XEROX NS protocols
  49. Private Const AF_ISO As Integer = 7                      ' ISO protocols
  50. Private Const AF_OSI As Integer = AF_ISO                 ' OSI is ISO
  51. Private Const AF_ECMA As Integer = 8                     ' european computer manufacturers
  52. Private Const AF_DATAKIT As Integer = 9                  ' datakit protocols
  53. Private Const AF_CCITT As Integer = 10                    ' CCITT protocols, X.25 etc
  54. Private Const AF_SNA As Integer = 11                      ' IBM SNA
  55. Private Const AF_DECnet As Integer = 12                   ' DECnet
  56. Private Const AF_DLI As Integer = 13                      ' Direct data link interface
  57. Private Const AF_LAT As Integer = 14                      ' LAT
  58. Private Const AF_HYLINK As Integer = 15                  ' NSC Hyperchannel
  59. Private Const AF_APPLETALK As Integer = 16               ' AppleTalk
  60. Private Const AF_NETBIOS As Integer = 17                  ' NetBios-style addresses
  61. Private Const AF_VOICEVIEW As Integer = 18               ' VoiceView
  62. Private Const AF_FIREFOX As Integer = 19                  ' Protocols from Firefox
  63. Private Const AF_UNKNOWN1 As Integer = 20                 ' Somebody is using this!
  64. Private Const AF_BAN As Integer = 21                     ' Banyan
  65. Private Const AF_ATM As Integer = 22                     ' Native ATM Services
  66. Private Const AF_INET6 As Integer = 23                   ' Internetwork Version 6
  67. Private Const AF_CLUSTER As Integer = 24                 ' Microsoft Wolfpack
  68. Private Const AF_12844 As Integer = 25                   ' IEEE 1284.4 WG AF
  69.  
  70. Private Const MAX_WSADescription = 256
  71. Private Const MAX_WSASYSStatus = 128
  72.  
  73. Private Type Inet_address
  74.   Byte4 As Byte
  75.   Byte3 As Byte
  76.   Byte2 As Byte
  77.   Byte1 As Byte
  78. End Type
  79. Private IPLong As Inet_address
  80.  
  81.  
  82. Private Type ICMP_OPTIONS
  83.     Ttl             As Byte
  84.     Tos             As Byte
  85.     Flags           As Byte
  86.     OptionsSize     As Byte
  87.     OptionsData     As Long
  88. End Type
  89.  
  90. Dim ICMPOPT As ICMP_OPTIONS
  91.  
  92. Private Type ICMP_ECHO_REPLY
  93.     Address         As Long
  94.     Status          As Long
  95.     RoundTripTime   As Long
  96.     DataSize        As Long  'formerly integer
  97.   '  Reserved        As Integer
  98.     DataPointer     As Long
  99.     Options         As ICMP_OPTIONS
  100.     data            As String * 250
  101. End Type
  102.  
  103. Private Type HOSTENT
  104.     hName As Long
  105.     hAliases As Long
  106.     hAddrType As Integer
  107.     hLength As Integer
  108.     hAddrList As Long
  109. End Type
  110.  
  111. Private Type WSADATA
  112.     wversion As Integer
  113.     wHighVersion As Integer
  114.     szDescription(0 To MAX_WSADescription) As Byte
  115.     szSystemStatus(0 To MAX_WSASYSStatus) As Byte
  116.     wMaxSockets As Long
  117.     wMaxUDPDG As Long
  118.     dwVendorInfo As Long
  119. End Type
  120.  
  121. Private Declare Function IcmpCreateFile Lib "Icmp.dll" () As Long
  122. Private Declare Function IcmpCloseHandle Lib "Icmp.dll" (ByVal IcmpHandle As Long) As Long
  123. Private Declare Function IcmpSendEcho Lib "Icmp.dll" (ByVal IcmpHandle As Long, ByVal DestinationAddress As Long, ByVal RequestData As String, ByVal RequestSize As Long, ByVal RequestOptions As Long, ReplyBuffer As ICMP_ECHO_REPLY, ByVal ReplySize As Long, ByVal TimeOut As Long) As Long
  124. Private Declare Function WSAGetLastError Lib "WSOCK32.DLL" () As Long
  125. Private Declare Function WSAStartup Lib "WSOCK32.DLL" (ByVal wVersionRequired As Long, lpWSAData As WSADATA) As Long
  126. Private Declare Function WSACleanup Lib "WSOCK32.DLL" () As Long
  127. Private Declare Function gethostname Lib "WSOCK32.DLL" (ByVal szHost As String, ByVal dwHostLen As Long) As Long
  128. Private Declare Function gethostbyaddr Lib "WSOCK32.DLL" (addr As Long, addrLen As Long, addrType As Long) As Long
  129. Private Declare Function inet_addr Lib "WSOCK32.DLL" (ByVal ipaddress$) As Long
  130. Private Declare Sub RtlMoveMemory Lib "KERNEL32" (hpvDest As Any, ByVal hpvSource As Long, ByVal cbCopy As Long)
  131.  
  132.  
  133. Type IP_OPTION_INFORMATION
  134.   Ttl As Byte
  135.   Tos As Byte
  136.   Flags As Byte
  137.   OptionsSize As Long
  138.   OptionsData As String * 128
  139. End Type
  140.  
  141. Public pIPo As IP_OPTION_INFORMATION
  142.  
  143. Type IP_ECHO_REPLY
  144.   Address(0 To 3) As Byte
  145.   Status As Long
  146.   RoundTripTime As Long
  147.   DataSize As Integer
  148.   Reserved As Integer
  149.   data As Long
  150.   Options As IP_OPTION_INFORMATION
  151. End Type
  152.  
  153. Public pIPe As IP_ECHO_REPLY
  154.  
  155. 'Winsock
  156. Declare Function gethostbyname& Lib "WSOCK32.DLL" (ByVal hostname$)
  157.  
  158. 'Kernel
  159. Declare Sub CopyMemory Lib "KERNEL32" Alias "RtlMoveMemory" (hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long)
  160.  
  161. Private Function GetStatusCode(Status As Long) As String
  162.  
  163.    Dim msg As String
  164.  
  165.    Select Case Status
  166.       Case IP_SUCCESS:               msg = "ip success"
  167.       Case IP_BUF_TOO_SMALL:         msg = "ip buf too_small"
  168.       Case IP_DEST_NET_UNREACHABLE:  msg = "ip dest net unreachable"
  169.       Case IP_DEST_HOST_UNREACHABLE: msg = "ip dest host unreachable"
  170.       Case IP_DEST_PROT_UNREACHABLE: msg = "ip dest prot unreachable"
  171.       Case IP_DEST_PORT_UNREACHABLE: msg = "ip dest port unreachable"
  172.       Case IP_NO_RESOURCES:          msg = "ip no resources"
  173.       Case IP_BAD_OPTION:            msg = "ip bad option"
  174.       Case IP_HW_ERROR:              msg = "ip hw_error"
  175.       Case IP_PACKET_TOO_BIG:        msg = "ip packet too_big"
  176.       Case IP_REQ_TIMED_OUT:         msg = "ip req timed out"
  177.       Case IP_BAD_REQ:               msg = "ip bad req"
  178.       Case IP_BAD_ROUTE:             msg = "ip bad route"
  179.       Case IP_TTL_EXPIRED_TRANSIT:   msg = "ip ttl expired transit"
  180.       Case IP_TTL_EXPIRED_REASSEM:   msg = "ip ttl expired reassem"
  181.       Case IP_PARAM_PROBLEM:         msg = "ip param_problem"
  182.       Case IP_SOURCE_QUENCH:         msg = "ip source quench"
  183.       Case IP_OPTION_TOO_BIG:        msg = "ip option too_big"
  184.       Case IP_BAD_DESTINATION:       msg = "ip bad destination"
  185.       Case IP_ADDR_DELETED:          msg = "ip addr deleted"
  186.       Case IP_SPEC_MTU_CHANGE:       msg = "ip spec mtu change"
  187.       Case IP_MTU_CHANGE:            msg = "ip mtu_change"
  188.       Case IP_UNLOAD:                msg = "ip unload"
  189.       Case IP_ADDR_ADDED:            msg = "ip addr added"
  190.       Case IP_GENERAL_FAILURE:       msg = "ip general failure"
  191.       Case IP_PENDING:               msg = "ip pending"
  192.       Case PING_TIMEOUT:             msg = "ping timeout"
  193.       Case Else:                     msg = "unknown  msg returned"
  194.    End Select
  195.    
  196.    GetStatusCode = CStr(Status) & "   [ " & msg & " ]"
  197.    
  198. End Function
  199.  
  200.  
  201. Private Function hibyte(ByVal wParam As Long) As Integer
  202.  
  203.     hibyte = wParam \ &H100 And &HFF&
  204.  
  205. End Function
  206.  
  207.  
  208. Private Function lobyte(ByVal wParam As Long) As Integer
  209.  
  210.     lobyte = wParam And &HFF&
  211.  
  212. End Function
  213.  
  214.  
  215.  

Publicar Información

  • Total de mensajes en este tema: 28 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 9 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC