【问题标题】:Can nmap run multiple nmap script with multiple arguments in one command?nmap 可以在一个命令中运行多个带有多个参数的 nmap 脚本吗?
【发布时间】:2016-03-11 11:59:51
【问题描述】:

我想运行多个 nmap 脚本,每个脚本都接受一个或多个参数。

例如,我要运行 3 个脚本:sc1、sc2、sc3。

sc1 使用参数:sc1.ag1、sc1.ag2、sc1.ag3

sc2 使用参数:sc2.ag1, sc2.ag2

sc3 使用参数:sc3.ag1

这样的命令可以运行吗?

nmap --script sc1,sc2,sc3 --script-args=sc1.ag1,sc1.ag2,sc1.ag3,sc2.ag1,sc2.ag2,sc3.ag1 192.168.111.111

【问题讨论】:

    标签: nmap


    【解决方案1】:

    是的,这是允许的。你应该小心引用你的 shell,因为脚本 args 可以包含空格和引号字符。

    您可能还对--script-args-file 选项感兴趣,它允许您将每个脚本参数放在文本文件的单独行上。换行符的作用与示例中的逗号 (",") 相同。

    online documentation 中涵盖了脚本规范。

    【讨论】:

      猜你喜欢
      • 2021-11-05
      • 1970-01-01
      • 2013-06-08
      • 2013-08-22
      • 2018-07-10
      • 2017-07-18
      • 2014-07-22
      • 1970-01-01
      • 2011-07-14
      相关资源
      最近更新 更多