Changeset 650
- Timestamp:
- 01/22/12 00:19:03 (16 months ago)
- File:
-
- 1 edited
-
trollforge/users/recon/gmail stuff/sig_changer.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/users/recon/gmail stuff/sig_changer.pl
r596 r650 8 8 # Gmail Settings 9 9 my $gmailURL = 'https://mail.google.com/mail/x/mog-/gp/?source=mog&gl=us'; 10 my $gmailSettingsURL = 'http://mail.google.com/mail/h/ ';10 my $gmailSettingsURL = 'http://mail.google.com/mail/h/?&v=prg'; 11 11 my $signature = $ARGV[0]; 12 12 … … 29 29 $mech->cookie_jar(HTTP::Cookies->new()); 30 30 $mech->agent_alias('Windows Mozilla'); 31 sleep(int(rand(5))); #advanced anti-throttling technique 31 32 $mech->get($gmailURL); 32 33 $mech->form_name('gaia_loginform'); 33 34 $mech->field ('Email' => $email); 34 35 $mech->field ('Passwd' => $password); 35 print " $email... ";36 print "Trying $email... "; 36 37 $mech->submit(); # Login 37 38 … … 41 42 $pm->finish; 42 43 } else { 43 print "Success! \n";44 print "Success! "; 44 45 } 45 46 46 sleep( 1); #advanced anti-throttling technique47 sleep(int(rand(5))); #advanced anti-throttling technique 47 48 48 49 # Go to HTML settings page to change signature 49 50 $mech->get($gmailSettingsURL); 50 $mech->follow_link(text => 'Settings');51 51 $mech->form_number(2); 52 $mech->field('dp' => '');53 52 $mech->field('p_sx_sg' => $signature); 54 53 $mech->click('nvp_a_prefs'); 55 54 print "signature changed\n"; #LOL should probably check for m/saved/ but lazy 56 55 $pm->finish; 57 56 }
Note: See TracChangeset
for help on using the changeset viewer.
