Changing the default behavior for services can be accomplished via the self.interface
hash attribute. This hash is indexed
by the service UUID, and each item in this hash is an action code
defining proxy behavior for the given command. The available action codes are shown in the following table:
Name | Value |
---|---|
MSRPC_UUID_ACCEPT | Allow access to the requested service. |
MSRPC_UUID_REJECT | Reject access to the requested service. |
MSRPC_UUID_DROP | Drop the request without further notice. |
Table 4.48. Action codes for MSRpc requests.
Example 4.33. Customising RPC to allow connection to service "11223344-5566-7788-99aa-bbccddeeff00" |
---|
class MyRpcProxy(MSRpcProxy): def config(self): self.interface["11223344-5566-7788-99aa-bbccddeeff00"] = MSRPC_UUID_ACCEPT |
Published on June 04, 2020
© 2007-2019 BalaSys
Send your comments to support@balasys.hu