Module Import alias Import alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Str Assign AttributeStore NameLoad attr NameLoad If BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Return SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body If CompareGtE Call AttributeLoad Call NameLoad NameLoad attr Str Num body Pass orelse Raise NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str keyword BinOpAdd NameLoad Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Raise orelse Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Raise Call NameLoad Str orelse Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore SubscriptLoad NameLoad Index Str body If BoolOpOr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Pass orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Return Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Delete AttributeDel NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Str orelse If CompareNotEq NameLoad Str body Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Pass If CompareIs NameLoad NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Pass If CompareIs NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Pass Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Pass If CompareIs NameLoad NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Pass Pass If CompareIs NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass decorator_list decorator_list
N/A N/A random N/A string impacket.dcerpc.v5 transport srvs scmr impacket smb smb3 LOG impacket.smbconnection SMBConnection ServiceInstall N/A N/A __init__ N/A N/A self SMBObject exeFile N/A N/A N/A N/A self _rpctransport 0 N/A N/A self __service_name N/A N/A join N/A N/A N/A random choice N/A string letters N/A i N/A range 4 N/A N/A self __binary_service_name N/A N/A N/A join N/A N/A N/A random choice N/A string letters N/A i N/A range 8 .exe N/A N/A self __exeFile exeFile N/A N/A N/A isinstance SMBObject N/A smb SMB N/A isinstance SMBObject N/A smb3 SMB3 N/A N/A N/A self connection N/A SMBConnection existingConnection SMBObject N/A N/A N/A self connection SMBObject N/A N/A self share N/A getShare N/A N/A self N/A N/A N/A N/A self share N/A getShares N/A N/A self N/A N/A N/A N/A N/A LOG info N/A Requesting shares on %s..... N/A N/A N/A self connection getRemoteHost N/A N/A N/A N/A self _rpctransport N/A N/A transport SMBTransport N/A N/A N/A self connection getRemoteHost N/A N/A N/A self connection getRemoteHost filename \srvsvc smb_connection N/A self connection N/A dce_srvs N/A N/A N/A self _rpctransport get_dce_rpc N/A N/A N/A dce_srvs connect N/A N/A N/A dce_srvs bind N/A srvs MSRPC_UUID_SRVS N/A resp N/A N/A srvs hNetrShareEnum dce_srvs 1 N/A N/A N/A N/A resp N/A InfoStruct N/A ShareInfo N/A Level1 N/A N/A N/A N/A N/A N/A LOG critical N/A Error requesting shares on %s, aborting..... N/A N/A N/A self connection getRemoteHost N/A N/A createService N/A N/A self handle share path N/A N/A N/A N/A N/A LOG info N/A Creating service %s on %s..... N/A N/A self __service_name N/A N/A N/A self connection getRemoteHost N/A N/A N/A resp N/A N/A scmr hROpenServiceW N/A self rpcsvc handle N/A N/A self __service_name N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A N/A str e find ERROR_SERVICE_DOES_NOT_EXIST 0 N/A N/A N/A N/A e N/A N/A N/A N/A scmr hRDeleteService N/A self rpcsvc N/A resp N/A lpServiceHandle N/A N/A N/A scmr hRCloseServiceHandle N/A self rpcsvc N/A resp N/A lpServiceHandle N/A command N/A %s\%s N/A path N/A self __binary_service_name N/A N/A N/A resp N/A N/A scmr hRCreateServiceW N/A self rpcsvc handle N/A N/A self __service_name N/A N/A self __service_name lpBinaryPathName N/A command N/A N/A N/A N/A N/A N/A LOG critical N/A Error creating service %s on %s N/A N/A self __service_name N/A N/A N/A self connection getRemoteHost N/A N/A N/A N/A resp N/A lpServiceHandle N/A openSvcManager N/A N/A self N/A N/A N/A N/A N/A LOG info N/A Opening SVCManager on %s..... N/A N/A N/A self connection getRemoteHost N/A N/A self _rpctransport N/A N/A transport SMBTransport N/A N/A N/A self connection getRemoteHost N/A N/A N/A self connection getRemoteHost filename \svcctl smb_connection N/A self connection N/A N/A self rpcsvc N/A N/A N/A self _rpctransport get_dce_rpc N/A N/A N/A N/A self rpcsvc connect N/A N/A N/A N/A self rpcsvc bind N/A scmr MSRPC_UUID_SCMR N/A N/A N/A resp N/A N/A scmr hROpenSCManagerW N/A self rpcsvc N/A N/A N/A N/A N/A N/A LOG critical N/A Error opening SVCManager on %s..... N/A N/A N/A self connection getRemoteHost N/A N/A Exception Unable to open SVCManager N/A N/A N/A resp N/A lpScHandle N/A copy_file N/A N/A self src tree dst N/A N/A N/A N/A N/A LOG info N/A Uploading file %s dst N/A N/A isinstance src str N/A N/A fh N/A open src rb N/A N/A fh src N/A f dst N/A pathname N/A N/A string replace f / \ N/A N/A N/A N/A N/A N/A self connection putFile tree pathname N/A fh read N/A N/A N/A N/A N/A N/A LOG critical N/A Error uploading file %s, aborting..... dst N/A N/A N/A N/A fh close N/A findWritableShare N/A N/A self shares N/A N/A N/A i N/A shares N/A Buffer N/A N/A N/A N/A N/A i N/A shi1_type N/A srvs STYPE_DISKTREE N/A N/A i N/A shi1_type N/A srvs STYPE_SPECIAL N/A N/A share N/A N/A i N/A shi1_netname N/A -1 N/A N/A N/A N/A N/A N/A self connection createDirectory share BETO N/A N/A N/A N/A N/A N/A LOG critical N/A share '%s' is not writable. share N/A N/A N/A N/A N/A LOG info N/A Found writable share %s share N/A N/A N/A N/A self connection deleteDirectory share BETO N/A N/A str share N/A None N/A install N/A N/A self N/A N/A N/A N/A N/A N/A self connection isGuestSession N/A N/A N/A N/A LOG critical Authenticated as Guest. Aborting N/A N/A N/A N/A self connection logoff N/A N/A self connection N/A N/A fileCopied False N/A serviceCreated False N/A N/A N/A shares N/A N/A self getShares N/A N/A self share N/A N/A self findWritableShare shares N/A N/A N/A self copy_file N/A self __exeFile N/A self share N/A self __binary_service_name N/A fileCopied True N/A svcManager N/A N/A self openSvcManager N/A N/A svcManager 0 N/A N/A serverName N/A N/A N/A self connection getServerName N/A N/A N/A N/A N/A self share lower admin$ N/A N/A path %systemroot% N/A N/A N/A serverName N/A N/A path N/A \\%s\%s N/A serverName N/A self share N/A N/A path N/A \\127.0.0.1\ N/A self share N/A service N/A N/A self createService svcManager N/A self share path N/A serviceCreated True N/A N/A service 0 N/A N/A N/A N/A LOG info N/A Starting service %s..... N/A self __service_name N/A N/A N/A N/A N/A scmr hRStartServiceW N/A self rpcsvc service N/A N/A N/A N/A N/A N/A N/A scmr hRCloseServiceHandle N/A self rpcsvc service N/A N/A N/A scmr hRCloseServiceHandle N/A self rpcsvc svcManager N/A True N/A N/A N/A Exception N/A e N/A N/A N/A N/A LOG critical N/A Error performing the installation, cleaning up: %s e N/A N/A N/A N/A N/A scmr hRControlService N/A self rpcsvc service N/A scmr SERVICE_CONTROL_STOP N/A N/A N/A N/A N/A N/A fileCopied True N/A N/A N/A N/A N/A N/A N/A self connection deleteFile N/A self share N/A self __binary_service_name N/A N/A N/A N/A N/A N/A serviceCreated True N/A N/A N/A N/A N/A N/A scmr hRDeleteService N/A self rpcsvc service N/A N/A N/A N/A N/A False N/A uninstall N/A N/A self N/A N/A N/A fileCopied True N/A serviceCreated True N/A N/A N/A svcManager N/A N/A self openSvcManager N/A N/A svcManager 0 N/A N/A resp N/A N/A scmr hROpenServiceW N/A self rpcsvc svcManager N/A N/A self __service_name N/A service N/A resp N/A lpServiceHandle N/A N/A N/A LOG info N/A Stoping service %s..... N/A self __service_name N/A N/A N/A N/A N/A scmr hRControlService N/A self rpcsvc service N/A scmr SERVICE_CONTROL_STOP N/A N/A N/A N/A N/A N/A N/A LOG info N/A Removing service %s..... N/A self __service_name N/A N/A N/A scmr hRDeleteService N/A self rpcsvc service N/A N/A N/A scmr hRCloseServiceHandle N/A self rpcsvc service N/A N/A N/A scmr hRCloseServiceHandle N/A self rpcsvc svcManager N/A N/A N/A LOG info N/A Removing file %s..... N/A self __binary_service_name N/A N/A N/A N/A self connection deleteFile N/A self share N/A self __binary_service_name N/A N/A N/A Exception N/A N/A N/A N/A LOG critical Error performing the uninstallation, cleaning up N/A N/A N/A N/A N/A scmr hRControlService N/A self rpcsvc service N/A scmr SERVICE_CONTROL_STOP N/A N/A N/A N/A N/A N/A fileCopied True N/A N/A N/A N/A N/A N/A N/A self connection deleteFile N/A self share N/A self __binary_service_name N/A N/A N/A N/A N/A N/A N/A N/A N/A self connection deleteFile N/A self share N/A self __binary_service_name N/A N/A N/A N/A N/A N/A N/A serviceCreated True N/A N/A N/A N/A N/A N/A scmr hRDeleteService N/A self rpcsvc service N/A N/A N/A N/A N/A N/A