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.
Aqui podemos ver la cache de la tabla arp de windows
En la siguiente vemos que existe connectividad entre las máquinas
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.
He comprobado que el envenenamiento de cache ha tenido exito y le hago un dns_spoof
Comprobamos en la máquina de windows 7 que la cache arp ha sido modificado y ahora apunta a la mac de Linux.
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.
Arrancamos SET (Social Engineer tool)
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.
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.
Cualquier ayuda sería bienvenida, ya que ahora mismo estoy sin ideas.
Puede ser por el puerto de escucha?y el fichero etter.dns?