-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.php
106 lines (102 loc) · 3.17 KB
/
settings.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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" ><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" ><!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blue Botnet CPANEL</title>
<!-- Fogli di stile -->
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
<link href="css/stili-custom.css" rel="stylesheet" media="screen">
<!-- Modernizr -->
<script src="js/modernizr.custom.js"></script>
<style>
body {background-color:#C4D5E5;}
.tce {
margin-left: auto !important;
margin-right: auto !important;
width:520px !important;
max-width:520px !important;
}
</style>
<!-- respond.js per IE8 -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body bgcolor="#C4D5E5">
<br>
<div class="tce"><br><br>
<?php
if (!file_exists("phash")){
header("Location: register.php");
} else {
$filename = "phash";
$fp = fopen($filename, "r");
$content = fread($fp, filesize($filename));
fclose($fp);
$storedPassHash = $content;
$passHash = $_COOKIE['phash'];
if (md5("randomsalt".$passHash) != $storedPassHash){
header("Location: login.php");
} else {
$proxies = $_POST['proxies'];
$blogs = $_POST['blogs'];
$check = $_POST['check'];
if ($check == "ok"){
$fh = fopen("proxy", 'w+');
fwrite($fh, $proxies);
fclose($fh);
$fh = fopen("blog", 'w+');
fwrite($fh, $blogs);
fclose($fh);
echo '<div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert">×</button> Settings successfully changed! </div> ';
}
}
}
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Blue Botnet CPANEL</h3>
</div>
<div class="panel-body">
<form action="settings.php" method="post">
<ul class="nav nav-pills">
<li><a href="index.php">Attack Hub</a></li>
<li class="active"><a href="#">Settings</a></li>
<li><a href="onlinebots.php">Online Bots</a></li>
<li><a href="logout.php">Logout</a></li>
</ul> <br><br>
<div class="form-group">
<label for="ProxyList">Proxy List</label>
<textarea rows="10" class="form-control" placeholder="proxylist" type="text" name="proxies"><?php
$filename = "proxy";
$fp = fopen($filename, "r");
$content = fread($fp, filesize($filename));
fclose($fp);
echo $content;
?></textarea>
</div>
<div class="form-group">
<label for="Port">Blog List</label>
<textarea rows="10" class="form-control" placeholder="bloglist" type="text" name="blogs"><?php
$filename = "blog";
$fp = fopen($filename, "r");
$content = fread($fp, filesize($filename));
fclose($fp);
echo $content;
?></textarea>
</div>
<input type="hidden" name="check" value="ok"></input>
<button type="submit" class="btn btn-default">SAVE</button>
</div>
</div>
</div>
<br><br><br><br><br><br>
<!-- jQuery e plugin JavaScript -->
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>