Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Putting that in the context of a well-formed TCP connection is a little more worklittle more work. If you do need to run multiple packets across a single connection, you'll need to dig a little deeper into scapy (for example, reusing sockets), but that's the tool that will quickly and easily do what you want to do. You could also put a Perl/Python wrapper around nmap, for example, although that gives you a little less per-packet control.

Putting that in the context of a well-formed TCP connection is a little more work. If you do need to run multiple packets across a single connection, you'll need to dig a little deeper into scapy (for example, reusing sockets), but that's the tool that will quickly and easily do what you want to do. You could also put a Perl/Python wrapper around nmap, for example, although that gives you a little less per-packet control.

Putting that in the context of a well-formed TCP connection is a little more work. If you do need to run multiple packets across a single connection, you'll need to dig a little deeper into scapy (for example, reusing sockets), but that's the tool that will quickly and easily do what you want to do. You could also put a Perl/Python wrapper around nmap, for example, although that gives you a little less per-packet control.

typo
Source Link
athena
  • 3.1k
  • 17
  • 35

Because you're dealing with TCP/IP <->↔︎ Serial Bridge, you can assume the data portion of the TCP packet is what's getting carried over onto the Serial line. So you can ignore everything except the data portion of the TCP packet.

I assume you're using Roger's PR Master softwareRoger's PR Master software or the equivalent. Two things that you'll want to do:

Because you're dealing with TCP/IP <-> Serial Bridge, you can assume the data portion of the TCP packet is what's getting carried over onto the Serial line. So you can ignore everything except the data portion of the TCP packet.

I assume you're using Roger's PR Master software or the equivalent. Two things that you'll want to do:

Because you're dealing with TCP/IP ↔︎ Serial Bridge, you can assume the data portion of the TCP packet is what's getting carried over onto the Serial line. So you can ignore everything except the data portion of the TCP packet.

I assume you're using Roger's PR Master software or the equivalent. Two things that you'll want to do:

added 279 characters in body
Source Link
gowenfawr
  • 73.3k
  • 17
  • 166
  • 201

You can use something like scapy for this. If you want to spin upsend a TCP connection and sendpacket with data of 0xb03e01, for example:

Since you're dealing with a TCP-to-Serial connection, sending individual packets likePutting that in the context of a well- oneformed TCP connection, one packet, and closed - is probably fine. The Serial bridge probably might care less how many TCP connections are useda little more work.

If If you do need to run multiple packets across a single connection, you'll need to dig a little deeper into scapy (for example, reusing sockets), but that's the tool that will quickly and easily do what you want to do. You could also put a Perl/Python wrapper around nmap, for example, although that gives you a little less per-packet control.

Since you're dealing with a TCP-to-Serial connection, sending individual packets like that - one TCP connection, one packet, and closed - is probably fine. The Serial bridge probably might care less how many TCP connections are used.

You can use something like scapy for this. If you want to spin up a TCP connection and send 0xb03e01, for example:

Since you're dealing with a TCP-to-Serial connection, sending individual packets like that - one TCP connection, one packet, and closed - is probably fine. The Serial bridge probably might care less how many TCP connections are used.

If you do need to run multiple packets across a single connection, you'll need to dig a little deeper into scapy (for example, reusing sockets), but that's the tool that will quickly and easily do what you want to do.

You can use something like scapy for this. If send a TCP packet with data of 0xb03e01, for example:

Putting that in the context of a well-formed TCP connection is a little more work. If you do need to run multiple packets across a single connection, you'll need to dig a little deeper into scapy (for example, reusing sockets), but that's the tool that will quickly and easily do what you want to do. You could also put a Perl/Python wrapper around nmap, for example, although that gives you a little less per-packet control.

Since you're dealing with a TCP-to-Serial connection, sending individual packets like that - one TCP connection, one packet, and closed - is probably fine. The Serial bridge probably might care less how many TCP connections are used.

Source Link
gowenfawr
  • 73.3k
  • 17
  • 166
  • 201
Loading