crypt and decrypt IP address for a php project

  • Thread starter danielle d'avout
  • Start date
D

danielle d'avout

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
 
P

Paul Rubin

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

It's easy, and the base64 routines should be compatible (that's why
base64 is a standard). However, if you're having trouble with this,
it may be easier for you to just stay with the php version.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top