Foro de elhacker.net

Seguridad Informática => Hacking => Mensaje iniciado por: SirSocket en 21 Febrero 2017, 22:32 pm



Título: Phising + Ettercap + SET
Publicado por: SirSocket en 21 Febrero 2017, 22:32 pm
Hola

Estoy intentando hacer un práctica para un curso que estoy realizando, se me pide recuperar el password de un usuario de twitter mediante phising, utilizando dns_spoofin con ettercap y las herramientas SET, tal cuál mostraré a continuación.

Mi problema es que aunque parece que todo funciona correctamente no recupero el usuario y password del usuario de twitter.

A continuación os muestro la práctica:


Las ips de las dos máquinas.


(http://i65.tinypic.com/o9pit5.png)



Aqui podemos ver la cache de la tabla arp de windows


(http://i65.tinypic.com/ve59j6.png)


En la siguiente vemos que existe connectividad entre las máquinas


(http://i67.tinypic.com/34rsxfd.png)


He abierto ettercap en modo grafico, he escaneado los host, los muestro y añado
a target 1 la ip de salida y en el target 2 la ip de windows.


(http://i67.tinypic.com/9ftlsm.png)


He comprobado que el envenenamiento de cache ha tenido exito y le hago un dns_spoof


(http://i63.tinypic.com/347v38p.png)


Comprobamos en la máquina de windows 7 que la cache arp ha sido modificado y ahora apunta a la mac de Linux.


(http://i63.tinypic.com/10yfkg5.png)



Hemos finalizado el trabajo con ettercap, lo dejamos esnifando mientras vamos a trabajar con SET.
Lo primero que he hecho es copiar la página web de twitter a una carpeta de mi escritorio.


(http://i66.tinypic.com/14j3ocp.png)


Arrancamos SET (Social Engineer tool)


(http://i68.tinypic.com/fu2p2o.png)



Aquí no tengo capturas simplemente he copiado la consola de linux:



     Join us on irc.freenode.net in channel #setoolkit

   The Social-Engineer Toolkit is a product of TrustedSec.

           Visit: https://www.trustedsec.com

   It's easy to update using the PenTesters Framework! (PTF)
Visit https://github.com/trustedsec/ptf to update all your tools!


 Select from the menu:

   1) Social-Engineering Attacks
   2) Penetration Testing (Fast-Track)
   3) Third Party Modules
   4) Update the Social-Engineer Toolkit
   5) Update SET configuration
   6) Help, Credits, and About

  99) Exit the Social-Engineer Toolkit

set> 1


                 .--.  .--. .-----.
                : .--': .--'`-. .-'
                `. `. : `;    : :
                 _`, :: :__   : :
                `.__.'`.__.'  :_;   

[---]        The Social-Engineer Toolkit (SET)         [---]
[---]        Created by: David Kennedy (ReL1K)         [---]
                       Version: 7.5
                     Codename: 'Ghost'
[---]        Follow us on Twitter: @TrustedSec         [---]
[---]        Follow me on Twitter: @HackingDave        [---]
[---]       Homepage: https://www.trustedsec.com       [---]

        Welcome to the Social-Engineer Toolkit (SET).
         The one stop shop for all of your SE needs.

     Join us on irc.freenode.net in channel #setoolkit

   The Social-Engineer Toolkit is a product of TrustedSec.

           Visit: https://www.trustedsec.com

   It's easy to update using the PenTesters Framework! (PTF)
Visit https://github.com/trustedsec/ptf to update all your tools!


 Select from the menu:

   1) Spear-Phishing Attack Vectors
   2) Website Attack Vectors
   3) Infectious Media Generator
   4) Create a Payload and Listener
   5) Mass Mailer Attack
   6) Arduino-Based Attack Vector
   7) Wireless Access Point Attack Vector
   8) QRCode Generator Attack Vector
   9) Powershell Attack Vectors
  10) SMS Spoofing Attack Vector
  11) Third Party Modules

  99) Return back to the main menu.

set> 2

The Web Attack module is a unique way of utilizing multiple web-based attacks in order to compromise the intended victim.

The Java Applet Attack method will spoof a Java Certificate and deliver a metasploit based payload. Uses a customized java applet created by Thomas Werth to deliver the payload.

The Metasploit Browser Exploit method will utilize select Metasploit browser exploits through an iframe and deliver a Metasploit payload.

The Credential Harvester method will utilize web cloning of a web- site that has a username and password field and harvest all the information posted to the website.

The TabNabbing method will wait for a user to move to a different tab, then refresh the page to something different.

The Web-Jacking Attack method was introduced by white_sheep, emgent. This method utilizes iframe replacements to make the highlighted URL link to appear legitimate however when clicked a window pops up then is replaced with the malicious link. You can edit the link replacement settings in the set_config if its too slow/fast.

