Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doubt about Service_Account #185

Open
cronopsxploit opened this issue Feb 2, 2021 · 4 comments
Open

doubt about Service_Account #185

cronopsxploit opened this issue Feb 2, 2021 · 4 comments

Comments

@cronopsxploit
Copy link

congratulations, wonderful script,

now I can make it work via service cout, I want to know how I can put more than one SA at a time, to "add" the daily limit.
ex.
[
{

"private_key": ["----- BEGIN PRIVATE KEY ----- \ nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDvhXN2mnz2hE2 \ n ----- END PRIVATE KEY ----- \ n"],
"client_email": ["mf5.iam.gserviceaccount.com"],
"token_uri": ["https://oauth2.googleapis.com/token"]
},
{
"private_key": ["----- BEGIN PRIVATE KEY ----- \ nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDvhXN2mnz2hE2 \ n ----- END PRIVATE KEY ----- \ n"],
"client_email": ["mf5.iam.gserviceaccount.com"],
"token_uri": ["https://oauth2.googleapis.com/token"]
}
]
or how to activate the cloudflare deployment scripts on the [email protected] account
could also add data about folders
date, time and size?

@cronopsxploit cronopsxploit changed the title duvida sobre Service_Account doubt about Service_Account Feb 2, 2021
@cronopsxploit
Copy link
Author

when I can do the correct implementation of this message

"TypeError: Cannot read property 'trim' of undefined\n at getDERfromPEM (worker.js:2346:24)\n at getToken (worker.js:2439:51)\n at getTokenFromGCPServiceAccount (worker.js:2485:12)\n at GoogleDrive.initializeClient (worker.js:2521:32)\n at GoogleDrive.listFolder (worker.js:2603:18)\n at GoogleDrive.listFolderByPath (worker.js:2641:19)\n at async handleRequest (worker.js:2926:11)"

follow the code. I decrease private keys just to check how it is being declared in the cloudflare

self.props = {
	title: 'XXXXXXXXX',
	default_root_id: '1zxdRzTPrcWtt3d4l3Xdxxwxddfi6M_lItfxu1zi7y',
	client_id: '395627386498-0jv2vuseah331wtdastwasj3f55sb4af5tp.apps.googleusercontent.com',
	client_secret: '_sawfXQKasd7lFfjErdawrtrhoyr81iOS',
	refresh_token: '',
	service_account: true,
	service_account_json: [{

"private_key": "-----BEGIN PRIVATE KEY-----\t4PYLhI+YFzL1MIagXVUwWquUDNKR\nBcLtW8GrQ3RIIrYd4xA69nWs1X5k5rTDz21muu0x1TWrvM2gRg7+202n5/6TNyJ+\nF22GmQqs8KYFWR8Xlb1ajXQH\n-----END PRIVATE KEY-----\n",
"client_email": "mfc-jp8u4tanpkbcz116-5.iam.gserviceaccount.com",
"token_uri": "https://oauth2.googleapis.com/token"
},
{
"private_key": "-----BEGIN PRIVATE KEY-----\nHvcw7sD//AamLMgelI03tvB8+vYLuQEdN0CgYEA9IIiwBpN5Ee9NiBHUq2u\nB/8NRPjjagwMNnoGvGaSNz3BOsqqbwpMWxDFFCQRjODzW3eipFaLulhHSkQwjC79\njiDxuU66fdmSoZB4qesi59yad8gvb0vB19MGdvH8lCrK6G03MxVxz5yk7JeDhpdQ\nBLo54Vh+fHGqdb9AmpP1EaE=\n-----END PRIVATE KEY-----\n",
"client_email": "mfc-8g4tpl5zt2--fv2qv-2omoxvjj@alpine-sentry-296002.iam.gserviceaccount.com",
"token_uri": "https://oauth2.googleapis.com/token"

}],

	auth: false,
	user: '',
	pass: '',
	upload: false,
	lite: true
};

@catthehacker
Copy link

I want to know how I can put more than one SA at a time, to "add" the daily limit.

You can't, the script can only use one service account

@cronopsxploit
Copy link
Author

cronopsxploit commented Feb 2, 2021

I want to know how I can put more than one SA at a time, to "add" the daily limit.

You can't, the script can only use one service account

I understand...
so looking at my script to know which token is being used the first or the second?
something else and about generating the refresh_token of my [email protected] account

if you can't, can you help me make a script that keeps changing service accounts from time to time? ex. every two hours? this would also "solve" the quota for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@catthehacker @cronopsxploit and others