473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

crypt and decrypt IP address for a php project

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
Jul 18 '05 #1
1 2182
danielle d'avout <da******@davout.org> writes:
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.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: | last post by:
I'm curious how these two functions work together (when crypt() uses a md5 algo). Currently I know they will produce different output; is this due to the salt being used behind-the-scenes in md5()?...
0
by: Jonas | last post by:
I have the following perl program witch i use to encrypt a password file with. In perl 5.6 this program works like a charm but when trying it on the RED HAT EL 3 platform (taroon) is doesnt...
1
by: Giovanni pepe | last post by:
I must Crypt and Decrypt String with password Exists examples ? Thank you
7
by: Kenjis Kaan | last post by:
I would like to use the crypt function in a Win32 (ie. C program using Visual C++ 6.0 compiler). I wrote a little program to see if it will link but it didn't. So I guess maybe the function isn't...
1
by: bb | last post by:
I have a requirement to create and store in our database the users password in a couple of additional hashes (we currently store an MD5 hash) the spec is pretty brief... Spec: Store the NT...
6
by: skech | last post by:
Hi, I read some articles but I don't understand. I need text crypt and decrypt (with my key) basic sample. (VB.NET asp.net page) Thanks
1
by: josh.kuo | last post by:
First of all, I know this is a PHP news group, so my question may not be completely appropriate here since it involves some perl. I have read this post that dealt with a similar problem that I am...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
3
Lazandra
by: Lazandra | last post by:
Hiya I have used the php function crypt to encrypt a credit card number thats going to be stored in mysql. does anyone know what funtion to use to decrypt it? Cheers Laz
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.