{"id":13775039,"url":"https://github.com/advtools/advsock2pipe","last_synced_at":"2025-05-11T07:31:47.479Z","repository":{"id":143012740,"uuid":"2297568","full_name":"ADVTOOLS/ADVsock2pipe","owner":"ADVTOOLS","description":"A small utility to connect a TCP socket to a Windows named pipe. It can be used, for exemple, to capture network data with tcpdump on Linux or iPhone/iPad and to see the capture in (almost) realtime in Wireshark on Windows. Released under GPLv3.","archived":false,"fork":false,"pushed_at":"2012-05-02T16:37:47.000Z","size":120,"stargazers_count":40,"open_issues_count":1,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-03T17:11:14.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.advtools.com","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/ADVTOOLS.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2011-08-30T20:40:11.000Z","updated_at":"2024-02-27T12:00:58.000Z","dependencies_parsed_at":"2023-04-03T21:48:31.042Z","dependency_job_id":null,"html_url":"https://github.com/ADVTOOLS/ADVsock2pipe","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADVTOOLS%2FADVsock2pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADVTOOLS%2FADVsock2pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADVTOOLS%2FADVsock2pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADVTOOLS%2FADVsock2pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ADVTOOLS","download_url":"https://codeload.github.com/ADVTOOLS/ADVsock2pipe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225027328,"owners_count":17409410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-03T17:01:33.123Z","updated_at":"2024-11-17T10:30:25.270Z","avatar_url":"https://github.com/ADVTOOLS.png","language":"C#","readme":"# What is ADVsock2pipe?\r\n\r\nADVsock2pipe is a small utility to connect a TCP socket to a Windows named pipe. It can be used, for example, to capture network data with tcpdump on Linux or iPhone/iPad and to see the capture in (almost) real-time in Wireshark on Windows.\r\n\r\nIt is released under GPLv3.\r\n\r\n\r\n# How to use ADVsock2pipe?\r\n\r\nFor example, to capture data on a device (10.0.0.1) and send it to Wireshark on Windows (10.0.0.99) on port 7777:\r\n\r\nOn the Windows workstation (10.0.0.99):\r\n\r\n- `ADVsock2pipe -pipe=wireshark -port=7777`\r\n- Start Wireshark\n- Capture | Options, Interface: Local, \\\\\\\\.\\pipe\\wireshark\n- Start\r\n\r\nOn the device:\r\n\r\n- `tcpdump -nn -w - -U -s 0 \"not port 7777\" | nc 10.0.0.99 7777`\r\n\r\n\r\n# Why do I get errors in Wireshark when a stop a capture and start a new one?\r\n\r\nThis is because Wireshark is either expecting a header and does not receive one or is receiving a header when it does not expect one: Wireshark expect data in pcap format, a pcap header follows by packet data. If you stop and start tcpdump, Wireshark receives a pcap header in the middle of a capture and thus generates an error.\r\n\r\nSo to avoid any problem:\r\n\r\n- Always start Wireshark before starting tcpdump.\r\n- Each time you stop tcpdump, stop Wireshark. \r\n- And each time you stop Wireshark, stop tcpdump.\r\n\r\n\r\n# What are the command line options?\r\n\r\n--pipe=\u003cname\u003e where \u003cname\u003e is the name of the Windows pipe.\r\n--port=\u003cport\u003e where \u003cport\u003e is the TCP port number.\r\n--log=\u003clevel\u003e where \u003clevel\u003e is Debug, Info, Warning, Error or Critical. Determine the level of details given by this tool.\r\n--help or -h to get some help about this tool.\r\n\r\n\r\n# How to build ADVsock2pipe?\r\n\r\nIn order to build ADVsock2pipe, you need to have Visual Studio 2010 or 2011 Developer Preview. Open the solution (ADVsock2pipe.sln) and build it.\r\n\r\n\r\n# References\r\n\r\n[Wireshark Wiki - CaptureSetup/Pipes](http://wiki.wireshark.org/CaptureSetup/Pipes)\r\n\r\n\r\n# Copyright and license\r\n\r\nCopyright (c) 2011 - [ADVTOOLS SARL](http://www.advtools.com)\r\n \r\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\r\n","funding_links":[],"categories":["\u003ca id=\"b293f791ec9366957733415323755aa6\"\u003e\u003c/a\u003eTcpdump"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvtools%2Fadvsock2pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadvtools%2Fadvsock2pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvtools%2Fadvsock2pipe/lists"}