Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS Header with TREX Stateless #1092

Open
jkalaise opened this issue Jan 9, 2024 · 0 comments
Open

HTTPS Header with TREX Stateless #1092

jkalaise opened this issue Jan 9, 2024 · 0 comments

Comments

@jkalaise
Copy link

jkalaise commented Jan 9, 2024

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"

    return STLStream(packet = STLPktBuilder(pkt = base_pkt/pad,vm = vm),
                     mode = STLTXCont( pps=1 ),
                     isg=0.1)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant