{"id":13774932,"url":"https://github.com/nimai/mptcp-scapy","last_synced_at":"2025-05-11T07:31:00.763Z","repository":{"id":7563227,"uuid":"8916958","full_name":"nimai/mptcp-scapy","owner":"nimai","description":"MPTCP firewall tester based on scapy","archived":false,"fork":false,"pushed_at":"2015-02-27T20:51:10.000Z","size":433,"stargazers_count":49,"open_issues_count":2,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T00:57:01.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nimai.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-20T23:34:40.000Z","updated_at":"2024-06-28T09:07:05.000Z","dependencies_parsed_at":"2022-08-30T04:10:40.616Z","dependency_job_id":null,"html_url":"https://github.com/nimai/mptcp-scapy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimai%2Fmptcp-scapy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimai%2Fmptcp-scapy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimai%2Fmptcp-scapy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimai%2Fmptcp-scapy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nimai","download_url":"https://codeload.github.com/nimai/mptcp-scapy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253533188,"owners_count":21923375,"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:31.923Z","updated_at":"2025-05-11T07:31:00.347Z","avatar_url":"https://github.com/nimai.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"01f99d208e245eb44f15f720043b50d4\"\u003e\u003c/a\u003eScapy"],"sub_categories":[],"readme":"This version implements the support for Multipath TCP.\n\nIt affects the way TCP is handled by adding a packet type for TCP options.  It\nalso adds a packet type MPTCP as subtype of a TCP option (see\nscapy/layers/mptcp.py for details).\n\nYou can use the script \"launcher\" to start scapy with the modified script. It\nworks only if you are in the same directory that the python \"scapy\" module.\n\nEXAMPLE RUN\n===========\n\n$ ./laucher\nWelcome to Scapy (2.2.0)\n\u003e\u003e\u003e a=rdpcap(\"dumps/mptcp-capable.pcap\")\n\u003e\u003e\u003e a\n\u003cmptcp-capable.pcap: TCP:1 UDP:0 ICMP:0 Other:0\u003e\n\u003e\u003e\u003e a[0]\n\u003cCookedLinux  pkttype=sent-by-us lladdrtype=0x1 lladdrlen=6 src='\\x00%\\xb3\\x02\\xd24' proto=0x800 |\u003cIP  version=4L ihl=5L tos=0x0 len=80 id=32501 flags=DF frag=0L ttl=64 proto=tcp chksum=0xa5a7 src=10.0.1.11 dst=10.0.1.1 options=[] |\u003cTCP  sport=44437 dport=www seq=559395504 ack=169850675 dataofs=15L reserved=0L flags=A window=28 chksum=0x164e urgptr=0 options=[\u003cTCPOption_NOP  kind=NOP |\u003e, \u003cTCPOption_NOP  kind=NOP |\u003e, \u003cTCPOption_Timestamp  kind=Timestamp length=10 timestamp_value=183387 timestamp_echo=178863 |\u003e, \u003cTCPOption_MP  kind=MpTCP mptcp=\u003cMPTCP_Capable  length=20 subtype=MP_CAPABLE version=0L checksum_req=1L reserved=0L hmac_sha1=1L snd_key=1815828401224581229 rcv_key=8653733315196113643 |\u003e |\u003e, \u003cTCPOption_MP  kind=MpTCP mptcp=\u003cMPTCP_AddAddr  length=8 subtype=ADD_ADDR ipver=4L address_id=1 adv_addr=10.0.0.7 |\u003e |\u003e] |\u003e\u003e\u003e\n\u003e\u003e a[0].show2()\n###[ cooked linux ]###\n  pkttype= sent-by-us\n  lladdrtype= 0x1\n  lladdrlen= 6\n  src= '\\x00%\\xb3\\x02\\xd24'\n  proto= 0x800\n###[ IP ]###\n     version= 4L\n     ihl= 5L\n     tos= 0x0\n     len= 80\n     id= 32501\n     flags= DF\n     frag= 0L\n     ttl= 64\n     proto= tcp\n     chksum= 0xa5a7\n     src= 10.0.1.11\n     dst= 10.0.1.1\n     \\options\\\n###[ TCP ]###\n        sport= 44437\n        dport= www\n        seq= 559395504\n        ack= 169850675\n        dataofs= 15L\n        reserved= 0L\n        flags= A\n        window= 28\n        chksum= 0x164e\n        urgptr= 0\n        \\options\\\n         |###[ No Operation ]###\n         |  kind= NOP\n         |###[ No Operation ]###\n         |  kind= NOP\n         |###[ Timestamp ]###\n         |  kind= Timestamp\n         |  length= 10\n         |  timestamp_value= 183387\n         |  timestamp_echo= 178863\n         |###[ Multipath TCP option ]###\n         |  kind= MpTCP\n         |  \\mptcp\\\n         |   |###[ Multipath TCP capability ]###\n         |   |  length= 20\n         |   |  subtype= MP_CAPABLE\n         |   |  version= 0L\n         |   |  checksum_req= 1L\n         |   |  reserved= 0L\n         |   |  hmac_sha1= 1L\n         |   |  snd_key= 1815828401224581229\n         |   |  rcv_key= 8653733315196113643\n         |###[ Multipath TCP option ]###\n         |  kind= MpTCP\n         |  \\mptcp\\\n         |   |###[ Multipath TCP Add Address ]###\n         |   |  length= 8\n         |   |  subtype= ADD_ADDR\n         |   |  ipver= 4L\n         |   |  address_id= 1\n         |   |  adv_addr= 10.0.0.7\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimai%2Fmptcp-scapy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimai%2Fmptcp-scapy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimai%2Fmptcp-scapy/lists"}