xp_cmdshell to nmap

  • I am trying to execute this and get an error that 'C:\Program' is not recognized as an internal or external command,operable program or batch file.

    can you please help me figure out what i am missing.

    Exec xp_cmdshell '"C:\Program Files (x86)\Nmapmap -p 1433 --script ms-sql-info --script-args mssql.instance-port=1433 localhost"'

    If i just run this, I get the default nmap information

    Exec xp_cmdshell '"C:\Program Files (x86)\Nmapmap"'

    Thanks

  • Sorry I was able to figure it out. Thanks. silly me:-D

    exec xp_cmdshell '"C:\Program Files (x86)\Nmapmap" -p 1433 --script ms-sql-info --script-args mssql.instance-port=1433 localhost'

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply