Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jbarnett-r7/1b8fdbd1fc9b4b3def7f08456deddd22 to your computer and use it in GitHub Desktop.
Save jbarnett-r7/1b8fdbd1fc9b4b3def7f08456deddd22 to your computer and use it in GitHub Desktop.
Windows Inspec Test Results - First Run
Profile: tests from 7zip.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ✔ 7zip: Check 7zip
 ✔ File C:\ProgramData\chocolatey\bin\7z.exe should exist
Profile: tests from apache_struts.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ∅ apache-struts: Check if apache struts is running (3 failed 1 skipped)
 × File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\conf\tomcat-users.xml should exist
expected File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\conf\tomcat-users.xml to exist
 × File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\conf\server.xml should exist
expected File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\conf\server.xml to exist
 × File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\webapps\struts2-rest-showcase.war should exist
expected File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\webapps\struts2-rest-showcase.war to exist
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from axis2.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ∅ axis2: Axis 2 (1 failed 1 skipped)
 ✔ File C:\axis2 should not exist
 × File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\webapps\axis2 should exist
expected File C:\Program Files\Apache Software Foundation\tomcat\apache-tomcat-8.5.12\webapps\axis2 to exist
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from backdoors.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ∅ backdoors: Backdoors (1 failed)
 × File C:\inetpub\wwwroot\caidao.asp should exist
expected File C:\inetpub\wwwroot\caidao.asp to exist
 ✔ File C:\wamp\www\mma.php should exist
 ✔ File C:\wamp\www\meterpreter.php should exist
Profile: tests from boxstarter.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ✔ boxstarter: Check BoxStarter
 ✔ File C:\Users\vagrant\AppData\Roaming\Boxstarter should exist
 ✔ File C:\Users\vagrant\AppData\Roaming\Boxstarter\BoxstarterShell.ps1 should exist
Profile: tests from choco.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ✔ choco: Check chocolatey
 ✔ Command choco --version exit_status should eq 0
Profile: tests from create_users.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ check-accounts: Check user accounts (18 skipped)
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ The `user` resource is not supported on your OS yet.
 ↺ reg-user-add: Check user registry entries
 ↺ The `registry_key` resource is not supported on your OS yet.
Profile: tests from devkit.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ devkit: Rails Server - DevKit (1 skipped)
 ✔ File C:\Program Files\Rails_Server should exist
 ✔ File C:\Program Files\Rails_Server\devkit should exist
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from disable_auto_logon.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ✔ disable-auto-logon: Disable Auto Logon
 ✔ Command reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon stdout should match "AutoAdminLogon REG_SZ 0"
Profile: tests from disable_firewall.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ∅ disable-firewall: Diable firewall (expected "\r\nDomain Profile Settings: \r\n-------------------------------------------------------------------...----------------------------------------\r\nState ON\r\nOk.\r\n\r\n" not to match "ON"
Diff:
@@ -1,2 +1,15 @@
-ON
+
+Domain Profile Settings:
+----------------------------------------------------------------------
+State ON
+
+Private Profile Settings:
+----------------------------------------------------------------------
+State ON
+
+Public Profile Settings:
+----------------------------------------------------------------------
+State ON
+Ok.
+
)
 × Command netsh advfirewall show allprofiles state stdout should not match "ON"
expected "\r\nDomain Profile Settings: \r\n-------------------------------------------------------------------...----------------------------------------\r\nState ON\r\nOk.\r\n\r\n" not to match "ON"
Diff:
@@ -1,2 +1,15 @@
-ON
+
+Domain Profile Settings:
+----------------------------------------------------------------------
+State ON
+
+Private Profile Settings:
+----------------------------------------------------------------------
+State ON
+
+Public Profile Settings:
+----------------------------------------------------------------------
+State ON
+Ok.
+

Profile: tests from elasticsearch.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ elasticsearch: ElasticSearch (2 skipped)
 ✔ File C:\Program Files\elasticsearch-1.1.1 should exist
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from enable_rdp.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ enable-rdp: Enable RDP (2 skipped)
 ✔ Command netsh advfirewall firewall show rule name="Open Port 3389" stdout should match "Enabled: Yes"
 ↺ The `registry_key` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from firewall.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ✔ firewall: Configure Firewall
 ✔ Command netsh advfirewall firewall show rule name="Open Port 8484 for Jenkins" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 8282 for Apache Struts" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 80 for IIS" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 4848 for GlassFish" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 8080 for GlassFish" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 8585 for Wordpress and phpMyAdmin" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Java 1.6 java.exe" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 3000 for Rails Server" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 8020 for ManageEngine Desktop Central" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 8383 for ManageEngine Desktop Central" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 8022 for ManageEngine Desktop Central" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 9200 for ElasticSearch" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Open Port 161 for SNMP" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Closed port 445 for SMB" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Closed port 139 for NetBIOS" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Closed port 135 for NetBIOS" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Closed Port 3389 for Remote Desktop" stdout should match "Enabled: Yes"
 ✔ Command netsh advfirewall firewall show rule name="Closed Port 3306 for MySQL" stdout should match "Enabled: Yes"
Profile: tests from flag_check.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ∅ flags-check: Check flag locations (4 failed)
 × File C:\inetpub\wwwroot\six_of_diamonds.zip should exist
expected File C:\inetpub\wwwroot\six_of_diamonds.zip to exist
 ✔ File C:\WINDOWS\System32\jack_of_clubs.png should exist
 ✔ File C:\Windows\three_of_spades.png should exist
 ✔ File C:\Windows\System32\kingofclubs.exe should exist
 ✔ File C:\Users\Public\Music\four_of_clubs.wav should exist
 × File C:\inetpub\wwwroot\index.html should exist
