-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopm.php
More file actions
executable file
·30 lines (30 loc) · 908 Bytes
/
opm.php
File metadata and controls
executable file
·30 lines (30 loc) · 908 Bytes
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
<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: http://www.google.com/ncr" );
} else {
echo 'Hello Opera Mini Server! Fuck GFW!';
}
} else {
echo 'cURL is not enabled.';
}
} else {
$curlInterface = curl_init();
$headers[] = 'Connection: Keep-Alive';
$headers[] = 'content-type: application/xml';
$headers[] = 'User-Agent: Java0';
curl_setopt_array($curlInterface, array(
CURLOPT_URL => 'http://mini5.opera-mini.net',
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => @file_get_contents('php://input'))
);
$result = curl_exec($curlInterface);
curl_close($curlInterface);
header('Content-Type: application/octet-stream');
header('Cache-Control: private, no-cache');
echo $result;
}
?>