2007-12-05 19:08:56 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
2008-09-30 06:44:04 +08:00
|
|
|
HTTP proxy
|
2007-12-05 19:08:56 +08:00
|
|
|
HTTP proxy NTLM auth
|
2022-05-20 22:24:01 +08:00
|
|
|
NTLM
|
2007-12-05 19:08:56 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
2008-09-30 06:44:04 +08:00
|
|
|
|
2007-12-05 19:08:56 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 407 Authorization Required swsclose
|
|
|
|
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
|
|
|
Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
|
|
|
Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
|
|
|
Proxy-Authenticate: NTLM
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
This is not the real page
|
|
|
|
</data>
|
|
|
|
|
|
|
|
# this is returned first since we get no proxy-auth
|
|
|
|
<data1001>
|
|
|
|
HTTP/1.1 407 Authorization Required to proxy me my dear
|
2018-12-28 22:04:53 +08:00
|
|
|
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
2007-12-05 19:08:56 +08:00
|
|
|
Content-Length: 34
|
|
|
|
|
|
|
|
Hey you, authenticate or go away!
|
|
|
|
</data1001>
|
|
|
|
|
|
|
|
# This is supposed to be returned when the server gets the second
|
|
|
|
# Authorization: NTLM line passed-in from the client
|
|
|
|
<data1002>
|
|
|
|
HTTP/1.1 200 Things are fine in proxy land swsclose
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 42
|
|
|
|
|
|
|
|
Contents of that page you requested, sir.
|
|
|
|
</data1002>
|
|
|
|
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 407 Authorization Required swsclose
|
|
|
|
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
|
|
|
Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
|
|
|
Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
|
|
|
Proxy-Authenticate: NTLM
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
HTTP/1.1 407 Authorization Required to proxy me my dear
|
2018-12-28 22:04:53 +08:00
|
|
|
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
2007-12-05 19:08:56 +08:00
|
|
|
Content-Length: 34
|
|
|
|
|
|
|
|
HTTP/1.1 200 Things are fine in proxy land swsclose
|
|
|
|
Server: Microsoft-IIS/5.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 42
|
|
|
|
|
|
|
|
Contents of that page you requested, sir.
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool to use
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2007-12-05 19:08:56 +08:00
|
|
|
</tool>
|
|
|
|
<features>
|
|
|
|
NTLM
|
2019-12-30 04:23:25 +08:00
|
|
|
SSL
|
2013-12-29 04:22:22 +08:00
|
|
|
!SSPI
|
2019-10-15 04:29:19 +08:00
|
|
|
proxy
|
2007-12-05 19:08:56 +08:00
|
|
|
</features>
|
2022-05-20 22:24:01 +08:00
|
|
|
<name>
|
2007-12-05 19:08:56 +08:00
|
|
|
HTTP proxy auth NTLM with POST data from CURLOPT_POSTFIELDS
|
2022-05-20 22:24:01 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT testuser:testpass
|
2007-12-05 19:08:56 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
2011-03-10 06:04:38 +08:00
|
|
|
Host: test.remote.example.com
|
2007-12-05 19:08:56 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2007-12-05 19:08:56 +08:00
|
|
|
Content-Length: 36
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
this is the blurb we want to upload
|
2021-03-13 00:38:26 +08:00
|
|
|
POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
2015-03-12 07:50:46 +08:00
|
|
|
Host: test.remote.example.com
|
2007-12-05 19:08:56 +08:00
|
|
|
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2007-12-05 19:08:56 +08:00
|
|
|
Content-Length: 0
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
2015-03-12 07:50:46 +08:00
|
|
|
Host: test.remote.example.com
|
2022-05-23 05:26:24 +08:00
|
|
|
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
|
2007-12-05 19:08:56 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2007-12-05 19:08:56 +08:00
|
|
|
Content-Length: 36
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
this is the blurb we want to upload
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|