- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to Snoop or Trace on HPUX system
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 02:42 PM
01-02-2002 02:42 PM
How to Snoop or Trace on HPUX system
Any suggestions are appreciated.
Thanks
GP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 02:50 PM
01-02-2002 02:50 PM
Re: How to Snoop or Trace on HPUX system
There are a number of ways. You can use nettl to capture the packets and then use netfmt to format the contents. Check nettl and netfmt man pages.
There is another software that works like snoop. You can get it from the hp's free site.
http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Admin/snort-1.8.1/
What I like is ethereal. But there are a lot of dependencies. But it is a very nice graphic tool.
http://hpux.ee.ualberta.ca/hppd/hpux/Gtk/Applications/ethereal-0.8.20/
Unfortunately all these tools consume a lot of disk space. So, if you know precise time of this attack it will be helpful. Do not run them for more than 5 mins.
Enable logging with snmp by invoking it with -l option.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 02:51 PM
01-02-2002 02:51 PM
Re: How to Snoop or Trace on HPUX system
Have a look at 'nettl' (see 'man 1M nettl').
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 02:51 PM
01-02-2002 02:51 PM
Re: How to Snoop or Trace on HPUX system
One very good tool that is available for free is ethereal. It includes a very nice GUI interface but you will need to download and compile/link the source.
http://hpux.cs.utah.edu/hppd/hpux/Gtk/Applications/ethereal-0.8.20/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 03:01 PM
01-02-2002 03:01 PM
Re: How to Snoop or Trace on HPUX system
If you want to know only the server that is doing snmp queries, you can invoke the snmpd server with -m option. Check up the man page for snmpdm server. However, this will not demonize the server. So, you need to manually kill snmpdm and start it later after the tracing is done. To do it..
1. Kill the snmpdm process (use /sbin script)
2. Run manually with tracing
snmpdm -m 8388608 (check the man page)
3. Once the attack is over, look at /var/adm/snmpd.log file to find out the source address. Kill this process and start it through sbin scripts as usual.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 12:16 AM
01-03-2002 12:16 AM
Re: How to Snoop or Trace on HPUX system
One way is to make use of netstat to trace the connecting source. This requires constant polling.
$ netstat -a | grep udp | grep snmp
udp 0 0 *.snmp *.*
To avoid constant polling and monitoring, another way is to run your legitimate snmpd at udp port 163 while at the original udp port 161, run a udp daemon program to trap the originating source.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 01:21 AM
01-03-2002 01:21 AM
Re: How to Snoop or Trace on HPUX system
1. Create a file called filter with the following line:
filter udp_dport 161
2. Then run the following command:
# nettl -tn pduin -e ns_ls_ip -s 1024 | netfmt -lnN -c filter > /tmp/nettl.out
You can stop the trace with:
# nettl -tf -e all
The file /tmp/nettl.out will contain the formatted trace output.
Regards,
Steve