{"id":13836072,"url":"https://github.com/krisnova/tcpjack","last_synced_at":"2025-04-14T05:32:18.104Z","repository":{"id":167409851,"uuid":"643016481","full_name":"krisnova/tcpjack","owner":"krisnova","description":"TCP Instrumentation","archived":false,"fork":false,"pushed_at":"2023-10-20T14:35:14.000Z","size":115,"stargazers_count":36,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-02-17T06:34:35.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krisnova.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-19T22:03:10.000Z","updated_at":"2024-05-30T00:44:13.672Z","dependencies_parsed_at":null,"dependency_job_id":"efbc688b-8329-45cd-8e5c-763b7b224ad0","html_url":"https://github.com/krisnova/tcpjack","commit_stats":null,"previous_names":["krisnova/tcpinst"],"tags_count":1,"template":false,"template_full_name":"krisnova/rust-nova","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Ftcpjack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Ftcpjack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Ftcpjack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Ftcpjack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisnova","download_url":"https://codeload.github.com/krisnova/tcpjack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248826803,"owners_count":21167752,"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-04T15:00:34.794Z","updated_at":"2025-04-14T05:32:17.759Z","avatar_url":"https://github.com/krisnova.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# TCP Jack\n\nHijack established TCP connections.\n\nSend data over existing TCP connections.\nPerform analysis of routing topology using established TCP connections.\n\n### Installing \n\nInstall **tcpjack** like any normal Linux program. Download the source code and compile using your local C compiler.\n\n``` \nwget https://github.com/krisnova/tcpjack/archive/refs/tags/v0.0.2.tar.gz\ntar -xzf v0.0.2.tar.gz\ncd tcpjack-0.0.2\nmake\nsudo make install\n```\n\n### Example Hijacking a TCP connection\n\nThe following example shows how to hijack an existing TCP connection using the `-j` flag.\n`tcpjack` will use `ptrace` to briefly interrupt the client with the specified inode.\nDuring the interruption, `tcpjack` will steal the established connection's open file descriptor.\nAfter the file descriptor has been copied, the process resumes normal processing.\nThe newly copied file descriptor is used to create a spoofed client over the same connection as the original.\n\n```bash\n# Terminal 1\nncat -l 9074\n\n# Terminal 2 \nncat localhost 9074\n\n# Terminal 3 \ntcpjack -l | grep ncat \n  ncat   9321  72294 127.0.0.1:48434 -\u003e  127.0.0.1:9074 \n  ncat   9237  76747  127.0.0.1:9074 -\u003e 127.0.0.1:48434 \necho \"PAYLOAD\" | sudo tcpjack -j 72294\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisnova%2Ftcpjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisnova%2Ftcpjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisnova%2Ftcpjack/lists"}