DevCEDTeam / CED

0 stars 0 forks source link

Token #76

Open DevCEDTeam opened 1 year ago

DevCEDTeam commented 1 year ago

Firebase | Private Key | Token

root@35-236-118-198:/var/cpanel/ssl/token

Firebase Private Key

{ "type": "service_account", "project_id": "gmail-bulk-sending-389112", "private_key_id": "0bdb258c111525f912a52e099a0fc90863b5c05c", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCt0HaRmloxu0HK\nHkvgY4HxiBgocpwW04s8meM935KOcLHsv/wrc89uTNiqCyBirWEJ9QUSrdcBeo40\nQZ4u9jrhDdBnB/zCoIDL1rYer41jXA/k/yjj4lwtSKAZECEo2KiFYtlhtVZGNU0q\n8BVJciQjC59ECQBjvySTbvBw0iqYukPulrovIbKFX6ohojeo0Zegpofqf3Zv2gEo\nqepQ0TKi+AQ4pr3f2523DTNz25HwjH9Ul36Pld2bb41PbRks12nSSda8i/j/gPuJ\nuk2cweBiJ5dT3eptibXR83LXbJrWh/XVHW2dQEm6wYcphPeWZnCVwNN7tOxts7rF\nRZJy56ElAgMBAAECggEAVKRoIRab5ozsiEtBoveCP4cJUKUjSuBgdTXxWd+mhHPv\nyT1ixRxD/tAwUHpTnooU797gRgze34r5dgwgRnlFCfSKsKnMllDH97vK+119Ck46\nNUdmd7bzMWAlCp92rmf3hOEyv+ipJ05skkTQ8O/DFkfiGqURigF6g8tqDl7iPHXn\nCYv2dda58rcVxNzbMNWQrrYrwFru2nLkCF3L750g+63UVezS54qT/2iZeVOJD4iw\nrPdvC8Qy0d9p0vMVPjwDbNNUTo2v1s380cS+YQMsiOnZ4AHQqGWsDZhTWp/HIaVi\nnjn0ltiOIgGVnoe11oMeJlGbmh7f1BjXZM+yZXnjDwKBgQDVfk4ouR5Tl/lY/NW5\nzUjAuTjlOYU+8KwwZjt2Dzdc8us98KijFh/aYEiKAWOOUAaSGlASlp3Tuw/y4J4P\nKink8O1hTLY8hhSvQrKDM75+84fcrVKJNaWctXZ85whS/zdqDL9ZGt24wpuQEsmk\nrCTqQ4cb4QFFMhqrzM35VGvUswKBgQDQa7owDu6oPFWVmmNSe/Dp1RajrYCtqlxC\nfDy+LbDynEplIrhAWXYsPD2U+RiwOUDTCVLEmo8GepNaGRm5oRAc++fzTE7bURi/\n7rOxWmv6zRv7l90b2vTAQHDv3gFrHrSLCCMl6+LAwatDrCkM1Hxz7bX5TVCwchYL\nZExu4X6OxwKBgFf8CrgLuqzWyANdh7NgH+iVLRaDAx/yTfRQXZcFJFrhHgPT55v2\npT/5SEvf0Ki44ExcHb3bZsX4pNUCrwEu7j8U76+Wzs/YrjOgeDNMIujs8oQGxioX\n+t2/h0poaGzUE4FYKY/OW6wmP7g7lfCQpVIKbGcX7s8WnBlLeWOU4C+zAoGAEykk\nN9DXnf3V/GfyI54jWsvtReTohI655p7XUsCOmO9HY57ag4f19kEfhDeWTnUlAYHE\n6zAuX/Ea5NiT5d3pxlBeVZ65TS5acSK3wGFItgjvPqUKfcoWYCpMd7DYPonXHUUF\nPjI+aWwkm5cTOwu52UqMRTwXY/FJF4kEAdmXMfcCgYEAsif6vB48sqIWK6JoOOuu\n42YUeWIKGUXP/h1enw4iyjh0LhhRDOGOjFGiBpveLeD4CZnYRK65faGPUuXUUpeo\nFM3Kvoyet0dcv+mTzQQ8BRuwfxDuOaWJINwgV7idWt3aBGY9X0vqAuDSSrY1DSQi\nCYi33+usZEUR+gqJcfHsF4k=\n-----END PRIVATE KEY-----\n", "client_email": "firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com", "client_id": "109073859934286992226", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-bpwq7%40gmail-bulk-sending-389112.iam.gserviceaccount.com", "universe_domain": "googleapis.com" }

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Token Private Key

!/bin/bash

OAuth 2.0 Client Credentials

