We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa5ea9 commit 5940507Copy full SHA for 5940507
pcap2curl.py
@@ -5,7 +5,7 @@
5
6
7
if len(sys.argv) != 2:
8
- print "I need an input file. Usage ./pcap2curl.py inputfilename"
+ print ("I need an input file. Usage ./pcap2curl.py inputfilename")
9
exit()
10
11
infile = sys.argv[1]
@@ -40,4 +40,4 @@ def payload2curl(p):
40
payload=''
41
if p.haslayer(TCP) and p.haslayer(Raw) and p[TCP].dport == 80:
42
payload=p[Raw].load
43
- print payload2curl(payload)
+ print (payload2curl(payload))
0 commit comments