def MsgUser(msg):
 msg_tested_versions = ['xp', 'vista', '2008', '2003']
 msg_args = ['/c', '%SystemRoot%\\System32\\msg.exe', '*', '/TIME:0']
 host_version = platform.platform().lower()
 if (not msg):
  return ('Command not ran.', 'Empty message.', (-1))
 else:
  msg_args.extend([msg])
 for version in msg_tested_versions:
  if (host_version.find(version) != (-1)):
   res = client_utils_common.Execute('cmd', msg_args, time_limit=(-1), bypass_whitelist=True)
   return res
 return ('', 'Command not available for this version.', (-1))

def MsgUser ( msg ) : msg_tested_versions = [ 'xp' , 'vista' , '2008' , '2003' ] msg_args = [ '/c' , '%SystemRoot%\\System32\\msg.exe' , '*' , '/TIME:0' ] host_version = platform . platform ( ) . lower ( ) if ( not msg ) : return ( 'Command not ran.' , 'Empty message.' , ( - 1 ) ) else : msg_args . extend ( [ msg ] ) for version in msg_tested_versions : if ( host_version . find ( version ) != ( - 1 ) ) : res = client_utils_common . Execute ( 'cmd' , msg_args , time_limit = ( - 1 ) , bypass_whitelist = True ) return res return ( '' , 'Command not available for this version.' , ( - 1 ) )
sends a message to a user .