<?
 
/* Based on NP_FakeMail
*/
 
class NP_SpamTrap extends NucleusPlugin {
 
    function getName() {    return 'SpamTrap';     }
    function getAuthor()  { return 'Aspirant';     }
    function getURL() {        return 'http://www.slavespath.net/gifts/nucleus/spamtrap/'; }
    function getVersion() {    return '1.0'; }
    function getDescription() { 
        return 'Inserts random addresses at domains that use spamming'
            .'so that the spammers end up spamming each other.'
            .'  Insert <%SpamTrap(number, separator, prefix, postfix).  All parameters are optional.'
            .'  Examples:<ul>'
            .'<li><%Spamtrap%> - use default parameters</li>'
            .'<li><%Spamtrap(10)%> - generate 10 addresses</li>'
            .'<li><%Spamtrap(10, /, <li>, </li>)%> - generate 10 addresses, use a slash separator, and wrap each address in <li> tags</li>'
            .'</ul>';
    }
 
    function doSkinVar($type, $amount = 20, $separator = ', ',$prefix = '', $postfix = '') {
        srand((double)microtime()*1000000);
 
        // Look at the spam in your mailbox for the web sites you are urged to
        // visit.  Put their domains names here.    
        $domainList = array(
            'meds247.biz',
            'meds247.net',
            'meds369.net',
            'www.leanyouth.biz',
            'healthysavings.com',
            'watchmeandlearn.com',
            '1010fast.com',
            'creativecretins.com',
            'feelgr8.biz',
            'secure-software.biz',
            'marketingbooster.com',
            'savings-alert.biz',
            'bestherbs.biz',
            'domainsfornow.com',
            'alphacard.biz',
            'bizmedsrev.com',
            'mcnoffers.com',
            'zbestouthere.biz',
            'shopwo11.com',
            'cashmanhosting.com',
            'seaccc1.com',
            'mort24x7.com',
            'mondomeds.com',
            'ehostz.biz',
            'pillsdirect.net',
            'todaysrx.com',
            'bestviagramerchant.com',
            'e-mailpromo.net',
            'swing-in-style.com',
            'pharmacydepot.biz',
            'pillsavings5.com',
            'time4more.net',
            'grasphere.com',
            'dealsbyhour.biz',
            'thatwillchangelife.biz',
            'ineedthis.biz',
            'pharmacydepot.biz',
            'discountdomainsource.com',
            'datemakermania.com',
            'terra.es',
            'webdealsnow.biz',
            'hugeorgan.com'
        );
 
 
 
        for ($i=0;$i<$amount;$i++) {
            $nameLength = rand(3,10);
            $mailName = $this->makeName($nameLength);
            $domainName = $domainList[array_rand($domainList)];
            $myMail = $mailName . '@' . $domainName;
            echo $prefix;
            echo '<a href="mailto:',$myMail,'">',$myMail,'</a>';
            if ($i+1 != $amount) echo $separator;
            echo $postfix;
        }        
    }
 
    function makeName($len) {
        $str = '';
         for ($i=0;$i<$len;$i++) {
            $str.=chr(rand(97,122));
        }
        return $str;
    }
}
?>
spamtrap_code.txt · Last modified: 2010/07/20 10:11 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki