Go Back   Remote Exploit Forums > BackTrack v2.0 Final > Tutorials & Guides
Register FAQ Members List Calendar Today's Posts

   

Reply
Thread Tools Display Modes
  #1  
Old 02-05-2006, 08:42 PM
yeehaw yeehaw is offline
Junior Member
 
Join Date: Feb 2006
Location: /dev/null
Posts: 19
Default Sniffing Tutorial:

Simple Sniffing Tutorial

Tools:

Ettercap
nano

1. For SSL Dissection support (hotmail,gmail), you need to do this:
Open a shell, type: "nano /usr/local/etc/etter.conf", use the down arrow until you reach "redir_command_on/off", look at the linux part, your gonna need to uncomment:
Code:
# if you use iptables:
#redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
#redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
to:

Code:
# if you use iptables:
redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
after your done, press F2, Y, Return.

Now boot Ettercap: Menu --> Backtrack --> Spoofing --> Ettercap
Go to: Sniff --> Unified Sniffing -->ethX(what interface you want to sniff).
Then Press: Ctrl+S to scan hosts.
Then Go to: Mitm --> ARP poisoning, select sniff remote connections, and press ok.
Then Go to: Start --> Start Sniffing.

For an Example, Walk to another pc, go to your internet email account (Hotmail, Gmail), and log in, you will be asked to trust the certificate, Trust it, and watch your sniffing computer, the username and password should appear.

When your done, go to Start --> Stop Sniffing, And go to Mitm --> Stop mitm attack(s)

Yeehaw

Last edited by yeehaw : 02-07-2006 at 11:50 AM.
Reply With Quote
  #2  
Old 02-05-2006, 11:38 PM
Ikaru Ikaru is offline
Junior Member
 
Join Date: Jan 2006
Posts: 11
Default

Thanks for the nice tutorial!

I have another question to webmitm. I once was reading in the old forum that there is a other tool which fills the certificate automatically !?
Reply With Quote
  #3  
Old 02-06-2006, 12:18 AM
FreshFish's Avatar
FreshFish FreshFish is offline
Member
 
Join Date: Feb 2006
Posts: 31
Exclamation

Quote:
your gonna need to uncomment: # if you use iptables:
Can you please explain this part. I found
Code:
# if you use iptables:
#redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
#redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
but what do you mean "uncomment"? Sorry for the n00b question... Just need a little more explanation on what to do here???

Thx
Reply With Quote
  #4  
Old 02-06-2006, 01:18 AM
hobbes hobbes is offline
Senior Member
 
Join Date: Jan 2006
Location: British Columbia, Canada
Posts: 187
Default

Remove the hash marks ( # ) at the beginning of the two lines following "# if you use iptables:".
Reply With Quote
  #5  
Old 02-06-2006, 02:02 AM
FreshFish's Avatar
FreshFish FreshFish is offline
Member
 
Join Date: Feb 2006
Posts: 31
Default

Quote:
Originally Posted by hobbes
Remove the hash marks ( # ) at the beginning of the two lines following "# if you use iptables:".
Worked and thanks... But I noticed the certificate keeps popping up and I was never able to log into hotmail using both ie & ff... Is there a fix or work around for this? Plus if you click "view cetificate" it says "This certificate cannot be verified up to a trusted certification authority.". How can I make the certificate look like its a trusted source?
Reply With Quote
  #6  
Old 02-06-2006, 06:39 AM
yeehaw yeehaw is offline
Junior Member
 
Join Date: Feb 2006
Location: /dev/null
Posts: 19
Default

Quote:
Originally Posted by FreshFish
Worked and thanks... But I noticed the certificate keeps popping up and I was never able to log into hotmail using both ie & ff... Is there a fix or work around for this? Plus if you click "view cetificate" it says "This certificate cannot be verified up to a trusted certification authority.". How can I make the certificate look like its a trusted source?
you can't, you need to press yes multiple times...

Yeehaw
Reply With Quote
  #7  
Old 03-15-2006, 10:16 PM
TheGreatVirus TheGreatVirus is offline
Senior Member
 
Join Date: Feb 2006
Posts: 160
Default

Very well done. Thanks alot for using Ettercap! Hahaha
__________________
TiSnetworks vX.2 (Security Website) - http://www.tisnetworks.net

\|,,,,,,,,,,,,,,\|/,,,,,,,,,,,,,,|/
-(o)===(<(O)>)===(o)-
/|''''''''''''''''`/|\'''''''''''''''''''|\
Reply With Quote
  #8  
Old 03-21-2006, 08:25 AM
yeehaw yeehaw is offline
Junior Member
 
Join Date: Feb 2006
Location: /dev/null
Posts: 19
Default

TheGreatVirus, are you the author?
Reply With Quote
  #9  
Old 03-21-2006, 08:54 AM
fifo_thekid fifo_thekid is offline
Junior Member
 
Join Date: Jan 2006
Posts: 10
Default

what about a small video tutorial hosted by rapidshare?
Reply With Quote
  #10  
Old 03-22-2006, 12:38 PM
yeehaw yeehaw is offline
Junior Member
 
Join Date: Feb 2006
Location: /dev/null
Posts: 19
Default

dunno wich tools for linux and windows i should use, enlighten me
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:30 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.