xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | # NOTE: this test case is a duplicate of 547 but the tool is built to use the |
| 3 | # multi interface instead of easy, but that shouldn't be noticeable at all in |
| 4 | # this file! |
| 5 | <info> |
| 6 | <keywords> |
| 7 | HTTP |
| 8 | HTTP POST |
| 9 | POST callback |
| 10 | HTTP proxy |
| 11 | HTTP proxy NTLM auth |
| 12 | multi |
| 13 | NTLM |
| 14 | </keywords> |
| 15 | </info> |
| 16 | |
| 17 | # Server-side |
| 18 | <reply> |
| 19 | |
| 20 | <data> |
| 21 | HTTP/1.1 407 Authorization Required swsclose
|
| 22 | Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
| 23 | Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
| 24 | Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
| 25 | Proxy-Authenticate: NTLM
|
| 26 | Content-Type: text/html; charset=iso-8859-1
|
| 27 | Connection: close
|
| 28 |
|
| 29 | This is not the real page |
| 30 | </data> |
| 31 | |
| 32 | # this is returned first since we get no proxy-auth |
| 33 | <data1001> |
| 34 | HTTP/1.1 407 Authorization Required to proxy me my dear
|
| 35 | Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 36 | Content-Length: 34
|
| 37 |
|
| 38 | Hey you, authenticate or go away! |
| 39 | </data1001> |
| 40 | |
| 41 | # This is supposed to be returned when the server gets the second |
| 42 | # Authorization: NTLM line passed-in from the client |
| 43 | <data1002> |
| 44 | HTTP/1.1 200 Things are fine in proxy land swsclose
|
| 45 | Server: Microsoft-IIS/5.0
|
| 46 | Content-Type: text/html; charset=iso-8859-1
|
| 47 | Content-Length: 42
|
| 48 |
|
| 49 | Contents of that page you requested, sir. |
| 50 | </data1002> |
| 51 | |
| 52 | <datacheck> |
| 53 | HTTP/1.1 407 Authorization Required swsclose
|
| 54 | Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
| 55 | Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
| 56 | Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
| 57 | Proxy-Authenticate: NTLM
|
| 58 | Content-Type: text/html; charset=iso-8859-1
|
| 59 | Connection: close
|
| 60 |
|
| 61 | HTTP/1.1 407 Authorization Required to proxy me my dear
|
| 62 | Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 63 | Content-Length: 34
|
| 64 |
|
| 65 | HTTP/1.1 200 Things are fine in proxy land swsclose
|
| 66 | Server: Microsoft-IIS/5.0
|
| 67 | Content-Type: text/html; charset=iso-8859-1
|
| 68 | Content-Length: 42
|
| 69 |
|
| 70 | Contents of that page you requested, sir. |
| 71 | </datacheck> |
| 72 | </reply> |
| 73 | |
| 74 | # Client-side |
| 75 | <client> |
| 76 | <server> |
| 77 | http |
| 78 | </server> |
| 79 | # tool to use |
| 80 | <tool> |
| 81 | lib%TESTNUMBER |
| 82 | </tool> |
| 83 | <features> |
| 84 | NTLM |
| 85 | SSL |
| 86 | !SSPI |
| 87 | proxy |
| 88 | </features> |
| 89 | <name> |
| 90 | HTTP proxy auth NTLM with POST data from read callback multi-if |
| 91 | </name> |
| 92 | <command> |
| 93 | http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT testuser:testpass |
| 94 | </command> |
| 95 | </client> |
| 96 | |
| 97 | # Verify data after the test has been "shot" |
| 98 | <verify> |
| 99 | <protocol> |
| 100 | POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
| 101 | Host: test.remote.example.com
|
| 102 | Accept: */*
|
| 103 | Proxy-Connection: Keep-Alive
|
| 104 | Content-Length: 36
|
| 105 | Content-Type: application/x-www-form-urlencoded
|
| 106 |
|
| 107 | this is the blurb we want to upload |
| 108 | POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
| 109 | Host: test.remote.example.com
|
| 110 | Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 111 | Accept: */*
|
| 112 | Proxy-Connection: Keep-Alive
|
| 113 | Content-Length: 0
|
| 114 | Content-Type: application/x-www-form-urlencoded
|
| 115 |
|
| 116 | POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
|
| 117 | Host: test.remote.example.com
|
| 118 | Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
|
| 119 | Accept: */*
|
| 120 | Proxy-Connection: Keep-Alive
|
| 121 | Content-Length: 36
|
| 122 | Content-Type: application/x-www-form-urlencoded
|
| 123 |
|
| 124 | this is the blurb we want to upload |
| 125 | </protocol> |
| 126 | </verify> |
| 127 | </testcase> |