-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
185 lines (159 loc) · 6.49 KB
/
index.html
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE HTML>
<html>
<head>
<title>Best Username and Password Generator by Tanweer Ashif</title>
<link rel="shortcut icon" type="image/x-icon" href="images/generator.png" />
<style type="text/css">
.p1,.p2,.p3,.p4{border: 1px solid #00aeff; border-radius: 4px 4px 4px 4px; background-color: #f2f2f2;font-family:verdana, Geneva, sans-serif;font-size:13px;padding:8px;margin-top:3%;width:auto;}
.button{
padding: 1px 85px;
font-size: 24px;
text-align: center;
cursor: pointer;
outline: none;
color: #fff;
background-color: #4CAF50;
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
}
.button:hover {background-color: #3e8e41}
.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
#inc1,#inc2{
padding: 0px 10px;
font-size: 18px;
box-shadow: 0 5px #999;
margin-bottom: 4px;F
}
#dec1,#dec2{
padding: 0px 10px;
font-size: 18px;
box-shadow: 0 5px #999;
margin-bottom: 4px;
}
</style>
<script src="js/clipboard.js"></script>
<script type="text/javascript">
function generate_password3(){
var password_characters='0123456789abcde3fgh0ijklmno1pq5rstuvw6xyz';
var password_length = document.getElementById("txtPasswordLength");
if(isNaN(password_length.value) || parseInt(password_length.value)<=0 || (password_length.value.replace(/\s+$/,"")=="")){
alert("Please enter a valid length");
password_length.select();
password_length.focus();
return false;
}
var pwdLen=parseInt(password_length.value);
var password='';
var len=0;
for(var i=0;i<pwdLen;i++){
password+=password_characters.charAt(Math.floor(Math.random()*password_characters.length))
}
document.getElementById("password2").innerHTML=password;
}
function generate_password4(){
var password_characters='abcdefghijklmnopqrstuvwxyz`~!@#$%^&*()-_=+[]{};:\|<>/?"ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678901234567890';
var password_length = document.getElementById("txtPasswordLength2");
if(isNaN(password_length.value) || parseInt(password_length.value)<=0 || (password_length.value.replace(/\s+$/,"")=="")){
alert("Please enter a valid length");
password_length.select();
password_length.focus();
return false;
}
var pwdLen=parseInt(password_length.value);
var password='';
var len=0;
for(var i=0;i<pwdLen;i++){
password+=password_characters.charAt(Math.floor(Math.random()*password_characters.length))
}
document.getElementById("password3").innerHTML=password;
}
function incfun1()
{
var value=parseInt(document.getElementById('txtPasswordLength').value);
value = isNaN(value) ? 0 : value;
value+=10;
document.getElementById('txtPasswordLength').value = value;
}
function decfun1()
{
var value=parseInt(document.getElementById('txtPasswordLength').value);
value = isNaN(value) ? 0 : value;
value-=10;
document.getElementById('txtPasswordLength').value = value;
}
function incfun2()
{
var value=parseInt(document.getElementById('txtPasswordLength2').value);
value = isNaN(value) ? 0 : value;
value+=10;
document.getElementById('txtPasswordLength2').value = value;
}
function decfun2()
{
var value=parseInt(document.getElementById('txtPasswordLength2').value);
value = isNaN(value) ? 0 : value;
value-=10;
document.getElementById('txtPasswordLength2').value = value;
}
</script>
</head>
<body>
<center>
<h2 style="align:center; color: white; background-color: #009900">Username and Password Generator designed by Tanweer Ashif @<a style="text-decoration: none;color:#00aeff" href="https://github.com/hacksploiter" target="_blank">github.com/HacksPloiter</a></h2></center>
<div class="p1" id="generate_random_passwords_3" name="generate_random_passwords_3" action="#" method="post">
<center>
<p>
<span>Characters :</span>
<span style="white-space:pre";> Alphanumeric</span>
</p>
<p>
<span style="white-space:pre";>Length : </span>
<span> <input class="button" type="button" id="dec1" onclick="decfun1()" value="-10"></span>
<span><input name="txtPasswordLength" type="number" id="txtPasswordLength" value="10" size="5"></span>
<span> <input class="button" type="button" id="inc1" onclick="incfun1()" value="+10"></span>
</p>
<p>
<span>Username :</span>
<span style="white-space:pre;"> <textarea style="margin-bottom: -5px" rows="1" cols="50" id="password2" class="pwd"> </textarea></span>
</p>
<p>
<span><input name="btnGeneratePassword3" type="button" class="button" id="btnGeneratePassword3" value="Create Username" onClick="javascript:generate_password3();"></span>
<span><button class="button" type="button" data-clipboard-target="#password2">Copy Username</button></span>
</p>
</center>
</div>
<script>new Clipboard("button")</script>
<center>
<div class="p2" id="generate_random_passwords_4" name="generate_random_passwords_3" action="#" method="post">
<p>
<span>Characters :</span>
<span style="white-space:pre";> Alphanumeric and ASCII</span>
</p>
<p>
<span style="white-space:pre";>Length : </span>
<span> <input class="button" type="button" id="dec2" onclick="decfun2()" value="-10"></span>
<span><input name="txtPasswordLength" type="number" id="txtPasswordLength2" value="30" size="5"></span>
<span> <input class="button" type="button" id="inc2" onclick="incfun2()" value="+10"></span>
</p>
<p>
<span style="white-space:pre";>Password : </span>
<span><textarea style="margin-bottom: -5px" rows="1" cols="50" id="password3" class="pwd"> </textarea></span>
</p>
<p>
<span><input name="btnGeneratePassword3" type="button" class="button" id="btnGeneratePassword4" value="Create Password" onClick="javascript:generate_password4();"></span>
<span><button class="button" type="button" data-clipboard-target="#password3">Copy Password</button></span>
</p>
</div>
</center>
<script>new Clipboard("button")</script>
<h2 style="text-align: center; color: #006680">Enjoy</h2>
<h2 style="text-align: center; color: #006680">Designed and Developed by Tanweer Ashif @<a style="text-decoration: none;color:#003d4d" href="https://github.com/hacksploiter" target="_blank">github.com/HacksPloiter</a></h2>
<div style="text-align: center; color: #006680;font-size:20px">Visit<a style="text-decoration: none;color:#003d4d" href="https://github.com/hacksploiter" target="_blank"> github.com/HacksPloiter</a></div>
<hr>
</body>
</html>