View previous topic :: View next topic |
Author |
Message |
smileycap n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Jul 2004 Posts: 2
|
Posted: Thu Jul 29, 2004 7:36 pm Post subject: Monitoring certain Hosts |
|
|
What I want to be able to do is monitor any and all types of incoming and outgoing connections of a host/IP. What programs will allow me to do this? Any help is greatly appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
db_404 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Dec 2002 Posts: 336
|
Posted: Thu Jul 29, 2004 7:56 pm Post subject: |
|
|
If it's a host on your subnet then ettercap and a packet analysis/dump tool (e.g ethereal, tcpdump, netcat etc..etc.).
If it's not a host on your subnet then, erm, no you can't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smileycap n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Jul 2004 Posts: 2
|
Posted: Thu Jul 29, 2004 8:07 pm Post subject: |
|
|
Ahh, I didn't ask my question correctly. What i want to do is log incoming/outgoing data coming from/going to certain hosts. How can i do this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jeremy_Z l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1850204343409f64f2ee87d.jpg)
Joined: 05 Apr 2004 Posts: 671 Location: Shanghai
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
intgr Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/51574299842054c07a5b90.png)
Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Thu Jul 29, 2004 8:28 pm Post subject: |
|
|
You might want to try ngrep, it's quite useful if you want to capture only some substrings from the TCP traffic.
Also, ettercap has a nice ncurses UI, and it can perform man-in-the-middle for SSL, but be careful -- you can blow up your LAN if you enable some of its malicious features. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
db_404 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Dec 2002 Posts: 336
|
Posted: Thu Jul 29, 2004 8:32 pm Post subject: |
|
|
To log the connections you could use IP tables. If you are after the actual data you'll have to use something like ethereal or tcpdump (or even snort). You can set these up to only capture packets to/from the sources you specify.
Ethereal is probably the easiest to use, have a look at http://www.ethereal.com. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jeremy_Z l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1850204343409f64f2ee87d.jpg)
Joined: 05 Apr 2004 Posts: 671 Location: Shanghai
|
Posted: Thu Jul 29, 2004 9:29 pm Post subject: |
|
|
If you want to log the data ethereal could do the trick, but if you want to analyze the data and/or do things according to the data you may have to hack your own perl script.
For example it is very easy to detect kazaa user by looking into the packets for obvious
Code: |
X-Kazaa-Username: xxxx
X-Kazaa-Network: KaZaA
X-Kazaa-IP: ip:port
X-Kazaa-SupernodeIP: ip:port
|
Then it is not difficult to have your script do some nasty things like modify iptables rules, log, ect .. _________________ "Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|