shell_exec not working with nmap command

后端 未结 2 905
栀梦
栀梦 2021-01-07 11:11

I got a problem with the shell_exec php function, here is a example code:

$output = shell_exec(\'nmap -PS80 -n -oG - --send-ip 11.11.11.11\         


        
2条回答
  •  悲哀的现实
    2021-01-07 12:01

    Try to specify full path to nmap like /usr/local/bin/nmap. PHP might not know about nmap location. Enjoy!

提交回复
热议问题