crypt and decrypt IP address for a php project

danielle d'avout danielle at davout.org
Wed Jun 2 17:42:04 CEST 2004


Hi,

 I would like to take part of the Harvester Project, 
http://www.spywareinfo.com/harvest_project/,  
but in order to trick spammers into revealing their IP addresses when they are 
harvesting email addresses from web sites based on Python
we need to "translate" some php into python
<?php
$REMOTE_ADDR = getenv("REMOTE_ADDR");
$bait = base64_encode($REMOTE_ADDR);
?>
<div style="display:none">
<p>The following addresses are spamtraps. Do not use them or you will be 
banned from hundreds of web sites</p>
<a href="mailto:<?php echo $bait; 
?><?=rand(1,999)?>@spywareinfo.org">Webmaster</a>
<a href="mailto:<?php echo $bait; 
?><?=rand(1,999)?>@spywareinfo.org">Editor</a>
<a href="mailto:<?php echo $bait; 
?><?=rand(1,999)?>@spywareinfo.org">Sales</a>
</div>

Is it possible, difficult? How can spywareinfo.org decrypts the IP if Python 
and Php have not their corresponding base64_encode related?

Is there a project of the same kind for Python websites?
thanks





More information about the Python-list mailing list