Tcpkill

Tcpkill is a network utility program that can be used to terminate connections to or from a particular host, network, port, or combination of all. These programs take standard Berkeley Packet Filter (BPF) filters. This can be used for both port mirroring and ARP spoofing.[1]

Examples

To prevent any connections to the host www.google.com use this command:

/usr/sbin/tcpkill −9 host www.google.com

The computer that is attempting to go to that site will be blocked from that site only, but can surf any other site. It is a good idea to either redirect the output into nothingness ( > 2>/dev/null 1>/dev/null) or into a file for later analysis (> file.tcpkill ). By default, it will redirect output to the console.

More hosts can be specified with the command:

/usr/sbin/tcpkill −9 host www.google.com and host www.yahoo.com

To block well−known ports e.g., napster (port 8888 and port 6699) or gnutella (port 6346), the command:

/usr/sbin/tcpkill −9 port 8888 and port 6699

or

/usr/sbin/tcpkill −9 port 6346

DoS with tcpkill

Tcpkill can be used to create a DoS attack within a WAN or LAN, and this can be done by using a sniffer like dsniff or tcpdump to look at the packets that are being transmitted and to pick a target that you want to deny service. Assume the target has been identified as 192.168.100.38, a simple command like:

tcpkill -9 host 192.168.100.38

will kill all outgoing tcp packets (TCP segment) between the target and the rest of the network. Prior to the attack the target can receive packets from the rest of the network.

Options

-i

the -i option specify which interface you want the program to listen on. The default option interface on most computers is eth0, because most computers only have one interface.[2]

-1...9

The -1 to -9 specify the degree of brute force you want the attack to use on the target, with -1 being the least brute and -9 being the most brute. Computers on network with very fast connection usually require more brute force in order to successfully perform a DOS attack on them. Otherwise the command can be run without the -1 to -9 option or the -i option.[2]

This is a description of one of the various dsniff programs. This text belongs to the dsniffREADME” written by the author Dug Song:

Name Description
tcpkill Kills specified in-progress TCP connections (useful for libnids-based applications which require a full TCP 3-whs for TCB creation). Can be effective for bandwidth control.

See also: filesnarf [1], macof [2], mailsnarf [3], msfsnarf [4], sshmitm [5], tcpnice [6], urlsnarf [7] webmitm [8], webspy [9].

References

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.