Module Expr Str Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Str body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str NameLoad Str NameLoad NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword Num keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareNotEq Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword Num keyword NameLoad Return NameLoad Return TupleLoad Str Str Num Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Return TupleLoad Str Str Num orelse Expr Call AttributeLoad NameLoad attr ListLoad NameLoad For NameStore NameLoad body If CompareNotEq Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword Num keyword NameLoad Return NameLoad Return TupleLoad Str Str Num decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Assign NameStore Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad For NameStore Call NameLoad body If BoolOpOr CompareNotEq NameLoad Str CompareNotEq NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Num body If Call NameLoad ListComp CompareIn NameLoad NameLoad comprehension NameStore ListLoad Str Str Str body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Shut down windows hosts. N/A platform N/A re NetshStaticIp N/A N/A interface ip subnet gw N/A 127.0.0.9 255.255.255.255 127.0.0.1 N/A N/A Changes interface to a staticly set IP.

  Sets IP configs to local if no paramaters passed.

  Args:
    interface: Name of the interface.
    ip: IP address.
    subnet: Subnet mask.
    gw: IP address of the default gateway.

  Returns:
    A tuple of stdout, stderr, exit_status.
   N/A args N/A /c netsh interface ip set address interface static ip subnet gw 1 N/A res N/A N/A client_utils_common Execute cmd args time_limit -1 bypass_whitelist True N/A res N/A DisableInterfaces N/A N/A interface N/A N/A N/A Tries to disable an interface.  Only works on Vista and 7.

  Args:
    interface: Name of the interface to disable.

  Returns:
    res which is a tuple of (stdout, stderr, exit_status, time_taken).
   N/A set_tested_versions N/A vista 2008 N/A set_args N/A /c netsh set interface interface DISABLED N/A host_version N/A N/A N/A N/A platform platform lower N/A version set_tested_versions N/A N/A N/A N/A N/A host_version find version -1 N/A N/A res N/A N/A client_utils_common Execute cmd set_args time_limit -1 bypass_whitelist True N/A res N/A N/A Command not available for this version. 99 N/A GetEnabledInterfaces N/A N/A N/A N/A N/A Gives a list of enabled interfaces. Should work on all windows versions.

  Returns:
    interfaces: Names of interfaces found enabled.
   N/A interfaces N/A N/A show_args N/A /c netsh show interface N/A res N/A N/A client_utils_common Execute cmd show_args time_limit -1 bypass_whitelist True N/A pattern N/A N/A re compile \s* N/A line N/A N/A N/A res N/A 0 split N/A N/A interface_info N/A N/A pattern split line N/A N/A Enabled interface_info N/A N/A N/A N/A interfaces extend N/A interface_info N/A -1 N/A interfaces N/A MsgUser N/A N/A msg N/A N/A N/A Sends a message to a user.

  Args:
    msg: Message to be displaied to user.

  Returns:
    res which is a tuple of (stdout, stderr, exit_status, time_taken).
   N/A msg_tested_versions N/A xp vista 2008 2003 N/A msg_args N/A /c %SystemRoot%\System32\msg.exe * /TIME:0 N/A host_version N/A N/A N/A N/A platform platform lower N/A N/A msg N/A N/A N/A Command not ran. Empty message. -1 N/A N/A N/A N/A msg_args extend N/A msg N/A version msg_tested_versions N/A N/A N/A N/A N/A host_version find version -1 N/A N/A res N/A N/A client_utils_common Execute cmd msg_args time_limit -1 bypass_whitelist True N/A res N/A N/A Command not available for this version. -1 N/A main N/A N/A N/A N/A N/A return_str N/A N/A MSG_STRING ***WARNING for Acme Corp Security***
Your machine was found to be infected with a 
very scary virus. As a security measure we are 
shutting down your internet connection. Please 
call 0800-OHNOES immediately. N/A N/A msg py_args N/A N/A N/A return_str N/A msg N/A MsgUser N/A py_args N/A msg N/A N/A N/A return_str N/A msg N/A MsgUser MSG_STRING N/A interface N/A GetEnabledInterfaces N/A N/A N/A N/A interface Loopback N/A interface Internal N/A N/A N/A return_str N/A interface N/A DisableInterfaces interface N/A N/A N/A N/A return_str N/A interface N/A 2 99 N/A N/A N/A all N/A N/A key py_args N/A key N/A ip subnet gw N/A N/A N/A return_str N/A interface N/A NetshStaticIp interface N/A py_args N/A ip N/A py_args N/A subnet N/A py_args N/A gw N/A N/A N/A return_str N/A interface N/A NetshStaticIp interface N/A magic_list N/A N/A key return_str N/A N/A N/A stdout stderr exit_status time_taken N/A return_str N/A key N/A key_str N/A %s, %s, %s, %s, %s N/A key N/A N/A stdout encode base64 N/A N/A stderr encode base64 exit_status time_taken N/A N/A N/A magic_list append key_str N/A magic_return_str N/A N/A join magic_list N/A N/A N/A __name__ __main__ N/A N/A N/A main