The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

31.07.10 at 09:34:45, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 ... 4 5 6 
Stealth Email Addresses V1.0a SP1.3.x (Read 7731 times)
Kong
Hacker God
*****
Offline

Posts: 858



Reply #75 - 11.02.05 at 20:21:19  
Okay, thanks.
 
IP Logged
 

...
...
Kong
Hacker God
*****
Offline

Posts: 858



Reply #76 - 30.03.05 at 21:13:04  
Ron, great mod.  I love it.

One small thing I'm hoping to get working with it and am hoping you could help.

Is there a way I can set it up so that the any email addresses on the site not generated by yabb can use the stealth email links just like in Yabb.  Did I explain that well?

Essentially, any webpages that have a clickable email link I would like them to do just like on the forums.  Problem is that every link generated the mail_id is different, even when it's for the same person.

Do you know what I am looking to do and how I might go about doing it?

Thanks in advance.
 
IP Logged
 

...
...
Kong
Hacker God
*****
Offline

Posts: 858



Reply #77 - 08.04.05 at 21:10:37  
 
IP Logged
 

...
...
Valtiel
Hacker God
*****
Offline

, Bayern, Germany
Posts: 872



Reply #78 - 16.04.09 at 21:12:27  
Just figured out that this mod only works with mail addresses up to 33 chars. Any longer addresses aren't decrypted (or encrypted) correctly.

Any ideas how to change that?

Here the code from StealthMail.pl

Code:
sub MailTo {
if($username eq "Guest") { &fatal_error("$txt{'223'}"); }
my $mailusername = $INFO{'user'};
my $mailcrypted = $INFO{'mail_id'};
$truemail = &descramble($mailcrypted,$mailusername);
print "Content-Type: text/html\n\n";
$refresh = qq~<html>\n<head>\n
<script>
var tik=0
function timer() {
window.setTimeout("timer()", 2000)
tik=tik+1
if(tik==2){
window.close()
}
}
</script>
</head>\n
<body Onload = document.location="mailto:$truemail">\n
<font face="Arial" size="2">$txt{'stealth'}</font>\n
<script language="JavaScript1.2" type="text/javascript">\n
timer();
</script>
</body></html>\n~;
print $refresh;
}

sub scramble{
my ($input) =$_[0];
my ($user,$ascii,$key,$hex,$hexkey,$x);
$key = substr($date,length($date)-2,2);
$hexkey = uc(unpack("H2", pack("I", $key)));
$x=0;
for($n=0; $n < length $input ; $n++) {
$ascii = substr($input, $n, 1);
$ascii = ord($ascii)+$key-$n;
$hex = uc(unpack("H2", pack("I", $ascii)));
$user .= $hex;
$x++;
if ($x > 32){$x = 0;}
}
$user .= $hexkey;
return $user;
}

sub descramble{
my ($input) =$_[0];
my ($user,$ascii,$key,$dec,$hexkey,$x);
$hexkey = substr($input,length($input)-2,2);
$key = hex($hexkey);
$x=0;
for($n=0; $n < length($input)-2; $n++) {
$dec = substr($input, $n, 2);
$ascii = hex($dec);
$ascii = chr($ascii-$key+$x);
$user .= $ascii;
$n++;
$x++;
if ($x > 32){$x = 0;}
}
return $user;
}

1;
 
IP Logged
 

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Valtiel
Hacker God
*****
Offline

, Bayern, Germany
Posts: 872



Reply #79 - 16.04.09 at 21:26:18  
Ok, I changed 2 lines to

Code:
		if ($x > 39){$x = 0;} 



Seems to work now.
 
IP Logged
 

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Pages: 1 ... 4 5 6 
© 2000-2009 by - All rights reserved.

SourceForge.net Logo
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum