Nmap runs Lua scripts for service detection, vulnerability checks, and brute forcing through the --script option, a fea…