Phpbb2 foro hackeado
- Jetlag
- Newbie


- Registrado: Oct 03, 2004
- Mensajes: 12
- Loc: Vancouver, Canada
- Status: Offline
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


- Registrado: 25 Feb 2008
- Mensajes: ?
- Loc: Ozzuland
- Status: Online
Diciembre 21st, 2004, 4:55 pm
- ScienceOfSpock
- Mastermind


- Registrado: Jul 06, 2004
- Mensajes: 1890
- Loc: Las Vegas
- Status: Offline
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


- Registrado: May 28, 2003
- Mensajes: 23404
- Loc: Woodbridge VA
- Status: Offline
Esto es lo que se verá como si usted es víctima:


"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.
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


- Registrado: May 21, 2004
- Mensajes: 3229
- Loc: South Africa
- Status: Offline
- meman
- Web Master


- Registrado: Ago 03, 2004
- Mensajes: 3432
- Loc: London Town , Apples and pears and all that crap
- Status: Offline
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.
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


- Registrado: Ago 30, 2004
- Mensajes: 247
- Loc: Gloucester, UK
- Status: Offline
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:
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
Could not connect to the database
- phpBB : Critical Error
- Could not connect to the database
Click Into Surprises!
- Maedhros
- Proficient


- Registrado: Oct 31, 2004
- Mensajes: 325
- Loc: Durham, England
- Status: Offline
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


- Registrado: Ago 30, 2004
- Mensajes: 247
- Loc: Gloucester, UK
- Status: Offline
- Maedhros
- Proficient


- Registrado: Oct 31, 2004
- Mensajes: 325
- Loc: Durham, England
- Status: Offline
"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


- Registrado: Ago 30, 2004
- Mensajes: 247
- Loc: Gloucester, UK
- Status: Offline
- cubechris
- Graduate


- Registrado: Ago 30, 2004
- Mensajes: 247
- Loc: Gloucester, UK
- Status: Offline
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
An error occurred trying to update the database
Table 'phpbb_auth_access' already exists
- An error has occurred during installation
- An error occurred trying to update the database
- Table 'phpbb_auth_access' already exists
Click Into Surprises!
- Maedhros
- Proficient


- Registrado: Oct 31, 2004
- Mensajes: 325
- Loc: Durham, England
- Status: Offline
Usted sabe, la mayoría de los mensajes de error están diseñados para ser de carácter informativo. 
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.
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


- Registrado: Nov 05, 2007
- Mensajes: 2206
- Loc: Malaysia
- Status: Offline
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
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
- 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
Para responder a este tema que necesita para ingresar o registrarse. Es gratis.
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
