GDIndex icon indicating copy to clipboard operation
GDIndex copied to clipboard

doubt about Service_Account

Open cronopsxploit opened this issue 4 years ago • 4 comments

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 avatar Feb 02 '21 17:02 cronopsxploit

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
};

cronopsxploit avatar Feb 02 '21 17:02 cronopsxploit

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

catthehacker avatar Feb 02 '21 18:02 catthehacker

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

cronopsxploit avatar Feb 02 '21 20:02 cronopsxploit