diff --git a/nse/http-info.nse b/nse/http-info.nse
index b3df74e..827212c 100644
--- a/nse/http-info.nse
+++ b/nse/http-info.nse
@@ -20,7 +20,6 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
portrule = shortport.service({"http", "https", "ssl"})
-
local http = require "http"
local stdnse = require "stdnse"
diff --git a/nse/smb-shares-size.nse b/nse/smb-shares-size.nse
index 70a3cd5..8b54bc8 100644
--- a/nse/smb-shares-size.nse
+++ b/nse/smb-shares-size.nse
@@ -1,7 +1,8 @@
-local stdnse = require "stdnse"
-local smb = require "smb"
-local msrpc = require "msrpc"
-local bin = require "bin"
+local stdnse = require "stdnse"
+local smb = require "smb"
+local msrpc = require "msrpc"
+local bin = require "bin"
+local shortport = require "shortport"
description = [[
Return free and total size in octets of each SMB shares
@@ -25,9 +26,8 @@ categories = {"discovery", "intrusive"}
author = "Adrien Malingrey"
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
-hostrule = function(host)
- return smb.get_port(host) ~= nil
-end
+portrule = shortport.service({"microsoft-ds", "netbios-ssn", "smb"})
+
action = function(host)
local status, shares, extra
diff --git a/results.xsl b/results.xsl
index 18b56e0..f5fec0f 100644
--- a/results.xsl
+++ b/results.xsl
@@ -142,10 +142,8 @@
- red
- yellow
- yellow
green
+ yellow
red
@@ -157,16 +155,12 @@
-
-
-
-
-
+