The Multi-Attack method will add a combination of attacks through the web attack menu. For example you can utilize the Java Applet, Metasploit Browser, Credential Harvester/Tabnabbing all at once to see which is successful.

The HTA Attack method will allow you to clone a site and perform powershell injection through HTA files which can be used for Windows-based powershell exploitation through the browser.

   1) Java Applet Attack Method
   2) Metasploit Browser Exploit Method
   3) Credential Harvester Attack Method
   4) Tabnabbing Attack Method
   5) Web Jacking Attack Method
   6) Multi-Attack Web Method
   7) Full Screen Attack Method
   8) HTA Attack Method

  99) Return to Main Menu

set:webattack>3

 The first method will allow SET to import a list of pre-defined web
 applications that it can utilize within the attack.

 The second method will completely clone a website of your choosing
 and allow you to utilize the attack vectors within the completely
 same web application you were attempting to clone.

 The third method allows you to import your own website, note that you
 should only have an index.html when using the import website
 functionality.
   
   1) Web Templates
   2) Site Cloner
   3) Custom Import

  99) Return to Webattack Menu

set:webattack>3
[-] Credential harvester will allow you to utilize the clone capabilities within SET
[-] to harvest credentials or parameters from a website as well as place them into a report
[-] This option is used for what IP the server will POST to.
[-] If you're using an external IP, use your external IP for this
set:webattack> IP address for the POST back in Harvester/Tabnabbing:192.168.1.38
[!] Example: /home/website/ (make sure you end with /)
[!] Also note that there MUST be an index.html in the folder you point to.
set:webattack> Path to the website to be cloned:/root/Escritorio/Twitter/     
  • Index.html found. Do you want to copy the entire folder or just index.html?

1. Copy just the index.html
2. Copy the entire folder

Enter choice [1/2]: 2
[-] Example: http://www.blah.com
set:webattack> URL of the website you imported:https://twitter.com

The best way to use this attack is if username and password form
fields are available. Regardless, this captures all POSTs on a website.
  • The Social-Engineer Toolkit Credential Harvester Attack
  • Credential Harvester is running on port 80




Como vereis se queda escuchando a la espera.

Me he logado a twitter en windows pero linux parece no recuperar nada, he leido manuales , visto videos y no se en que estoy fallando.


(http://i64.tinypic.com/2gtp1jd.png)



Durante la formación que me están dando hicieron esto mismo para recuperar el password de un usuario de facebook e hicieron los pasos explicados arriba (La parte ettercap y el dns_spoof no se explico, se supone que ya sabiamos envenenar caches de otro tema) y funcionaba, el siguiente paso vi que habia gente que explicaba que se tenia que hacer.
Lo que he hecho es modificar el fichero etter.dns añadiendo mi ip para la url de twitter, he vuelto ha empezar desde el inicio pero se queda igual a la espera.


(http://i66.tinypic.com/308ip81.png)




Cualquier ayuda sería bienvenida, ya que ahora mismo estoy sin ideas.
Puede ser por el puerto de escucha?y el fichero etter.dns?


Título: Re: Phising + Ettercap + SET
Publicado por: SirSocket en 22 Febrero 2017, 22:27 pm
Bueno

Parece que avanzo pero me falta algo.

Como se ve en la imagen al ingresar directamente por la ip de mi máquina kali, accede a la página clonada de twitter, pero cuando lo intento desde la url de twitter no funciona.

(http://i68.tinypic.com/t7og36.png)


Será que el dns_spoof no está funcionando correctamente , supongo que faltará tocar alguna config, he intentado modificar el ficherito agregando la url entera pero nada.


(http://i68.tinypic.com/4lkd4n.png)


Venga que el día que lo consiga posteare el proceso completo.


Título: Re: Phising + Ettercap + SET
Publicado por: LaThortilla (Effort) en 21 Marzo 2017, 05:37 am
Estoy Teniendo el mismo problema necesito ayuda... lo has logrado solucionar?


creo que el servidor apache recibe una solicitud del tipo https://pagina.com y no sabe que responder....



sera que es problema de configuracion de el apache :huh: :huh: :huh: :huh: :huh: :huh: :huh:



MODIFICADO

Te informo que intente con internet explorer
y si funciona, por alguna razon con firefox y chrome no funciona..


alguien sabe por que?

si lo solucionas me avisas porfa  :-\ :-\ :-\ :-\


Título: Re: Phising + Ettercap + SET
Publicado por: N3LD4Z en 6 Mayo 2017, 03:35 am
Cuando empezaba con todo el tema del hacking,etc(hace mucho tiempo). Había visto un post para envenenar redes y inyectar el archivo hosts de Linux reemplazando www.twitter.com por la ip que insertas en SET, entonces cuando la víctima accede a www.twitter.com en realidad se dirige a tu ip donde tenes la página de phishing. Te voy a averiguar bien y te mando mensaje para que lo puedas resolver

Saludos