{"id":26529479,"url":"https://github.com/cappe987/hexend","last_synced_at":"2025-03-21T16:33:59.439Z","repository":{"id":134109147,"uuid":"528578148","full_name":"cappe987/hexend","owner":"cappe987","description":"Send hexdumps copied from Wireshark/Tcpdump","archived":false,"fork":false,"pushed_at":"2023-10-12T10:29:51.000Z","size":44,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-13T04:57:13.800Z","etag":null,"topics":["c","hacktoberfest","linux","networking","tcpdump","wireshark"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cappe987.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-08-24T20:08:16.000Z","updated_at":"2023-10-12T10:27:19.000Z","dependencies_parsed_at":"2023-03-11T22:45:16.833Z","dependency_job_id":null,"html_url":"https://github.com/cappe987/hexend","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fhexend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fhexend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fhexend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fhexend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cappe987","download_url":"https://codeload.github.com/cappe987/hexend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244829810,"owners_count":20517381,"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":["c","hacktoberfest","linux","networking","tcpdump","wireshark"],"created_at":"2025-03-21T16:33:58.599Z","updated_at":"2025-03-21T16:33:59.415Z","avatar_url":"https://github.com/cappe987.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!---\nSPDX-License-Identifier: MIT\nSPDX-FileCopyrightText: 2023 Casper Andersson \u003ccasper.casan@gmail.com\u003e\n--\u003e\n\n# Hexend - Send raw hex frames\n\u003e /hɛksɛnd/ (pronunciation)\n\nFor when you want to manually craft frames, or to copy the hexdump from\nTcpdump/Wireshark and repeat or modify the frame afterwards.\n\n```\nhexend \u003ciface\u003e [FILE] [OPTIONS]\n```\nFile may only contain hexadecimal characters and whitespace.\n\n# Installation\n```\nmkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\nmake\nsudo make install\n```\n\n# Examples\nSend a frame from file to `eth0`. Repeats until stopped.\n```\nhexend eth0 my_frames/frame.hex\n```\n\nSend a frame from file, repeat 10 times and suppress output\n```\nhexend eth0 my_frames/frame.hex -c 10 -q\n```\n\nPipe file contents to input, repeat 5 times with 0.1 second interval\n```\ncat my_frames/frame.hex | hexend eth0 -c 5 -i 0.1\n```\n\nPipe raw string to input, repeat 1000 times with no interval\n```\necho ffffffffffffaaaaaaaaaaaa0000 | hexend eth0 -c 1000 -i 0\n```\n\n# Test\nThe test script depends on `tshark` and requires you to have access to running\nit. If you have Wireshark and is part of the \"wireshark\" group it should work.\nTo run the full test suite do\n```\nmake test\n```\n\nTo select an individual test you can do\n```\nmake test t=zero_interval\n```\n\n# Hexend shell script\nAfter creating this project I found a way to do this with shell scripts, which is what I initially would have wanted. But the performance of the shell script (found in `script/hexend`) is much worse if you want to send a lot of packets. On the upside, it doesn't require escalated privileges. The script is very basic right now and depends on `xxd` and `socat`. It is used the same, either by piping to `stdin`, or by providing a filename. It currently does not support any of the argument flags.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappe987%2Fhexend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcappe987%2Fhexend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappe987%2Fhexend/lists"}