Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 44 guests and 2 members online
EH-Net News Feeds
Latest Additions
 
Advertisement

You are here: Home arrow Forum arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow ettercap with backtrack 4
EH-Net
February 03, 2012, 09:35:53 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Advertise on EH-Net!! - Reasonable Rates, Highly Targeted Audience.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: ettercap with backtrack 4  (Read 21001 times)
0 Members and 1 Guest are viewing this topic.
joshboss1234
Newbie
*
Offline Offline

Posts: 12


View Profile
« on: February 18, 2010, 06:27:46 PM »

i ve been looking at tutorials for ettercap. i ve been trying to sniff out passwords with arp injection on my  network, but im not having too much luck. a little help please. here is what i have been doing:

in shell: ettercap -G

goes into graphic mode:

sniff > unified sniffing > network interface (i chose wlan0) im pretty sure that this is the correct one for me.

start > start sniffing

hosts > scan for hosts

when done scanning:

hosts > host list

then i set the user as taget1 and the AP as target2

mitm > arp poisoning > sniff remote conections

the tutorial said it should just start printing passwords in plain text. but its not working for me. i went to all kinds of login sites on my other computer, but still nothing. im thinking that i didnt configure something. (even though the tutorial didnt mention it) or it has something to do with the vista security. (even though my anti-virus didnt say anything) apprechiate the help.
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1006



View Profile
« Reply #1 on: February 18, 2010, 06:55:58 PM »

Are you sure you are logging into sites that transmit authentication in clear text?   Encryption will stop you from seeing passwords.
Logged

~~~~~~~~~~~~~~
Ketchup
joshboss1234
Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #2 on: February 18, 2010, 07:06:01 PM »

are you saying that the steps that i took are correct? and the tutorial that i watched showed them going to google,hotmail,ebay,etc... and it worked on the video. and i thought that ettercap turns the packets that it captures into plain text. no idea why it isnt working for me?
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1194



View Profile
« Reply #3 on: February 18, 2010, 10:02:21 PM »

* Edited:  Note, the I was half-baked last night, from lack of sleep.  the steps below were for SSH downgrade, not SSL.  See my last post for something more relevant to SSL *

Ketchup and joshboss1234...

ettercap has an ssl man-in-the-middle, which will allow you to catch encrypted usernames and passwords, yes.  I've used it previously.  There is an extra setting that needs to be set / enabled for the ssl piece, though.  You can't simply play 'arp man-in-the-middle'

To step through configuration and attack, using ettercap on linux:

http://openmaniak.com/ettercap.php

then proceed to the next section, about filters:

http://openmaniak.com/ettercap_filter.php

specifically, where it discusses ssh downgrade attacks:

http://openmaniak.com/ettercap_filter.php#ssh-downgrade-attack

Hope this helps.  There are other tutorials about this, but the point being, first you have to configure for the ARP mitm attack, then you have to enable the ssh pieces, to truly get plain-text capture of username and passwords to work from ssl encrypted pages and forms.
« Last Edit: February 19, 2010, 07:39:16 AM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCP , GPEN, C|EH
Ketchup
Hero Member
*****
Offline Offline

Posts: 1006



View Profile
« Reply #4 on: February 18, 2010, 11:02:47 PM »

Ha, I learned something new Smiley   I knew that you could use ettercap with sslstrip, but I had no idea that ettercap had a built-in filter for dealing with SSL.  It also doesn't strip the SSL, instead it presents the user with a fake certificate.    Do you get any CA trust warnings with the fake cert? I am going to have to test this.
Logged

~~~~~~~~~~~~~~
Ketchup
joshboss1234
Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #5 on: February 19, 2010, 02:59:17 AM »

thanks man
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1194



View Profile
« Reply #6 on: February 19, 2010, 07:33:37 AM »

Ha, I learned something new Smiley   I knew that you could use ettercap with sslstrip, but I had no idea that ettercap had a built-in filter for dealing with SSL.  It also doesn't strip the SSL, instead it presents the user with a fake certificate.    Do you get any CA trust warnings with the fake cert? I am going to have to test this.

