first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
26
ffmpeg/CVE-2016-1897/www/index.php
Normal file
26
ffmpeg/CVE-2016-1897/www/index.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
error_reporting(-1);
|
||||
ini_set('display_errors', 1);
|
||||
if(!empty($_FILES)) {
|
||||
$filename = escapeshellarg($_FILES['file']['tmp_name']);
|
||||
$newname = './' . uniqid() . '.mp4';
|
||||
shell_exec("timeout -k 2s 10s ffmpeg -i $filename $newname");
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Video Player</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php if(!empty($_FILES)): ?>
|
||||
<div>
|
||||
<video src="<?=$newname?>" controls="controls" width="640" height="480"></video>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="file" name="file">
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user