Replies: 2 comments
-
@jkalaise this is a scapy issue. I would ask it in scapy forum. from TRex prospective the builder is just creating a byte stream that will be sent using STL. I think that for the Hello packet it is ok but for the full TLS protocol you won't be able to use scapy |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for getting back Hanoh. Kindly update back incase there is any
resolution from scapy team.
Regards,
Jasmine.K
Those who wait on the Lord shall renew their strength; they shall mount up
with wings like eagles. —Isaiah 40:31
…On Thu, Jan 25, 2024 at 2:08 PM Hanoh Haim ***@***.***> wrote:
@jkalaise <https://github.com/jkalaise> this is a scapy issue. I would
ask it in scapy forum. from TRex prospective the builder is just creating a
byte stream that will be sent using STL. I think that for the Hello packet
it is ok but for the full TLS protocol you won't be able to use scapy
—
Reply to this email directly, view it on GitHub
<#1093 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4FV3IAMEXN6C46N5ZFQNDYQIKY3AVCNFSM6AAAAABBSQ27J2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENBSGI3TG>
.
You are receiving this because you were mentioned.Message ID:
<cisco-system-traffic-generator/trex-core/repo-discussions/1093/comments/8242273
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Team,
I am able to generate TCP/HTTP packet on stateless using below way,
base_pkt = Ether(dst="18:5a:58:4c:75:62")/Dot1Q(vlan = 2509)/IP(src="97.0.0.1",dst="94.0.0.1")/TCP()/"GET /3384 HTTP/1.1\r\nHost: www.google.com\r\nConnection: Keep-Alive\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)\r\nAccept: /\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate, compress\r\n\r\n"
Now when I am trying to do the similar one for HTTPS, I am not able to construct with STLPktBuilder.
p = TLSRecord() / TLSHandshake() / TLSClientHello(cipher_suites=[TLSCipherSuite.RSA_WITH_AES_128_CBC_SHA])
stream = STLPktBuilder(pkt = p)
File "stl/610_2_https.py", line 43, in get_streams
return [ self.create_stream() ]
File "stl/610_2_https.py", line 17, in create_stream
base_pkt = Ether(dst="8C:47:BE:8C:56:95")/Dot1Q(vlan = 2506)/IP(src="94.0.0.1",dst="97.0.0.1")/TCP()/TLSClientHello(cipher_suites=[TLSCipherSuite.RSA_WITH_AES_128_CBC_SHA])
NameError: name 'TLSClientHello' is not defined
Could you please me on how to achieve this?
Regards,
Jasmine.K
Beta Was this translation helpful? Give feedback.
All reactions