{"id":20620548,"url":"https://github.com/blacklight/tcpsmash","last_synced_at":"2026-04-22T10:33:07.590Z","repository":{"id":471153,"uuid":"96128","full_name":"blacklight/tcpsmash","owner":"blacklight","description":"Free, complete \u0026 cool packet sniffer for Unix-like systems","archived":false,"fork":false,"pushed_at":"2009-01-12T22:15:16.000Z","size":240,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-06T20:16:35.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://blacklight.gotdns.org/prog/tcpsmash","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacklight.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-12-24T02:15:02.000Z","updated_at":"2019-08-13T13:49:46.000Z","dependencies_parsed_at":"2022-08-16T10:25:22.522Z","dependency_job_id":null,"html_url":"https://github.com/blacklight/tcpsmash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blacklight/tcpsmash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Ftcpsmash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Ftcpsmash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Ftcpsmash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Ftcpsmash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacklight","download_url":"https://codeload.github.com/blacklight/tcpsmash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacklight%2Ftcpsmash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32132383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T12:14:51.146Z","updated_at":"2026-04-22T10:33:07.574Z","avatar_url":"https://github.com/blacklight.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"============================\n0. Table of contents\n============================\n\n1. Description\n2. Requirements\n3. Installation\n4. Usage\n\t4.1. tcpsmash\n\t4.2. nctcpsmash\n5. Author\n6. Licence\n\n============================\n\n1. Description\n\t\n\ttcpsmash is an application designed to capture packets on a network interface\n\tand show on standard output, or on a log file, the content of the packet and\n\tinfo about the source/dest IP and source/dest port. nctcpsmash is a pseudo-graphical\n\tinterface to tcpsmash developed using NCurses library.\n\n2. Requirements\n\n\tIn according to be compiled, the application needs\n\n\t- A Linux-based system\n\t- GCC compiler\n\t- PCAP libraries (http://www.tcpdump.org/pcap.htm)\n\t- NCurses (for nctcpsmash, on Debian-like distros do\n\t  `apt-get install ncurses-devel' )\n\t- GC garbage collector, to free unused and allocated memory and prevent\n\t  memory leaks (if you have not GC installed or want to build (nc)tcpsmash\n\t  without GC support, build it via\n\t  `make HAS_GC= LDGC=' )\n\n3. Installation\n\n\tgoto -\u003e INSTALL\n\n4. Usage\n\n\t4.1. tcpsmash\n\n\t\tUsage: tcpsmash [-h] [-l] [-n] [-v] [-q] [-D] [-f \"\u003cstring\u003e\"] [-C \"\u003cstring\"]\n\t\t\t[-w \u003clogfile\u003e] [-F \u003clogfile\u003e] [-c \u003ccount\u003e] -i \u003cinterface\u003e\n\n\t\t-n\n\t\t\tDo not use promiscuous mode (default mode for tcpsmash)\n\n\t\t-h\n\t\t\tPrint this help and exit\n\n\t\t-l\n\t\t\tShow the active network interfaces\n\n\t\t-q\n\t\t\tGenerate quick output, with a tcpdump-like flavour\n\n\t\t-D\n\t\t\tDump each packet on output, without printing additional info\n\n\t\t-v\n\t\t\tPrint info about the version of the program\n\n\t\t-w logfile\n\t\t\tWrite the output to a log file in binary format. The file will be then read using -F option\n\n\t\t-F logfile\n\t\t\tRead packets from a dump file previously created by using -w \u003clogfile\u003e\n\n\t\t-c count\n\t\t\tOnly capture \"count\" packets and exit\n\n\t\t-f \"\u003cstring\u003e\"\n\t\t\tUse a filter string on the packets in BPF format, i.e. \"tcp dst port 80\"\n\n\t\t-C \"\u003cstring\u003e\"\n\t\t\tOnly capture packets containing \"string\" in any part of them (headers, application contents...), i.e. \"password:\"\n\t\t\tYou can also specify a regex with this option, between / and /, i.e. -C \"/password:\\s*[a-z]+/\"\n\n\t\t-i interface\n\t\t\tChoose a network interface to sniff\n\n\t4.2. nctcpsmash\n\n\t\tUsage: nctcpsmash [-h] [-n] [-v] [-f \"\u003cstring\u003e\"] [-C \"\u003cstring\"] [-c \u003ccount\u003e] [-i \u003cinterface\u003e]\n\n\t\t-h\n\t\t\tPrint this help and exit\n\n\t\t-v\n\t\t\tPrint info about the version of the program\n\n\t\t-c count\n\t\t\tOnly capture \"count\" packets and exit\n\n\t\t-f \"\u003cstring\u003e\"\n\t\t\tUse a filter string on the packets in BPF format, i.e. \"tcp dst port 80\"\n\n\t\t-C \"\u003cstring\u003e\"\n\t\t\tOnly capture packets containing \"string\" in any part of them (headers, application contents...),\n\t\t\ti.e. \"password:\".\n\t\t\tYou can also specify a regex with this option, between / and /, i.e. -C \"/password:\\s*[a-z]+/\"\n\n\t\t-i interface\n\t\t\tChoose a network interface to sniff\n\n\n\t\tCommands:\n\n\t\tUp/Down arrow:\t\tselect previous/next packet\n\t\tLeft/Right arrow:\tgoto first/last packet\n\t\tPage up/down:\t\tshow previous/next page\n\t\tENTER:\t\t\tshow info about selected packet\n\t\th:\t\t\tshow this help\n\t\tw:\t\t\twrite dumped traffic to a logfile, to be examined using tcpsmash -F logfile\n\t\ts:\t\t\tpause traffic sniffing\n\t\tr:\t\t\tresume traffic sniffing when paused\n\t\tq:\t\t\tquit (nc)tcpsmash\n\t\tt:\t\t\tif a TCP packet is selected, this command highlights the TCP stream the packet is belonging to\n\t\tT:\t\t\ttoggle between HEX/ASCII view for the contents of sniffed packets\n\t\t/ search_pattern | regex:\n\t\t\t\thighlight (in red) packets containing specified string or regex. To specify a string, just write it.\n\t\t\t\tTo specify a regex, include it between / and / -\u003e /this is a regex/\n\n5. Author\n\n\tBlackLight\n\tEmail: \u003cblacklight@autistici.org\u003e\n\tWeb: \u003chttp://blacklight.gotdns.org\u003e\n\n6. Licence\n\n\tBoth tcpsmash and nctcpsmash are released under GPL licence, version 3.0. goto -\u003e LICENCE for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacklight%2Ftcpsmash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacklight%2Ftcpsmash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacklight%2Ftcpsmash/lists"}