{"id":13774839,"url":"https://github.com/sc0tfree/netbyte","last_synced_at":"2025-05-06T17:34:52.298Z","repository":{"id":108853227,"uuid":"94717486","full_name":"sc0tfree/netbyte","owner":"sc0tfree","description":"Netbyte is a Netcat-style tool that facilitates probing proprietary TCP and UDP services. It is lightweight, fully interactive and provides formatted output in both hexadecimal and ASCII.","archived":false,"fork":false,"pushed_at":"2017-09-25T02:08:44.000Z","size":103,"stargazers_count":62,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T17:11:09.065Z","etag":null,"topics":["cli","hexadecimal","netcat","penetration-testing","pentesting","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/sc0tfree.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,"roadmap":null,"authors":null}},"created_at":"2017-06-18T22:51:03.000Z","updated_at":"2024-05-15T07:54:17.000Z","dependencies_parsed_at":"2023-03-13T14:22:04.878Z","dependency_job_id":null,"html_url":"https://github.com/sc0tfree/netbyte","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/sc0tfree%2Fnetbyte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0tfree%2Fnetbyte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0tfree%2Fnetbyte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0tfree%2Fnetbyte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sc0tfree","download_url":"https://codeload.github.com/sc0tfree/netbyte/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224517379,"owners_count":17324407,"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":["cli","hexadecimal","netcat","penetration-testing","pentesting","python"],"created_at":"2024-08-03T17:01:30.847Z","updated_at":"2024-11-13T20:10:38.176Z","avatar_url":"https://github.com/sc0tfree.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"b35965810463fb97b1ca26d94a8b62f0\"\u003e\u003c/a\u003eNetcat"],"sub_categories":[],"readme":"# Netbyte\n\n![Version 0.5](http://img.shields.io/badge/version-v0.5-orange.svg)\n![Python 2.7](http://img.shields.io/badge/python-2.7-blue.svg)\n![MIT License](http://img.shields.io/badge/license-MIT%20License-blue.svg)\n[![sc0tfree Twitter](http://img.shields.io/twitter/url/http/shields.io.svg?style=social\u0026label=Follow)](https://twitter.com/sc0tfree)\n\nNetbyte is a Netcat-style tool that facilitates probing proprietary TCP and UDP services.\nIt is lightweight, fully interactive and provides formatted output in both hexadecimal and ASCII.\n\n## Why\n\nWhen testing proprietary or custom-written services on pentests, I’ve frequently been disappointed while trying to reverse engineer \nthese protocols.\n\nIn the past, this has been done using netcat with wireshark and/or hexdump.\nHowever, due to truncation issues with using hexdump (i.e.: `nc domain.com 1234 | hexdump -C`)\nand wireshark’s tedious process, I decided to create Netbyte as quick and easy alternative when opening unknown ports.\n\n## Install\n\nClone the git:\n```\ngit clone https://github.com/sc0tfree/netbyte.git\n```\nEnter the directory:\n```\ncd netbyte\n```\nRun setup.py script with 'install':\n```\npython setup.py install\n```\n\n## Usage\n\n```\n$ netbyte example.com 12345\n������!��'\nFF FB 01 FF FB 03 FF FD 21(!) FF FD 27(')\n\n\nEnter your user id:\n0D 0A(\\n)\n0D 0A(\\n)\n45(E) 6E(n) 74(t) 65(e) 72(r) 20 79(y) 6F(o) 75(u) 72(r) 20 75(u) 73(s) 65(e) 72(r) 20 69(i) 64(d) 3A(:) 20 07\nadmin\nuser password:\n61(a) 64(d) 6D(m) 69(i) 6E(n) 0D 0A(\\n)\n75(u) 73(s) 65(e) 72(r) 20 70(p) 61(a) 73(s) 73(s) 77(w) 6F(o) 72(r) 64(d) 3A(:) 20\nadmin\n\nInvalid user or password\n\nConnection closed\n```\nYou can also pipe input into netbyte:\n```\n$ echo \"GET /\" | netbyte test.com 80\n\u003chtml\u003e\n\u003chead\u003e\u003ctitle\u003e302 Found\u003c/title\u003e\u003c/head\u003e\n\u003cbody bgcolor=\"white\"\u003e\n\u003ccenter\u003e\u003ch1\u003e302 Found\u003c/h1\u003e\u003c/center\u003e\n\u003chr\u003e\u003ccenter\u003enginx/1.11.13\u003c/center\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n\n3C(\u003c) 68(h) 74(t) 6D(m) 6C(l) 3E(\u003e) 0D 0A(\\n)\n3C(\u003c) 68(h) 65(e) 61(a) 64(d) 3E(\u003e) 3C(\u003c) 74(t) 69(i) 74(t) 6C(l) 65(e) 3E(\u003e) 33(3) 30(0) 32(2) 20 46(F) 6F(o) 75(u) 6E(n) 64(d) 3C(\u003c) 2F(/) 74(t) 69(i) 74(t) 6C(l) 65(e) 3E(\u003e) 3C(\u003c) 2F(/) 68(h) 65(e) 61(a) 64(d) 3E(\u003e) 0D 0A(\\n)\n3C(\u003c) 62(b) 6F(o) 64(d) 79(y) 20 62(b) 67(g) 63(c) 6F(o) 6C(l) 6F(o) 72(r) 3D(=) 22 77(w) 68(h) 69(i) 74(t) 65(e) 22 3E(\u003e) 0D 0A(\\n)\n3C(\u003c) 63(c) 65(e) 6E(n) 74(t) 65(e) 72(r) 3E(\u003e) 3C(\u003c) 68(h) 31(1) 3E(\u003e) 33(3) 30(0) 32(2) 20 46(F) 6F(o) 75(u) 6E(n) 64(d) 3C(\u003c) 2F(/) 68(h) 31(1) 3E(\u003e) 3C(\u003c) 2F(/) 63(c) 65(e) 6E(n) 74(t) 65(e) 72(r) 3E(\u003e) 0D 0A(\\n)\n3C(\u003c) 68(h) 72(r) 3E(\u003e) 3C(\u003c) 63(c) 65(e) 6E(n) 74(t) 65(e) 72(r) 3E(\u003e) 6E(n) 67(g) 69(i) 6E(n) 78(x) 2F(/) 31(1) 2E 31(1) 31(1) 2E 31(1) 33(3) 3C(\u003c) 2F(/) 63(c) 65(e) 6E(n) 74(t) 65(e) 72(r) 3E(\u003e) 0D 0A(\\n)\n3C(\u003c) 2F(/) 62(b) 6F(o) 64(d) 79(y) 3E(\u003e) 0D 0A(\\n)\n3C(\u003c) 2F(/) 68(h) 74(t) 6D(m) 6C(l) 3E(\u003e) 0D 0A(\\n)\n\nConnection closed\n```\n\n## Test Server\n\nI have included a test server to better view the functionality of netbyte. The server has two tests:\n* Echo Test - echo back a user entered string\n* Hex Test - send a random hexadecimal string of user-specified size\n\nTo run the test server:\n```\n$ python testserver.py\n```\nIn another terminal, connect to the test server using netbyte:\n```\n$ netbyte localhost 12345\n```\n\n## Modifying Output Colors\n\nTo modify the color scheme, change the functions `print_ascii` and `print_hex` inside the netbyte package.\nSee the [colorama page](https://pypi.python.org/pypi/colorama) for color options.\n\n## License and Contributions\n\nNetbyte is under the MIT License.\n\nQuestions, comments and suggestions are always welcomed!\n\n## Future Work\n\n* Ability to enter input sent as hex\n* Listen option to interact with custom-built clients\n* Proper unit tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0tfree%2Fnetbyte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc0tfree%2Fnetbyte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0tfree%2Fnetbyte/lists"}