Login to google by script

From SHellium Wiki
Jump to: navigation, search
Geographylogo.png In other languages: English | Afrikaans | Albanian | Arabic | Brazilian | Bulgarian | Catalan | Chinese | Croatian | Czech | Danish | Dutch | Esperanto | Estonian | Filipino | Finnish | Flemish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Latvian | Lithuanian | Macedonian | Malay | Malayalam | Norwegian (Bokmål) | Norwegian (Nynorsk) | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish | Swedish | Turkish | Ukrainian | Urdu

I wrote few lines to login into google service. I'll write a picasa script to add images in console, via browsing picasa web.

FOR EDUCATIONAL PURPOSE ONLY

Only login process here:


## LOGIN A GOOGLE SERVICE
 
USER="usernamehere"
PASSWD="pass_here"
URL='https://www.google.com/accounts/ServiceLogin';
ID=$(curl -c cj $URL|grep value|tail -n 1 |awk -F \" '{print $2}')
GALX=$(cat cj | awk  -F " " '/google/ {print $7}');
CMD="curl -D - -v -A \"Mozilla/2.0\" -s -b cj -c cj -d Email=$USER -d Passwd=$PASSWD -d dsh=$ID -d GALX=$GALX $URL"
eval $CMD


And than.. put your code to manage stuff on google services.

Personal tools
Namespaces

Variants
Actions
Navigation
Indexes
SHellium Sites
Toolbox