GSA Website Submitter - Anybody Have An Email Link Clicker/Verifier?

cypionate

BANNED
Joined
Jun 13, 2008
Messages
641
Reaction score
698
GSA Website Submitter seems to be decent because it's automated, but you still have to go into your email, click the links, follow the link, and click the Submit button.

Does anybody have a script that parses these emails and clicks the links in the emails for you? I will be here all night long doing this.... ughh... :yield:

Cyp
 
Senuke has a built-in feature to visit the confirmation links in the emails. Look for SEnuke in the downloads section. Hope this helps ...
 
... and here is the proof :)

senukemail.jpg
 
Code:
/* connect to gmail */
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = '[email protected]';
$password = 'password';

/* try to connect */
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());

/* grab emails */
$emails = imap_search($inbox,'ALL');

/* if emails are returned, cycle through each... */
if($emails) {
	
	/* begin output var */
	$output = '';
	
	/* put the newest emails on top */
	rsort($emails);
	
	/* for every email... */
	foreach($emails as $email_number) {
		
		/* get information specific to this email */
		$overview = imap_fetch_overview($inbox,$email_number,0);
		$message = imap_fetchbody($inbox,$email_number,2);
		
		/* output the email header information */
		$output.= '<div class="toggler '.($overview[0]->seen ? 'read' : 'unread').'">';
		$output.= '<span class="subject">'.$overview[0]->subject.'</span> ';
		$output.= '<span class="from">'.$overview[0]->from.'</span>';
		$output.= '<span class="date">on '.$overview[0]->date.'</span>';
		$output.= '</div>';
		
		/* output the email body */
		$output.= '<div class="body">'.$message.'</div>';
	}
	
	echo $output;
} 

/* close the connection */
imap_close($inbox);

This little snippet can retrieve mail from gmail .
Instead echoing the $output try using preg_match to find href links in $output.

then output the links in html with an id using a foreach loop.
At the end of the loop use the html onclick function to create one button.
Bind the one button to the link id you gave earlier.
Click on the button and all the links are clicked at ones.

Don't forget to close the connection with gmail.

Good Luck.
 
Last edited:
Code:
/* connect to gmail */
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = '[email protected]';
$password = 'password';

/* try to connect */
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());

/* grab emails */
$emails = imap_search($inbox,'ALL');

/* if emails are returned, cycle through each... */
if($emails) {
    
    /* begin output var */
    $output = '';
    
    /* put the newest emails on top */
    rsort($emails);
    
    /* for every email... */
    foreach($emails as $email_number) {
        
        /* get information specific to this email */
        $overview = imap_fetch_overview($inbox,$email_number,0);
        $message = imap_fetchbody($inbox,$email_number,2);
        
        /* output the email header information */
        $output.= '<div class="toggler '.($overview[0]->seen ? 'read' : 'unread').'">';
        $output.= '<span class="subject">'.$overview[0]->subject.'</span> ';
        $output.= '<span class="from">'.$overview[0]->from.'</span>';
        $output.= '<span class="date">on '.$overview[0]->date.'</span>';
        $output.= '</div>';
        
        /* output the email body */
        $output.= '<div class="body">'.$message.'</div>';
    }
    
    echo $output;
} 

/* close the connection */
imap_close($inbox);
This little snippet can retrieve mail from gmail .
Instead echoing the $output try using preg_match to find href links in $output.

then output the links in html with an id using a foreach loop.
At the end of the loop use the html onclick function to create one button.
Bind the one button to the link id you gave earlier.
Click on the button and all the links are clicked at ones.

Don't forget to close the connection with gmail.

Good Luck.

I have been working on a script that parses out all of the links in a mailbox and then follows them all with cURL but I'm intrigued by your method. I tried searching around for how to find the onClick function to all of the links but came up with nothing.

Can you share the code for the last part of this please? If you do, I can complete my script and post up the whole package to here for people to use in the future...
 
Back
Top