Jack Cyber-security graduate student interested in researching privacy and security issues.

Book Response Split By ;

Response split by ;

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
prepare("select name from users where email=?")
$stmt-bind_param('s',$_SESSION["admin"])
$stmt->execute()
$result =
$stmt->get_result()
$row = $result->fetch_assoc()
$user =
$row['name']
if($_GET["type"]=="users") { $stmt=$conn-
prepare("select name,email from users")
$stmt->execute()
$result
= $stmt->get_result()
$content = 'Users Data'
while($row=$result->fetch_assoc()) { $content = $content.''
}
$content = $content.'name'.$row["name"].'email'.$row["email"].''
$filename = rand(1,100000).'.html'
$file =
fopen('/var/www/html/admin/export/'.$filename,'w')

fwrite($file,$content)
fclose($file)
$pdf = rand(10,100000).'.pdf'

exec("/usr/local/bin/html-pdf
/var/www/html/admin/export/".$filename."
/var/www/html/admin/export/".$pdf)
sleep(2)
header("Content-
Description: File Transfer")
header("Content-Type: application/pdf")

header("Content-Disposition: attachment
filename=\"".
basename($pdf) ."\"")
readfile("/var/www/html/admin/export/".$pdf)

unlink("/var/www/html/admin/export/".$filename)

unlink("/var/www/html/admin/export/".$pdf)
exit()
}
elseif($_GET["type"]=="collections") { $stmt=$conn->prepare("select
name,author,link from collections")
$stmt->execute()
$result =
$stmt->get_result()
$content = ''
while($row=$result->fetch_assoc()) { $content = $content.''
}
$content = $content.''.$row["name"].' '.$row["author"].' '.$row["link"].''
$filename = rand(1,100000).'.html'
$file =
fopen('/var/www/html/admin/export/'.$filename,'w')

fwrite($file,$content)
fclose($file)
$pdf = rand(10,100000).'.pdf'

exec("/usr/local/bin/html-pdf
/var/www/html/admin/export/".$filename."
/var/www/html/admin/export/".$pdf)
sleep(2)
header("Content-
Description: File Transfer")
header("Content-Type: application/pdf")

header("Content-Disposition: attachment
filename=\"".
basename($pdf) ."\"")
readfile("/var/www/html/admin/export/".$pdf)

unlink("/var/www/html/admin/export/".$filename)

unlink("/var/www/html/admin/export/".$pdf)
exit()
} else { ?>