{ "type": "service_account", "project_id": "gmail-bulk-sending-389112", "private_key_id": "0bdb258c111525f912a52e099a0fc90863b5c05c", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCt0HaRmloxu0HK\nHkvgY4HxiBgocpwW04s8meM935KOcLHsv/wrc89uTNiqCyBirWEJ9QUSrdcBeo40\nQZ4u9jrhDdBnB/zCoIDL1rYer41jXA/k/yjj4lwtSKAZECEo2KiFYtlhtVZGNU0q\n8BVJciQjC59ECQBjvySTbvBw0iqYukPulrovIbKFX6ohojeo0Zegpofqf3Zv2gEo\nqepQ0TKi+AQ4pr3f2523DTNz25HwjH9Ul36Pld2bb41PbRks12nSSda8i/j/gPuJ\nuk2cweBiJ5dT3eptibXR83LXbJrWh/XVHW2dQEm6wYcphPeWZnCVwNN7tOxts7rF\nRZJy56ElAgMBAAECggEAVKRoIRab5ozsiEtBoveCP4cJUKUjSuBgdTXxWd+mhHPv\nyT1ixRxD/tAwUHpTnooU797gRgze34r5dgwgRnlFCfSKsKnMllDH97vK+119Ck46\nNUdmd7bzMWAlCp92rmf3hOEyv+ipJ05skkTQ8O/DFkfiGqURigF6g8tqDl7iPHXn\nCYv2dda58rcVxNzbMNWQrrYrwFru2nLkCF3L750g+63UVezS54qT/2iZeVOJD4iw\nrPdvC8Qy0d9p0vMVPjwDbNNUTo2v1s380cS+YQMsiOnZ4AHQqGWsDZhTWp/HIaVi\nnjn0ltiOIgGVnoe11oMeJlGbmh7f1BjXZM+yZXnjDwKBgQDVfk4ouR5Tl/lY/NW5\nzUjAuTjlOYU+8KwwZjt2Dzdc8us98KijFh/aYEiKAWOOUAaSGlASlp3Tuw/y4J4P\nKink8O1hTLY8hhSvQrKDM75+84fcrVKJNaWctXZ85whS/zdqDL9ZGt24wpuQEsmk\nrCTqQ4cb4QFFMhqrzM35VGvUswKBgQDQa7owDu6oPFWVmmNSe/Dp1RajrYCtqlxC\nfDy+LbDynEplIrhAWXYsPD2U+RiwOUDTCVLEmo8GepNaGRm5oRAc++fzTE7bURi/\n7rOxWmv6zRv7l90b2vTAQHDv3gFrHrSLCCMl6+LAwatDrCkM1Hxz7bX5TVCwchYL\nZExu4X6OxwKBgFf8CrgLuqzWyANdh7NgH+iVLRaDAx/yTfRQXZcFJFrhHgPT55v2\npT/5SEvf0Ki44ExcHb3bZsX4pNUCrwEu7j8U76+Wzs/YrjOgeDNMIujs8oQGxioX\n+t2/h0poaGzUE4FYKY/OW6wmP7g7lfCQpVIKbGcX7s8WnBlLeWOU4C+zAoGAEykk\nN9DXnf3V/GfyI54jWsvtReTohI655p7XUsCOmO9HY57ag4f19kEfhDeWTnUlAYHE\n6zAuX/Ea5NiT5d3pxlBeVZ65TS5acSK3wGFItgjvPqUKfcoWYCpMd7DYPonXHUUF\nPjI+aWwkm5cTOwu52UqMRTwXY/FJF4kEAdmXMfcCgYEAsif6vB48sqIWK6JoOOuu\n42YUeWIKGUXP/h1enw4iyjh0LhhRDOGOjFGiBpveLeD4CZnYRK65faGPUuXUUpeo\nFM3Kvoyet0dcv+mTzQQ8BRuwfxDuOaWJINwgV7idWt3aBGY9X0vqAuDSSrY1DSQi\nCYi33+usZEUR+gqJcfHsF4k=\n-----END PRIVATE KEY-----\n", "client_email": "firebase-adminsdk-bpwq7@gmail-bulk-sending-389112.iam.gserviceaccount.com", "client_id": "109073859934286992226", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-bpwq7%40gmail-bulk-sending-389112.iam.gserviceaccount.com", "universe_domain": "googleapis.com" }

Use curl to get the access token

response=$(curl -sS -X POST "https://oauth2.googleapis.com/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=$client_id&client_secret=$client_secret")

Extract the access token from the response

access_token=$(echo "$response" | jq -r '.access_token')

Output the access token to stdout

echo "Access token: $access_token"