Created
June 16, 2020 07:40
-
-
Save Anon-Exploiter/5232869d84d01d0e90377410ef25f576 to your computer and use it in GitHub Desktop.
For testing the Firebase API keys found in Web Applications or in JavaScript Code --
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-app.js"></script> | |
<!-- If you enabled Analytics in your project, add the Firebase SDK for Analytics --> | |
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-analytics.js"></script> | |
<!-- Add Firebase products that you want to use --> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-auth.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-firestore.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-functions.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-messaging.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-storage.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-performance.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-database.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.15.0/firebase-remote-config.js"></script> | |
<!-- | |
Host the .html file on a server/VPS (don't try on localhost, sometimes DEVs allow localhost for their own servers) - If it works, that means there's no restriction and anyone can utilize the keys to query using the keys -- Open to corrections/improvements | |
--> | |
<script> | |
// Initialize Firebase | |
firebase.initializeApp({ | |
apiKey: "", | |
authDomain: "", | |
databaseURL: "", | |
projectId: "", | |
storageBucket: "", | |
messagingSenderId: "", | |
appId: "", | |
measurementId: "" | |
}); | |
console.log(firebase.analytics()); | |
console.log(firebase.auth()); | |
console.log(firebase.firestore()); | |
console.log(firebase.functions()); | |
console.log(firebase.messaging()); | |
console.log(firebase.storage()); | |
console.log(firebase.performance()); | |
console.log(firebase.database()); | |
console.log(firebase.remoteConfig()); | |
console.log(firebase.app().name); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not add firebase-database?