403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pyc
ó
[³XMc@s¾dZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZd	„Zd
efd„ƒYZdZd
efd„ƒYZeƒZdS(s%
Cred plugin for UNIX user accounts.
iÿÿÿÿ(t
implements(tplugin(tICheckerFactory(tICredentialsChecker(tIUsernamePassword(tUnauthorizedLogin(tdefercCs|ddkr*d|jdƒd}n
|d }yddl}Wntk
r]d}nX|dkrytdƒ‚n|j||ƒ|kS(Nit$s$1$iiÿÿÿÿs(cred_unix not supported on this platform(tsplittcrypttImportErrortNonetNotImplementedError(tcryptedtpwtsaltR	((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pytverifyCryptedPasswords


tUNIXCheckercBs<eZdZeeƒefZd„Zd„Zd„Z	RS(s
    A credentials checker for a UNIX server. This will check that
    an authenticating username/password is a valid user on the system.

    Does not work on Windows.

    Right now this supports Python's pwd and spwd modules, if they are
    installed. It does not support PAM.
    cCshy|j|ƒd}Wntk
r7tjtƒƒSX|dkrHdSt||ƒrdtj|ƒSdS(Nit*tx(RR(tgetpwnamtKeyErrorRtfailRRRtsucceed(tselftpwdtusernametpasswordtcryptedPass((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pytcheckPwd3s
cCsXy|j|ƒd}Wntk
r7tjtƒƒSXt||ƒrTtj|ƒSdS(Ni(tgetspnamRRRRRR(RtspwdRRR((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pyt	checkSpwd@s
cCsß|j|j}}yddl}Wntk
r<d}nX|dk	rq|j|||ƒ}|dk	rq|Snyddl}Wntk
ršd}nX|dk	rÏ|j|||ƒ}|dk	rÏ|Sntj	t
ƒƒS(Niÿÿÿÿ(RRRR
RRRR RRR(RtcredentialsRRRtcheckedR((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pytrequestAvatarIdJs$



(
t__name__t
__module__t__doc__RRRtcredentialInterfacesRR R#(((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pyR%s	
		
	
s
This checker will attempt to use every resource available to
authenticate against the list of users on the local UNIX system.
(This does not support Windows servers for very obvious reasons.)

Right now, this includes support for:

  * Python's pwd module (which checks /etc/passwd)
  * Python's spwd module (which checks /etc/shadow)

Future versions may include support for PAM authentication.
tUNIXCheckerFactorycBsBeZdZeeejƒdZeZ	dZ
ejZd„Z
RS(s'
    A factory for L{UNIXChecker}.
    tunixsNo argstring required.cCstƒS(s®
        This checker factory ignores the argument string. Everything
        needed to generate a user database is pulled out of the local
        UNIX environment.
        (R(Rt	argstring((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pytgenerateCheckers(R$R%R&RRRtIPlugintauthTypetunixCheckerFactoryHelptauthHelptargStringFormatRR'R+(((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pyR(us	N(R&tzope.interfaceRttwistedRttwisted.cred.strcredRttwisted.cred.checkersRttwisted.cred.credentialsRttwisted.cred.errorRttwisted.internetRRtobjectRR.R(ttheUnixCheckerFactory(((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_unix.pyt<module>s	L

Youez - 2016 - github.com/yon3zu
LinuXploit