ClsHack:Computer Security Blog    

[PYTHON]Fake DNS Server


Semplice server dns, che mi è servito per un attacco a dei router :D ne parlerò presto, basato su questo codice.
http://code.activestate.com/recipes/491264-mini-fake-dns-server/
L’ho praticamente riscritto a modo mio, togliendo le classi,aggiungendo alcune opzioni.

La configurazione è molto semplice ;)

Basta modificare la prima riga:

fake=['www.facebook.com','127.0.0.1','www.google.it','127.0.0.1']

E’ un array*, si usa così:
#host =>fake ip response

Agli indirizzi non imposti verrà assegnato il loro vero ip, cosi nessuno si accorgerà di niente :D
Un esempio:
(Windows non centra niente, era solo per farvi vedere che era su un altro pc ;) l’attacco funziona su qualsiasi computer ameno che non abbiano la cache dns e cose simili, per velocizzare la navigazione)

Buon divertimento e aspettate il prossimo articolo :D

DOWNLOAD

Related posts:

  1. [Python]WordPress brute force script :D
  2. [tutorial]Tool for Vulnerability Identification level Server
  3. Python Tutorial Pack in Italiano
  4. Power Pack 3 per Windows Home Server
  5. PyLoris l'evoluzione in python di Slowloris

This entry was posted on Friday, August 20th, 2010 at 7:34 pm and is filed under Hacking, Programming. 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:
  • io

    dalla se lo fai a me te copo! :)

  • clshack

    @tu:

    chi sei ? o.O cacchio

  • Pingback: [Remote-Router]Fake DNS and Phishing/Exploiting attack | Clshack

  • http://referer.us/spoof-http-referer.html Spoof Http Referer

    DNS is therefore is considered as the global network of servers. Spoof Http Referer

  • Pingback: Arp Poisoning && dns cache poisoning with Scapy on Backbox :)

  • ale

    Ciao, ho provato la script. Quando ricevo la connessione dns compare il seguente errore e lo script viene terminato:

    =====Server Started=====
    Connect to server:xxx.xxx.xxx.xxx
    Traceback (most recent call last):
    File “dns.py”, line 70, in
    packet+=str.join(”,map(lambda x: chr(int(x)), ip.split(‘.’))) # 4bytes of IP
    File “dns.py”, line 70, in
    packet+=str.join(”,map(lambda x: chr(int(x)), ip.split(‘.’))) # 4bytes of IP
    ValueError: invalid literal for int() with base 10: ‘HOST’

  • Gaetano

    Un altro progettino carino sviluppato in python: http://www.hackerstribe.com/2011/ecco-il-primo-facebook-notifier/

    :)

  • Nando

    Ciao clshack…non riesco a scaricare il server dns da te moddato (dns.py) :-p Buon Anno :)

  • Luciusmalfoy8005
  • Luciusmalfoy8005
  • bahstarde

    this code doesn’t work. line with udps.sendto(p.respuesta(ip), addr)

    and

    DNS request timed out.
    timeout was 2 seconds.
    *** [192.168.0.30] не удалось найти ya.ru: No response from server

  • clshack_

    this code isn’t for python 3.2

    • bahstarde

      i use 2.7.X

      • clshack_

        no you use python 3.2 and windows.
        C:\Python32