-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDLPW.php
25 lines (23 loc) · 971 Bytes
/
DLPW.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
<?php
include 'includes/functions.php';
include_once 'includes/checks.php';
if(isset($_GET['getPasswords'])){
$file = htmlspecialchars($_GET['getPasswords']) . '/passwords.txt';
$file1 = htmlspecialchars($_GET['getPasswords']) . '/decrypted.txt';
$folder = htmlspecialchars($_GET['getPasswords']);
if(file_exists($file)){
$decrypt=file_get_contents("$file");
$decrypt=str_replace($decrypt, decrypt($decrypt), $decrypt);
file_put_contents("$file1", $decrypt);
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($file1));
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file1));
readfile($file1);
unlink($file1);
die();
}
}
?>