king_phisher.server.pylibc
This module provides a wrapped interface for Linux's libc. Most of this functionality is duplicated in Python's own :pygrp
and :pypwd
modules. This implementation however, using :pyctypes
to directly interface with libc is necessary to avoid dead-lock issues when authenticating non-local users such as would be found in an environment using an LDAP server.
getgrnam
getgrouplist
getpwnam
getpwuid