Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 3.144.43.235
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Authen /
SASL /
Perl /
[ HOME SHELL ]
Name
Size
Permission
Action
ANONYMOUS.pm
1.75
KB
-rw-r--r--
CRAM_MD5.pm
1.97
KB
-rw-r--r--
DIGEST_MD5.pm
22.81
KB
-rw-r--r--
EXTERNAL.pm
1.79
KB
-rw-r--r--
GSSAPI.pm
10.55
KB
-rw-r--r--
LOGIN.pm
4.42
KB
-rw-r--r--
PLAIN.pm
3.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : PLAIN.pm
# Copyright (c) 2002 Graham Barr <gbarr@pobox.com>. All rights reserved. # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. package Authen::SASL::Perl::PLAIN; use strict; use vars qw($VERSION @ISA); $VERSION = "2.14"; @ISA = qw(Authen::SASL::Perl); my %secflags = ( noanonymous => 1, ); my @tokens = qw(authname user pass); sub _order { 1 } sub _secflags { shift; grep { $secflags{$_} } @_; } sub mechanism { 'PLAIN' } sub client_start { my $self = shift; $self->{error} = undef; $self->{need_step} = 0; my @parts = map { my $v = $self->_call($_); defined($v) ? $v : '' } @tokens; join("\0", @parts); } sub server_start { my $self = shift; my $response = shift; my $user_cb = shift || sub {}; $self->{error} = undef; return $self->set_error("No response: Credentials don't match") unless defined $response; my %parts; @parts{@tokens} = split "\0", $response, scalar @tokens; # I'm not entirely sure of what I am doing $self->{answer}{$_} = $parts{$_} for qw/authname user/; my $error = "Credentials don't match"; ## checkpass if (my $checkpass = $self->callback('checkpass')) { my $cb = sub { my $result = shift; unless ($result) { $self->set_error($error); } else { $self->set_success; } $user_cb->(); }; $checkpass->($self => { %parts } => $cb ); return; } ## getsecret elsif (my $getsecret = $self->callback('getsecret')) { my $cb = sub { my $good_pass = shift; if ($good_pass && $good_pass eq ($parts{pass} || "")) { $self->set_success; } else { $self->set_error($error); } $user_cb->(); }; $getsecret->( $self, { map { $_ => $parts{$_ } } qw/user authname/ }, $cb ); return; } ## error by default else { $self->set_error($error); $user_cb->(); } } 1; __END__ =head1 NAME Authen::SASL::Perl::PLAIN - Plain Login Authentication class =head1 SYNOPSIS use Authen::SASL qw(Perl); $sasl = Authen::SASL->new( mechanism => 'PLAIN', callback => { user => $user, pass => $pass }, ); =head1 DESCRIPTION This method implements the client and server part of the PLAIN SASL algorithm, as described in RFC 2595 resp. IETF Draft draft-ietf-sasl-plain-XX.txt =head2 CALLBACK The callbacks used are: =head3 Client =over 4 =item authname The authorization id to use after successful authentication (client) =item user The username to be used for authentication (client) =item pass The user's password to be used for authentication. =back =head3 Server =over 4 =item checkpass(username, password, realm) returns true and false depending on the validity of the credentials passed in arguments. =back =head1 SEE ALSO L<Authen::SASL>, L<Authen::SASL::Perl> =head1 AUTHORS Software written by Graham Barr <gbarr@pobox.com>, documentation written by Peter Marschall <peter@adpm.de>. Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org> =head1 COPYRIGHT Copyright (c) 2002-2004 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Documentation Copyright (c) 2004 Peter Marschall. All rights reserved. This documentation is distributed, and may be redistributed, under the same terms as Perl itself. Server support Copyright (c) 2009 Yann Kerherve. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut
Close