-
Notifications
You must be signed in to change notification settings - Fork 0
/
q7_1.txt
156 lines (132 loc) · 4.07 KB
/
q7_1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
HTTP/1.1 200 OK
Date: Tue, 12 Sep 2023 00:01:11 GMT
Server: Apache/2.4.6 (CentOS)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
<H3>Current Working Directory:</H3>
/compsci/webdocs/hindle1/web_docs
<H3>Command Line Arguments:</H3>
['/compsci/webdocs/hindle1/web_docs/1.py']
<H3>Form Contents:</H3>
<P>No form fields.
<DL>
</DL>
<H3>Shell Environment:</H3>
<DL>
<DT> CONTEXT_DOCUMENT_ROOT <DD> /compsci/webdocs/hindle1/web_docs
<DT> CONTEXT_PREFIX <DD> /~hindle1
<DT> DOCUMENT_ROOT <DD> /var/www/html
<DT> GATEWAY_INTERFACE <DD> CGI/1.1
<DT> HTTPS <DD> on
<DT> HTTP_ACCEPT <DD> */*
<DT> HTTP_HOST <DD> webdocs.cs.ualberta.ca
<DT> HTTP_USER_AGENT <DD> curl/8.0.1
<DT> PATH <DD> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
<DT> QUERY_STRING <DD>
<DT> REMOTE_ADDR <DD> 142.244.5.82
<DT> REMOTE_PORT <DD> 62944
<DT> REQUEST_METHOD <DD> GET
<DT> REQUEST_SCHEME <DD> https
<DT> REQUEST_URI <DD> /~hindle1/1.py
<DT> SCRIPT_FILENAME <DD> /compsci/webdocs/hindle1/web_docs/1.py
<DT> SCRIPT_NAME <DD> /~hindle1/1.py
<DT> SERVER_ADDR <DD> 129.128.243.190
<DT> SERVER_ADMIN <DD> [email protected]
<DT> SERVER_NAME <DD> webdocs.cs.ualberta.ca
<DT> SERVER_PORT <DD> 443
<DT> SERVER_PROTOCOL <DD> HTTP/1.1
<DT> SERVER_SIGNATURE <DD> <address>Apache/2.4.6 (CentOS) Server at webdocs.cs.ualberta.ca Port 443</address>
<DT> SERVER_SOFTWARE <DD> Apache/2.4.6 (CentOS)
<DT> SSL_TLS_SNI <DD> webdocs.cs.ualberta.ca
<DT> UNIQUE_ID <DD> ZP@qR@8vnAPHi9AN12EU-AAAAAk
</DL>
<H3>These environment variables could have been set:</H3>
<UL>
<LI>AUTH_TYPE
<LI>CONTENT_LENGTH
<LI>CONTENT_TYPE
<LI>DATE_GMT
<LI>DATE_LOCAL
<LI>DOCUMENT_NAME
<LI>DOCUMENT_ROOT
<LI>DOCUMENT_URI
<LI>GATEWAY_INTERFACE
<LI>LAST_MODIFIED
<LI>PATH
<LI>PATH_INFO
<LI>PATH_TRANSLATED
<LI>QUERY_STRING
<LI>REMOTE_ADDR
<LI>REMOTE_HOST
<LI>REMOTE_IDENT
<LI>REMOTE_USER
<LI>REQUEST_METHOD
<LI>SCRIPT_NAME
<LI>SERVER_NAME
<LI>SERVER_PORT
<LI>SERVER_PROTOCOL
<LI>SERVER_ROOT
<LI>SERVER_SOFTWARE
</UL>
In addition, HTTP headers sent by the server may be passed in the
environment as well. Here are some common variable names:
<UL>
<LI>HTTP_ACCEPT
<LI>HTTP_CONNECTION
<LI>HTTP_HOST
<LI>HTTP_PRAGMA
<LI>HTTP_REFERER
<LI>HTTP_USER_AGENT
</UL>
<H3>What follows is a test, not an actual exception:</H3>
<H3>Traceback (most recent call last):</H3>
<PRE> File "/usr/lib64/python2.7/cgi.py", line 904, in test
g()
File "/usr/lib64/python2.7/cgi.py", line 902, in g
f()
File "/usr/lib64/python2.7/cgi.py", line 900, in f
exec "testing print_exception() -- <I>italics?</I>"
File "<string>", line 1
testing print_exception() -- <I>italics?</I>
^
<B>SyntaxError: invalid syntax
</B></PRE>
<H1>Second try with a small maxlen...</H1>
<H3>Current Working Directory:</H3>
/compsci/webdocs/hindle1/web_docs
<H3>Command Line Arguments:</H3>
['/compsci/webdocs/hindle1/web_docs/1.py']
<H3>Form Contents:</H3>
<P>No form fields.
<DL>
</DL>
<H3>Shell Environment:</H3>
<DL>
<DT> CONTEXT_DOCUMENT_ROOT <DD> /compsci/webdocs/hindle1/web_docs
<DT> CONTEXT_PREFIX <DD> /~hindle1
<DT> DOCUMENT_ROOT <DD> /var/www/html
<DT> GATEWAY_INTERFACE <DD> CGI/1.1
<DT> HTTPS <DD> on
<DT> HTTP_ACCEPT <DD> */*
<DT> HTTP_HOST <DD> webdocs.cs.ualberta.ca
<DT> HTTP_USER_AGENT <DD> curl/8.0.1
<DT> PATH <DD> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
<DT> QUERY_STRING <DD>
<DT> REMOTE_ADDR <DD> 142.244.5.82
<DT> REMOTE_PORT <DD> 62944
<DT> REQUEST_METHOD <DD> GET
<DT> REQUEST_SCHEME <DD> https
<DT> REQUEST_URI <DD> /~hindle1/1.py
<DT> SCRIPT_FILENAME <DD> /compsci/webdocs/hindle1/web_docs/1.py
<DT> SCRIPT_NAME <DD> /~hindle1/1.py
<DT> SERVER_ADDR <DD> 129.128.243.190
<DT> SERVER_ADMIN <DD> [email protected]
<DT> SERVER_NAME <DD> webdocs.cs.ualberta.ca
<DT> SERVER_PORT <DD> 443
<DT> SERVER_PROTOCOL <DD> HTTP/1.1
<DT> SERVER_SIGNATURE <DD> <address>Apache/2.4.6 (CentOS) Server at webdocs.cs.ualberta.ca Port 443</address>
<DT> SERVER_SOFTWARE <DD> Apache/2.4.6 (CentOS)
<DT> SSL_TLS_SNI <DD> webdocs.cs.ualberta.ca
<DT> UNIQUE_ID <DD> ZP@qR@8vnAPHi9AN12EU-AAAAAk
</DL>