expected File C:\inetpub\wwwroot\index.html to exist
 × File C:\inetpub\wwwroot\hahaha.jpg should exist
expected File C:\inetpub\wwwroot\hahaha.jpg to exist
 ✔ File C:\inetpub\wwwroot\iisstart.htm should not exist
 × File C:\inetpub\wwwroot\seven_of_hearts.html should exist
expected File C:\inetpub\wwwroot\seven_of_hearts.html to exist
 ✔ File C:\Users\Public\Documents\jack_of_hearts.docx should exist
 ✔ File C:\Users\Public\Documents\seven_of_spades.pdf should exist
 ✔ File C:\Users\Public\Pictures\ace_of_hearts.jpg should exist
 ✔ File C:\Users\Public\Pictures\ten_of_diamonds.png should exist
 ✔ File C:\jack_of_diamonds.png should exist
Profile: tests from ftp_site.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ setup-ftp-site: Setup FTP Site (1 skipped)
 ✔ File C:\Windows\System32\inetsrv\config\applicationHost.config should exist
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from glassfish.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ glassfish: Check GlassFish (4 skipped)
 ✔ File C:\glassfish should exist
 ✔ File C:\glassfish\glassfish4\glassfish\domains\domain1\config\admin-keyfile should exist
 ✔ File C:\glassfish\glassfish4\glassfish\domains\domain1\config\domain.xml should exist
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from iis.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ iis: IIS HTTP
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from java.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ∅ java: Check Java installation (2 failed)
 × File C:\Program Files\Java\jre1.8.0_131\bin\java.exe should exist
expected File C:\Program Files\Java\jre1.8.0_131\bin\java.exe to exist
 × File C:\Program Files\Java\jdk1.8.0_131\bin\java.exe should exist
expected File C:\Program Files\Java\jdk1.8.0_131\bin\java.exe to exist
 ✔ Command java -showversion exit_status should eq 1
Profile: tests from jenkins.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ jenkins: Check jenkins (2 skipped)
 ✔ File C:\Program Files\jenkins should exist
 ✔ File C:\Program Files\jenkins\jenkins.war should exist
 ✔ File C:\Program Files\jenkins\jenkins.exe should exist
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from jmx.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ jmx: Check JMX installation (2 skipped)
 ✔ File C:\Program Files\jmx should exist
 ✔ File C:\Program Files\jmx\Hello.class should exist
 ✔ File C:\Program Files\jmx\HelloMBean.class should exist
 ✔ File C:\Program Files\jmx\SimpleAgent.class should exist
 ✔ File C:\Program Files\jmx\jmx.exe should exist
 ✔ File C:\Program Files\jmx\start_jmx.bat should exist
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from manageengine.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ manageengine: ManageEngine (4 skipped)
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from mysql.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ mysql: MySQL (2 skipped)
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from openjdk6.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ∅ openjdk6: Check OpenJDK 6 (1 failed)
 ✔ File C:\openjdk6\openjdk-1.6.0-unofficial-b27-windows-amd64 should exist
 × Command C:\openjdk6\openjdk-1.6.0-unofficial-b27-windows-amd64\jre\bin\java.exe -version stdout should match "openjdk version \"1.6.0-unofficial\""
expected "" to match "openjdk version \"1.6.0-unofficial\""
Profile: tests from password_settings.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ✔ password-settings: Password settings
 ✔ Command secedit /analyze /db %windir%\securitynew.sdb /cfg C:\vagrant\resources\security_settings\secconfig.cfg /areas SECURITYPOLICY exit_status should eq 1
Profile: tests from psexec.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ psexec: PxExec (2 skipped)
 ↺ The `port` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from rails_service.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ rails_service: Rails Service (2 skipped)
 ✔ File C:\Program Files\Rails_Server\Gemfile should exist
 ✔ File C:\Program Files\Rails_Server\start_rails_server.bat should exist
 ↺ The `port` resource is not supported on your OS yet.
 ↺ The `windows_task` resource is not supported on your OS.
Profile: tests from ruby.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ✔ ruby: Ruby
 ✔ File C:\tools\ruby23 should exist
 ✔ Command ruby -v exit_status should eq 0
Profile: tests from snmp.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ snmp: Setup SNMP (3 skipped)
 ↺ The `registry_key` resource is not supported on your OS yet.
 ↺ The `registry_key` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from tomcat.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ tomcat: Check tomcat installation (2 skipped)
 ✔ File C:\Program Files\Apache Software Foundation\tomcat should exist
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from wamp.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ wamp: Check WAMP installation (4 skipped)
 ✔ File C:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf should exist
 ✔ File C:\wamp\alias\phpmyadmin.conf should exist
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from webdav.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ webdav: WebDAV (2 skipped)
 ✔ File C:\wamp\www\uploads should exist
 ✔ File C:\wamp\alias\httpd-dav.conf should exist
 ↺ The `service` resource is not supported on your OS yet.
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from winrm.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ winrm: WinRM
 ↺ The `port` resource is not supported on your OS yet.
Profile: tests from wordpress.rb
Version: (not specified)
Target: ssh://vagrant@192.168.1.117:22
 ↺ wordpress: Check WordPress Installation (1 skipped)
 ✔ File C:\Program Files\wordpress should exist
 ✔ File C:\Program Files\wordpress\update_ip.ps1 should exist
 ✔ File C:\wamp\www\wordpress should exist
 ↺ The `port` resource is not supported on your OS yet.
Profile Summary: 7 successful, 7 failures, 20 skipped
Test Summary: 68 successful, 13 failures, 59 skipped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment