You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? (required. The issue will be closed when not provided.)
When trying to do a remote scan from Linux to Windows, the scanner does not recognize Windows and the scan fails.
Successful SSH connection has been confirmed
config.toml
# See README for details: https://vuls.io/docs/en/usage-settings.html
version = "v2"
[saas]
GroupID = xxxx
Token = "xxxx"
URL = "https://auth.vuls.biz/one-time-auth"
[default]
[servers]
[servers.windowsserver]
user = "Administrator"
host = "192.168.0.124"
port = "22"
keyPath = "test"
[servers.windowsserver.windows]
serverSelection = 2
What did you expect to happen?
Successful remote scan
What happened instead?
Current Output
vuls-saas@ip-192-168-0-136 vuls-saas]$ ./vuls scan --debug
[Jan 24 10:00:15] INFO [localhost] vuls-v0.24.8-build-bbf53c7
[Jan 24 10:00:15] INFO [localhost] Start scanning
[Jan 24 10:00:15] INFO [localhost] config: /opt/vuls-saas/config.toml
[Jan 24 10:00:15] DEBUG [localhost] map[string]config.ServerInfo{
"windowsserver": config.ServerInfo{
BaseName: "windowsserver",
ServerName: "windowsserver",
User: "Administrator",
Host: "192.168.0.124",
IgnoreIPAddresses: []string{},
JumpServer: []string{},
Port: "22",
SSHConfigPath: "",
KeyPath: "test",
CpeNames: []string{},
ScanMode: []string{},
ScanModules: []string{},
OwaspDCXMLPath: "",
ContainersOnly: false,
ContainersIncluded: []string{},
ContainersExcluded: []string{},
ContainerType: "",
Containers: map[string]config.ContainerSetting{},
IgnoreCves: []string{},
IgnorePkgsRegexp: []string{},
GitHubRepos: map[string]config.GitHubConf{},
UUIDs: map[string]string{},
Memo: "",
Enablerepo: []string{},
Optional: map[string]interface {}{},
Lockfiles: []string{},
FindLock: false,
FindLockDirs: []string{},
Type: "",
IgnoredJSONKeys: []string{},
WordPress: &config.WordPressConf{
OSUser: "",
DocRoot: "",
CmdPath: "",
NoSudo: false,
},
PortScan: &config.PortScanConf{
IsUseExternalScanner: false,
ScannerBinPath: "",
HasPrivileged: false,
ScanTechniques: []string{},
SourcePort: "",
},
Windows: &config.WindowsConf{
ServerSelection: 2,
CabPath: "",
},
IPv4Addrs: []string{},
IPv6Addrs: []string{},
IPSIdentifiers: map[string]string{},
LogMsgAnsiColor: "",
Container: config.Container{
ContainerID: "",
Name: "",
Image: "",
},
Distro: config.Distro{
Family: "",
Release: "",
},
Mode: config.ScanMode{
flag: 0x01,
},
Module: config.ScanModule{
flag: 0x0f,
},
},
}
[Jan 24 10:00:15] INFO [localhost] Validating config...
[Jan 24 10:00:15] INFO [localhost] Detecting Server/Container OS...
[Jan 24 10:00:15] INFO [localhost] Detecting OS of servers...
[Jan 24 10:00:15] DEBUG [localhost] Validating SSH Settings for Server:windowsserver ...
[Jan 24 10:00:15] DEBUG [localhost] Executing... /usr/bin/ssh -G -i test -p 22 -l Administrator 192.168.0.124
[Jan 24 10:00:15] DEBUG [localhost] Setting SSH User:Administrator for Server:windowsserver ...
[Jan 24 10:00:15] DEBUG [localhost] Setting SSH Port:22 for Server:windowsserver ...
[Jan 24 10:00:15] DEBUG [localhost] Checking if the host's public key is in known_hosts...
[Jan 24 10:00:15] DEBUG [localhost] Executing... /usr/bin/ssh-keygen -F 192.168.0.124 -f /home/vuls-saas/.ssh/known_hosts
[Jan 24 10:00:15] DEBUG [localhost] Executing... exit
[Jan 24 10:00:16] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 0
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; exit
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
err: %!s(<nil>)
[Jan 24 10:00:16] DEBUG [localhost] Executing... Get-ComputerInfo -Property WindowsProductName, OsVersion, WindowsEditionId, OsCSDVersion, CsSystemType, WindowsInstallationType
[Jan 24 10:00:17] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: The string is missing the terminator: ".
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
err: %!s(<nil>)
[Jan 24 10:00:17] DEBUG [localhost] Executing... $WmiOS = (Get-WmiObject Win32_OperatingSystem); Format-List -InputObject $WmiOS -Property Caption, Version, OperatingSystemSKU, CSDVersion; $WmiCS = (Get-WmiObject Win32_ComputerSystem); Format-List -InputObject $WmiCS -Property SystemType, DomainRole
[Jan 24 10:00:17] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: The string is missing the terminator: ".
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
err: %!s(<nil>)
[Jan 24 10:00:17] DEBUG [localhost] Executing... systeminfo.exe
[Jan 24 10:00:18] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: The string is missing the terminator: ".
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
err: %!s(<nil>)
[Jan 24 10:00:18] DEBUG [localhost] Executing... ls /etc/debian_version
[Jan 24 10:00:18] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/debian_version
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\debian_version' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/debian_version
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\debian_version:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:18] DEBUG [localhost] Not Debian like Linux. execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/debian_version
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\debian_version' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/debian_version
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\debian_version:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:18] DEBUG [localhost] Executing... ls /etc/fedora-release
[Jan 24 10:00:19] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/fedora-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\fedora-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/fedora-release
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\fedora-release:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:19] DEBUG [localhost] Executing... ls /etc/oracle-release
[Jan 24 10:00:20] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/oracle-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\oracle-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/oracle-release
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\oracle-release:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:20] DEBUG [localhost] Executing... ls /etc/almalinux-release
[Jan 24 10:00:20] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/almalinux-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\almalinux-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/almalinux-release
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\almalinux-release:String) [Get-ChildItem], I
temNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:20] DEBUG [localhost] Executing... ls /etc/rocky-release
[Jan 24 10:00:21] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/rocky-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\rocky-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/rocky-release
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\rocky-release:String) [Get-ChildItem], ItemN
otFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:21] DEBUG [localhost] Executing... ls /etc/centos-release
[Jan 24 10:00:21] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/centos-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\centos-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/centos-release
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\centos-release:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:21] DEBUG [localhost] Executing... ls /etc/amazon-linux-release
[Jan 24 10:00:22] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/amazon-linux-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\amazon-linux-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/amazon-linux-release
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\amazon-linux-release:String) [Get-ChildItem]
, ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:22] DEBUG [localhost] Executing... ls /etc/redhat-release
[Jan 24 10:00:22] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/redhat-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\redhat-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/redhat-release
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\redhat-release:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:22] DEBUG [localhost] Executing... ls /etc/system-release
[Jan 24 10:00:23] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/system-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\system-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/system-release
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\system-release:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:23] DEBUG [localhost] Not RedHat like Linux. servername: windowsserver
[Jan 24 10:00:23] DEBUG [localhost] Executing... ls /etc/os-release
[Jan 24 10:00:23] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/os-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\os-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/os-release
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\os-release:String) [Get-ChildItem], ItemNotF
oundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:23] DEBUG [localhost] Executing... ls /etc/SuSE-release
[Jan 24 10:00:24] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/SuSE-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\SuSE-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/SuSE-release
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\SuSE-release:String) [Get-ChildItem], ItemNo
tFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:24] DEBUG [localhost] Not SUSE Linux. servername: windowsserver
[Jan 24 10:00:24] DEBUG [localhost] Executing... uname
[Jan 24 10:00:24] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; uname
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
uname : The term 'uname' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:17
+ stty cols 1000; uname
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (uname:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
err: %!s(<nil>)
[Jan 24 10:00:24] DEBUG [localhost] Not FreeBSD. servernam: windowsserver
[Jan 24 10:00:24] DEBUG [localhost] Executing... ls /etc/alpine-release
[Jan 24 10:00:25] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; ls /etc/alpine-release
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ls : Cannot find path 'C:\etc\alpine-release' because it does not exist.
At line:1 char:17
+ stty cols 1000; ls /etc/alpine-release
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\etc\alpine-release:String) [Get-ChildItem], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
err: %!s(<nil>)
[Jan 24 10:00:25] DEBUG [localhost] Executing... sw_vers
[Jan 24 10:00:25] DEBUG [localhost] execResult: servername: windowsserver
cmd: /usr/bin/ssh -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/home/vuls-saas/.vuls/cm-eacc137d-%C -o Controlpersist=10m -l Administrator -p 22 -i test -o PasswordAuthentication=no 192.168.0.124
exitstatus: 1
stdout:
stderr: stty : The term 'stty' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ stty cols 1000; sw_vers
+ ~~~~
+ CategoryInfo : ObjectNotFound: (stty:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
sw_vers : The term 'sw_vers' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:17
+ stty cols 1000; sw_vers
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (sw_vers:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
err: %!s(<nil>)
[Jan 24 10:00:25] ERROR [localhost] (1/1) Failed: windowsserver, err: [Unknown OS Type:
github.com/future-architect/vuls/scanner.Scanner.detectOS
/home/runner/work/futurevuls-backend/futurevuls-backend/scanner-src/scanner/scanner.go:800]
[Jan 24 10:00:25] ERROR [localhost] Failed to scan: Failed to init servers. err:
github.com/future-architect/vuls/scanner.Scanner.Scan
/home/runner/work/futurevuls-backend/futurevuls-backend/scanner-src/scanner/scanner.go:93
- No scannable host OS:
github.com/future-architect/vuls/scanner.Scanner.initServers
/home/runner/work/futurevuls-backend/futurevuls-backend/scanner-src/scanner/scanner.go:300
[vuls-saas@ip-192-168-0-136 vuls-saas]$
Please re-run the command using -debug and provide the output below.
Steps to reproduce the behaviour
Set up public key authentication with Linux as SSH client and Windows as SSH server, and perform remote scan from linux side.
Configuration (MUST fill this out):
Amazon Linux
Windows 10
Go version (go version):
Go environment (go env):
Vuls environment:
v0.24.8
Hash : ____
To check the commit hash of HEAD
$ vuls -v
or
$ cd $GOPATH/src/github.com/future-architect/vuls
$ git rev-parse --short HEAD
config.toml:
# See README for details: https://vuls.io/docs/en/usage-settings.html
version = "v2"
[saas]
GroupID = xxxx
Token = "xxxx"
URL = "https://auth.vuls.biz/one-time-auth"
[default]
[servers]
[servers.windowsserver]
user = "Administrator"
host = "192.168.0.124"
port = "22"
keyPath = "test"
[servers.windowsserver.windows]
serverSelection = 2
command: ./vuls scan --debug
The text was updated successfully, but these errors were encountered:
What did you do? (required. The issue will be closed when not provided.)
When trying to do a remote scan from Linux to Windows, the scanner does not recognize Windows and the scan fails.
Successful SSH connection has been confirmed
config.toml
What did you expect to happen?
Successful remote scan
What happened instead?
Please re-run the command using
-debug
and provide the output below.Steps to reproduce the behaviour
Set up public key authentication with Linux as SSH client and Windows as SSH server, and perform remote scan from linux side.
Configuration (MUST fill this out):
Amazon Linux
Windows 10
Go version (
go version
):Go environment (
go env
):Vuls environment:
v0.24.8
Hash : ____
To check the commit hash of HEAD
$ vuls -v
or
$ cd $GOPATH/src/github.com/future-architect/vuls
$ git rev-parse --short HEAD
./vuls scan --debug
The text was updated successfully, but these errors were encountered: