Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Variable from teststand to scapy

$
0
0

Need to pass variable from Teststand to Scapy python script and build the packet in one step. http: Ether()/IP(dst=server)/TCP(dport=80)/"GET /index.html HTTP/1.0"

 

#!/usr/bin/env python
import sys

Ether()/IP(dst=argv[0])/TCP(dport=argv[1])/argv[2]"

using sys.argv[n], is correct?

Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>