ClsHack:Computer Security Blog    

[guida]Nikto 2.1.1 è tra noi: Trova vulnerabilità in server web


Nikto è uno dei tool (open source) di vulnerability assessment più usati per l’auditing di siti web e sopratutto server web.

Lavora in base ad un database che viene aggiornato più o meno mensilmente con gli ultimi exploit pubblicati.
In più, è molto semplice da usare.

Nikto a differenza di altri tool, non prova solo gli exploit disponibili nel suo database ma va anche a cercare tutti quei file e quelle mis-configurazioni note che possono causare breccie in un sito web o disclosure di informazioni importanti.

Si possono attivare più test contemporaneamente come nell’esempio precedente e anche attivare il filtro per l’evasione degli IDS.

Nikto, si limita a verificare la presenza di vulnerabilità note nell’host target.

E’ per questo particolarmente efficace per l’assessment di siti che utilizzano codice commerciale o pubblico, un pò meno utile per quei siti con codice custom per cui l’assessment viene lasciato all’esperienza della persona incaricata del test.

Questa nuova versione di nikto, include numerosi cambiamenti:

  • Ticket 117: Fixed SKIPPORTS
  • Ticket 116: Moved User-Agent string to nikto.conf
  • Ticket 116: Added dynamic variables to User-Agent (Testid, Evasion methods)
  • Ticket 95: Added support for OSVDB, now the fun bit of filling it in
  • Ticket 111: Basic syntax checks for all databases
  • Ticket 109: Added an extra optional element to xml output to contain the SSL date. Need to do similar for html, txt and csv
  • Ticket 106: Shorts authentication being successful if an error is returned
  • Ticket 107: Support for short reads in LW2.5
  • Ticket 98: If -Format is missed guess the format based on file extension in -output. Default is none if -output is omitted.
  • Ticket 96: Multiple index file enhancements for groups and better unique file identification
  • Ticket 103: content in xml report is now wrapped in CDATA
  • Ticket 110: Mutate now respects db variables
  • Ticket 97: Fix for response caching
  • Ticket 99: Spelling disagreements between Brits and Americans
  • Added @RFIURL to nikto.conf for a remote file include location, and supporting code.
  • Added ~2300 RFI tests from the combined RSnake/OSVDB list
  • Removed NMAP and NMAPOPTS from nikto.conf as it is no longer used/supported
  • Reporting: simplify xml/html code, fix a bug when a space is in the uri, and load ony needed templates
  • Upgrade to LibWhisker 2.5
  • Enable 2 new LW evasion tacticts (carriage return or binary value as request spacer)
  • Added support to select plugins via -Plugins and -list-plugins option to list current plugins
  • Major bug fix for proxy usage
  • Don’t report p3p header as unusual
  • Various changes to aid future binary db usage for mutates
  • Various changes to aid future multi-threading
  • Fix for multiple index files

Ed ora, ecco una semplice guida :)
Una volta scaricato, spostiamoci nella sua directory e digitiamo:
perl nikto.pl -h SITO_WEB
Dove al posto di Sito_web, metteremo il sito da scansionare.

Di default la porta di destinazione è la 80, dove normalmente vi è in ascolto un web server.

Per specificare una porta su cui compiere il nostro test, diversa dalla porta 80 se il web server dell’host target non è sulla quella porta, possiamo aggiungere il parametro -p come segue:

perl nikto.pl -h SITO_WEB -p PORTA

Per specificare che una scansione dev’essere fatta su più porte, possiamo utilizzare la seguente sintassi

perl nikto.pl -h SITO_WEB -p PORTA1,PORTA2,PORTA3 [-ssl]

Il parametro -ssl: viene usato se si sta testando un servizio di tipo HTTPS e siamo sicuri che funzioni con un tunnel ssl.

Invece se volete scansionare un range di porte, digitate:

perl nikto.pl -h SITO_WEB -p PORTA_INIZIO-PORTA_FINE

Se abbiamo l’esigenza di scansionare più hosts all’interno della nostra rete target potete usare il seguente comando:

perl nikto.pl -h IP:30:40:50

Vi suggerisco, visto che Nikto al contrario di nmap non è molto elusivo a sistemi di tipo IDS e firewall, di impostare una scansione tramite un proxy usando il parametro -u (per configurarlo bisogna inserire l’indirizzo e i vari parametri nel file config.txt nella sezione proxy)

DOWNLOAD v2.1.1 dal mio sito :)

DOWNLOAD DAL SITO UFFICIALE

SITO UFFICIALE

Buon divertimento :)

Related posts:

  1. GUIDA: Crack/Trova Password WIFI
  2. Nuovi SERVER EMULE ottobre 2009
  3. Guida all'uso di Metasploit
  4. [guida]Testare la sicurezza di rete con nmap
  5. [guida]Oday-Exploit Adobe Reader: Hack di Windows con metasploit

This entry was posted on Wednesday, February 3rd, 2010 at 7:36 pm and is filed under GNU/Linux, Hacking, Software, Windows. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Tagged with:
  • Pingback: [guida]Nikto 2.1.1 è tra noi: Trova vulnerabilità in server web

  • Pingback: [tutorial]Tool for Vulnerability Identification level Server | Clshack

  • Shadowy Viper

    Ciao, è da un po’ che ti seguo, e devo dire che questo blog è davvero molto dettagliato e interessante, tanto che ora è un eletto tra i preferiti.
    Comunque io ho un problema. Purtroppo sono costretto ad utilizzare Windows 7, e visto che programmo parecchio, ho installato Strawberry Perl, anche se poi è uno dei linguaggi che so/utilizzo/sfrutto meno.
    L’interprete mi dà un errore sulla linea 89:
    Can’t locate nikto.pl/plugins/nikto_core.plugin in @INC (@INC contains: C:/straw
    berry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at n
    ikto.pl line 89.
    Ho provato anche con un prompt con privilegi elevati.
    Cosa devo fare?

  • clshack

    @Shadowy Viper:

    Ciao purtroppo non ho mai usato perl su windows ma probabilmente da errore per la mancanza di alcuni moduli prova a installare con cpan ma forse ho detto una cazzata :P

    Prova con queste:

    http://www.stefano9lli.com/2009/03/22/installare-nikto-su-windows/

    http://www.madirish.net/?article=216

    Spero di esserti stato utile ciao e grazie :D

  • Shadowy Viper

    Grazie per la risposta tempestiva… adesso non ho troppo tempo, li provo questa sera e poi ti faccio sapere.
    Intanto lo runno con VMWare
    Complimenti ancora per l’ottimo blog :D
    SV