It will warn the user, or at a minimum, prompt the user to accept a new certificate, so a truly 'watchful' end-user would likely catch it.  (Thus I prefer sslstrip, myself, as it's much more stealthy.)  But for spur of the moment needs, ettercap is, at least, a workable / usable solution.  

Edit:  Incidentally, I missed the proper section when I gave steps above.  You don't want the 'SSH downgrade attack.'  But there IS an ssl plugin for attacking ssl, as well.  (Sorry if I confused anyone)  Here's one sample video, where they do some https stuff (later in the video):

http://www.milw0rm.com/video/watch.php?id=49

Cheers!
« Last Edit: February 19, 2010, 07:43:43 AM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCP , GPEN, C|EH
LT72884
Jr. Member
**
Offline Offline

Posts: 50


View Profile
« Reply #7 on: February 25, 2010, 06:57:07 PM »

Hope you dont mind me hi-jackin the thread real fast, but i wanna try this with virtual box. So i need a lab. I just bought Toms book and it should be here within the week. The lab that he instructs us to build in the book, will that work with these ettercap attacks and tutorials?? Or do i need to add some other hosts and devices to it for it to work?

thanx

Matt
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1194



View Profile
« Reply #8 on: February 25, 2010, 10:30:11 PM »

While I never actually setup Tom's lab, 'specifically' per the book (in virtualbox, or otherwise,) assuming you can put the box on a physical (or logical / virtual) network segment which allows ARP injection (which I'm guessing it should,) then this should be perfectly doable in the lab.  I've honestly never used virtualbox, but rather VMWare.  However, from anything I've read quickly tonight, arp spoofing should be perfectly workable with virtualbox.

Case in point, an ARP spoofing tutorial (non-ssl specific) at:

http://hack2live.blogspot.com/2008/07/ip-takeover-attack-with-arping.html

So assumption is that it's perfectly doable in virtualbox.
« Last Edit: February 25, 2010, 10:32:54 PM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCP , GPEN, C|EH
hayabusa
Hero Member
*****
Offline Offline

Posts: 1194



View Profile
« Reply #9 on: February 25, 2010, 10:39:16 PM »

Also, if you're looking to do more proactive monitoring / warning for this type of ARP spoofing activity, you can use tools like arpmon and arpwatch to keep an eye on things, and be notified if the arp table entries on the network are changing for the machines on the network.

Additionally, SANS has a good read about ARP and monitoring ARP, at:

http://www.sans.org/reading_room/whitepapers/protocols/monitoring_the_arp_protocol_on_local_area_networks_1304?show=1304.php&cat=protocols
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCP , GPEN, C|EH
LT72884
Jr. Member
**
Offline Offline

Posts: 50


View Profile
« Reply #10 on: February 25, 2010, 10:50:33 PM »

Also, if you're looking to do more proactive monitoring / warning for this type of ARP spoofing activity, you can use tools like arpmon and arpwatch to keep an eye on things, and be notified if the arp table entries on the network are changing for the machines on the network.

Additionally, SANS has a good read about ARP and monitoring ARP, at:

http://www.sans.org/reading_room/whitepapers/protocols/monitoring_the_arp_protocol_on_local_area_networks_1304?show=1304.php&cat=protocols


I appreciate your concern and time. Since i am new to the security world, i lack the experience for it. Hence why i am here. haha. Im looking forward to toms book. At least with that i will have a foot in the door. From there i will use the backtrack labs/tutorials i got from my professor.  Im glad that virtual box will do what i need it to do and thank you for researching that for me. I didnt know where to start. The only issue i have is i cant really use VB to do security with routers and switches or firewalls. But luckily for me i have a CCNP cisco lab in my dang room. haha.

Logged
aweSEC
Hero Member
*****
Offline Offline

Posts: 1089


View Profile
« Reply #11 on: March 01, 2010, 06:12:19 AM »

Generally there is no problem in simulating ARP spoofing and similar attacks within a virtual lab. You might have to play around with the network settings though, but usually there is no need to further mess around. Wink
Logged
johnnekar
Newbie
*
Offline Offline

Posts: 11

Information Revolution


View Profile WWW
« Reply #12 on: March 02, 2010, 01:21:14 AM »

hey, first you'll have turn ssl dissection on. Does your ettercap window say valid redir command need for ssl dissection. Browse to the file /etc/etter.conf..
Get it into editing mode and find iptables.. There are two lines of code below iptables, uncomment those lines.. i.e. remove the '#' from front of those lines.
Your edited code should look like this as in the image below. Save and exit.
Logged

Your tomorrow should be better than your today.. j0hnn3k4r
johnnekar
Newbie
*
Offline Offline

Posts: 11

Information Revolution


View Profile WWW
« Reply #13 on: March 02, 2010, 07:22:34 AM »

http://techkranti.blogspot.com/2010/02/ettercap-tool-for-sniffing-gmail-yahoo.html
Logged

Your tomorrow should be better than your today.. j0hnn3k4r
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.469 seconds with 22 queries.
 

gk_static-ad_feb2012.jpg
Global Knowledge Training: Build Security Skills to Protect and Defend

offsec_130x200-2_jan-feb2012.png
Offensive Security
AWE Live in the Caribbean!
March 5 - 9, 2012

SANS Deals 4 EH-Netters
$150 OFF Any SANS Course in Any Format!
Coupon Code: Refer_EHN
Including SANS Phoenix 2012, SANS 2012
Recent Forum Topics

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!

Vote For EH-Net

Add to Technorati Favorites
technorati fave

 
         
Advertisement

© 2012 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.