May 2017
Intermediate to advanced
416 pages
21h 33m
English
In the script supermicro-psblock.nse, we defined the execution rule with the shortport.portnumber function:
portrule = shortport.portnumber(49152, "tcp")
The http NSE library has methods such as http.head(), http.get(), and http.post(), corresponding to the common HTTP methods HEAD, GET, and POST, respectively, but it also has a generic method named http.generic_request() to allow more flexibility for developers who may want to try more obscure HTTP verbs.
In the script supermicro-psblock, we used the http.get() function to retrieve the URI /PSBlock:
local open_session = http.get(host.ip, port, "/PSBlock")
The http.get() function returns a table containing the following response information:
Read now
Unlock full access