-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
144 lines (142 loc) · 6.93 KB
/
index.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php require_once('function/common.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<script type="text/javascript" src="javascript.js"></script>
<title>PHPsb Utility</title>
</head>
<body>
<div id="gitforkme"><a href="https://github.com/plastboks/PHPsb-Utility" id="forkme"></a></div>
<div id="wrapper">
<div id="title"><h1>PHPsb Utility</h1></div>
<div class="block">
<span class="description password">Password</span>
<div id="gen_password">
<form method="post" action="action/generate.password.php">
<div class="genpass-holder">
<div class="genpass-line"><span>Length for each password (max 32): </span> <input class="jq_change"name="length" size="2" value="8" /></div>
<div class="genpass-line"><span>Minimum lowercase: </span><input class="jq_change_input" name="lowercase" size="2" value="2" /></div>
<div class="genpass-line"><span>Minimum uppercase: </span><input class="jq_change_input" name="uppercase" size="2" value="2" /></div>
<div class="genpass-line"><span>Minimum numbers: </span><input class="jq_change_input" name="numbers" size="2" value="2" /></div>
<div class="genpass-line"><span>Minimum symbols: </span><input class="jq_change_input_last" name="symbols" size="2" value="2" /></div>
<div class="genpass-line"><span>No similar characters (1/l, 0/O, etc): </span> <input type="checkbox" name="nosimilar" checked="checked" /></div>
<div class="genpass-line"><span>In given order: <input type="checkbox" name="givenorder" /></span></div>
</div>
<p><input class="genpassword genbutton" type="submit" name="submit" value="Generate" /></p>
</form>
<div class="jq_genpassword_result"></div>
</div>
</div>
<div class="block">
<span class="description phrase">Phrase</span>
<div id="gen_passphrase">
<form method="post" action="action/generate.passphrase.php">
<div class="genpass-holder">
<div class="genpass-line">
<span>Language: </span>
<select name="lang">
<?php foreach (wordLists() as $list) { ?>
<option><?php echo $list; ?></option>
<?php } ?>
</select>
</div>
<div class="genpass-line">
<span>Number of words (1-5): </span>
<select name="i">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected="selected">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div class="genpass-line">
<span>Extra digits: </span>
<select name="digits">
<option value="0">0</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div class="genpass-line"><span>Capitalize first digits: </span><input name="capitalize" type="checkbox" checked="checked" /></div>
<div class="genpass-line"><span>Leetify sentence: </span><input name="hax" type="checkbox" /></div>
<div class="genpass-line"><span>Add spaces: </span><input name="spaces" type="checkbox" /></div>
</div>
<p><input class="genpassphrase genbutton" type="submit" name="submit" value="Generate" /></p>
</form>
<div class="jq_genpassphrase_result"></div>
</div>
</div>
<div class="block">
<span class="description sentence">Sentence</span>
<div id="gen_sentence">
<form method="post" action="action/generate.sentence.php">
<div class="genpass-holder">
<div class="genpass-line">
<span>Number of words (3-5): </span>
<select name="i">
<option value="3">3</option>
<option value="4" selected="selected">4</option>
<option value="5">5</option>
</select>
</div>
<div class="genpass-line"><span>Capitalize first digit: </span><input name="capitalize" type="checkbox" checked="checked" /></div>
<div class="genpass-line"><span>No spaces: </span><input name="space" type="checkbox" /></div>
<div class="genpass-line"><span>Leetify sentence: </span><input name="hax" type="checkbox" /></div>
</div>
<p><input class="gensentence genbutton" type="submit" name="submit" value="Generate" /></p>
</form>
<div class="jq_gensentence_result"></div>
</div>
</div>
<div class="block">
<span class="description hash">Hash</span>
<div id="gen_hash">
<form method="post" action="action/generate.hash.php">
<div class="genpass-holder">
<div class="genpass-line"><span>Input (max 32): </span><input name="userinput" size="32" value="" /></div>
<div class="genpass-line"><span>Method: </span>
<select name="cryptmethod">
<?php foreach (cryptMethods() as $method) { ?>
<option><?php echo $method ?></option>
<?php } ?>
</select>
</div>
</div>
<p><input class="genhash genbutton" type="submit" name="submit" value="Generate" /></p>
</form>
<div class="jq_genhash_result"></div>
</div>
</div>
<div class="block">
<span class="description base64">base64</span>
<div id="genbase64">
<form method="post" action="action/generate.base64.php">
<div class="genpass-holder">
<div class="genpass-line"><span>Input: </span><textarea name="input" rows="16" cols="45"></textarea></div>
<div class="genpass-line base64method"><span>Method: </span>
<select name="method">
<option value="encode">Encode</option>
<option value="decode">Decode</option>
</select>
</div>
</div>
<p><input class="genbase64 genbutton" type="submit" name="submit" value="Generate" /></p>
</form>
<div class="jq_genbase64_result"></div>
</div>
</div>
<div id="footer">
<p>This is the [P]assword, [H]ash, [P]assprhase, [s]entence, [b]ase64 Utility</p>
<p>All the generated passwords on this site is not stored in any way.</p>
<p>All passwords is generated trough randomize functions.</p>
<p>Check sourcecode at <a href="https://github.com/plastboks/PHPsb-Utility">github.com</a></p>
</div>
</div>
</body>
</html>