Research Article

Discovering Vulnerabilities in COTS IoT Devices through Blackbox Fuzzing Web Management Interface

Pseudocode 4

function do_timereboot()
local uci_t = require “luci.model.uci”.cursor()
local rebootenable = luci.http.formvalue(“timeRebootEnablestatus”)
local timerange = luci.http.formvalue(“timeRebootrange”)
local cururl = luci.http.formvalue(“cururl”)
luci.sys.call(“uci set timereboot.timereboot.enable = %s>/dev/null” % rebootenable)
luci.sys.call(“uci set timereboot.timereboot.time = %s>/dev/null” % timerange)
luci.sys.call(“uci commit timereboot.timereboot>/dev/null”)
…//other codes
end