Change default order of exec method for smb
parent
abc288234b
commit
fedbfaf1f5
|
@ -544,7 +544,7 @@ class smb(connection):
|
||||||
def execute(self, payload=None, get_output=False, methods=None):
|
def execute(self, payload=None, get_output=False, methods=None):
|
||||||
|
|
||||||
if self.args.exec_method: methods = [self.args.exec_method]
|
if self.args.exec_method: methods = [self.args.exec_method]
|
||||||
if not methods : methods = ['wmiexec', 'mmcexec', 'atexec', 'smbexec']
|
if not methods : methods = ['wmiexec', 'smbexec', 'mmcexec', 'atexec']
|
||||||
|
|
||||||
if not payload and self.args.execute:
|
if not payload and self.args.execute:
|
||||||
payload = self.args.execute
|
payload = self.args.execute
|
||||||
|
|
Loading…
Reference in New Issue