code refactoring (code reuse FTW) and added who command as per Impacket r885