computers:securitynotes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computers:securitynotes [2007/03/12 14:07] – david | computers:securitynotes [2007/04/25 12:00] (current) – david | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Checking Open Ports ====== | ||
+ | |||
This [[http:// | This [[http:// | ||
Line 54: | Line 56: | ||
The presence of the open port in //netstat// is reassuring because a cracker opening a port surreptitiously on a hacked system would likely not allow it to be revealed through this command. Also, the [p] option reveals the process id (PID) of the service which opened the port. In this case the open port belongs to //ypbind// (NIS), which is an RPC service handled in conjunction with the //portmap// service. | The presence of the open port in //netstat// is reassuring because a cracker opening a port surreptitiously on a hacked system would likely not allow it to be revealed through this command. Also, the [p] option reveals the process id (PID) of the service which opened the port. In this case the open port belongs to //ypbind// (NIS), which is an RPC service handled in conjunction with the //portmap// service. | ||
- | The lsof command reveals similar information since it is also capable of linking open ports to services: | + | The //lsof// command reveals similar information since it is also capable of linking open ports to services: |
< | < | ||
Line 70: | Line 72: | ||
As you can see, these tools can reveal a great about the status of the services running on a machine. These tools are flexible and can provide a wealth of information about network services and configuration. Consulting the man pages for //lsof//, // | As you can see, these tools can reveal a great about the status of the services running on a machine. These tools are flexible and can provide a wealth of information about network services and configuration. Consulting the man pages for //lsof//, // | ||
+ | |||
+ | ====== Dropping Unwanted Packets ====== | ||
+ | |||
+ | Some dude/ | ||
+ | |||
+ | < | ||
+ | # drop all incoming packets from 88.241.152.169 | ||
+ | iptables -I INPUT -s 88.241.152.169 -j DROP | ||
+ | # list your iptables rules | ||
+ | iptables -L -n | ||
+ | </ | ||
+ | |||
+ |
computers/securitynotes.1173708433.txt.gz · Last modified: 2007/03/12 14:07 (external edit)