Ciao a tutti ragazzi!
Mi stò addentrando da poco tempo nel mondo della sicurezza informatica e chiaramente uso Metasploit. Man mano che vado avanti mi sorgono però spontanee alcune domande e fino ad ora non sono riuscito a trovare nulla in rete che potesse rispondere a questi quesiti.
So che voi sicuramente saprete darmi le giuste risposte.
Innanzitutto, una volta che scannerizzo le porte di un indirizzo IP (che chiaramente corrisponde a uno dei miei pc connessi in rete, niente di illegale :-) ) e trovo le porte aperte, come faccio a trovare l'exploit giusto da usare??
Ad esempio, su un mio computer ho installato Windows XP SP1 e come da tutorial ho utilizzato un exploit contenuto nel framework di Metasploit che sfruttava la porta 445 e ho ottenuto l'accesso alla macchina; ora, quello che mi chiedo è: come si procede nelle varie fasi di attacco ad un sistema? Dove trovo gli exploit giusti da usare? Non credo che la soluzione stia nel provare le infinità di exploit proposti da Metasploit XD.
Altra questione, dopo aver bucato Windows XP SP1, ho installato su un altro pc connesso in rete Windows XP SP2 e qui le cose cambiano. Nmap mi da questo risultato:
Code:
Starting Nmap 5.00 ( http://nmap.org ) at 2010-09-30 10:48 CEST
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
Not shown: 994 closed ports
PORT STATE SERVICE
135/tcp open msrpc
139/tcp open netbios-ssn
445/tcp open microsoft-ds
2869/tcp open unknown
3260/tcp open iscsi
3261/tcp open unknown
Anche in questo caso la porta 445 è aperta ma essendo che Win è patchato non c'è nessuna falla da poter sfruttare, me lo conferma anche Nessus che ha trovato solo 1 vulnerabilità grave, mentre le altre sono lievi. La suddetta vulnerabilità sta nella porta 3261. Di seguito posto ciò che mi dice Nessus:
Code:
Synopsis
The remote service is protected with default credentials.
Description
The remote StarWind control port is configured to use the default
credentials to control access. Knowing these, an attacker can gain
administrative control of the affected application.
Solution
Edit the StarWind configuration file and change the login credentials
in the authentication section. Then, restart the service to put the
changes into effect.
Risk Factor
High
CVSS Base Score
7.5 (CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
Plugin Output
Nessus was able to gain access using the following credentials :
User Name : test
Password : test
In addition, it collected the following information about the
devices on the remote host.
DeviceName="\\.\E:"
DeviceId="0x89f90"
DeviceType="SPTI:CD/DVD"
sessions="1"
ScsiInquiry=" MATSHITA DVD-RAM UJ-850S 1.61"
ScsiAdapter="1"
ScsiBus="0"
ScsiTarget="0"
ScsiLun="0"
BurnerFlags="0x7"
DeviceName="\\.\F:"
DeviceId="0x914b8"
DeviceType="SPTI:CD/DVD"
sessions="1"
ScsiInquiry="AXV CD/DVD-ROM 2.0B"
[0x89f90]: '\\.\E:'
[0x914b8]: '\\.\F:'
Plugin Publication Date: 2007/12/17
Le ultime righe, com'è possibile immaginare, riportano le informazioni dell'unità CD/DVD presente sul pc target.
Se provo ad effettuare una connessione a questa porta ottengo una shell con il seguente output:
Code:
StarWind iSCSI Target v2.6.1 (Build 0x20050401, Win32, Alcohol Edition)
Copyright (c) Rocket Division Software 2003-2005. All rights reserved.
Da qui deduco che c'è in ascolto l'applicazione StartWind iSCSI Target, però non so come sfruttarla per poter bucare il sistema (ammesso che stia ragionando bene).
Sapreste darmi una mano per entrambi i miei quesiti?
Grazie mille!