CGIScanner = {} function CGIScanner:load() local html = Syhunt:getfile('Scripts/CGIScanner.html') browser.loadpagex('cgiscanner',html,'CGIScanner.ui') local ui = self.ui ui.url.value = tab.url end function CGIScanner:start() local ui = self.ui local script = Syhunt:getfile('Scripts/CGIScannerTask.lua') local j = {} j.pathlistfile = ui.pathlist.value if scop.file.exists(j.pathlistfile) then j.method = ui.method.value j.url = ui.url.value tab:runtask(script,json.encode(j)) browser.options.showheaders = true end end