Open
Conversation
Only report formatting and some system info checks are ported from PSv3 script so far.
Made check more robust for checking networking information.
Verified working on Windows XP and Windows 7 SP1.
Added local administrators group check and AlwaysInstallElevated checks.
Collaborator
|
Setting TESTING to false does not turn everything off. C:\Users\student\Downloads>.\chaps.bat
##########################
# Saving output to: C:\Users\student\AppData\Local\Temp\SANS-CORE-VM_20251805_195329\SANS-CORE-VM_chaps.txt
##########################
[*] Collecting systeminfo to: C:\Users\student\AppData\Local\Temp\SANS-CORE-VM_20251805_195329\SANS-CORE-VM_sysinfo.txt
[DEBUG] Setting IPv4_ADDR to: " 192.168.85.140"
[DEBUG] Set IPv4_ADDR: 192.168.85.140
[DEBUG] Finished checking for "IPv4 Address" - IPv4_ADDR: 192.168.85.140
# Report saved to: C:\Users\student\AppData\Local\Temp\SANS-CORE-VM_20251805_195329\SANS-CORE-VM_chaps.txt |
Collaborator
|
WMIC outputs appear to remove the starting [DEBUG] Called GetWMICValue
[DEBUG] WMIC_CLASS: os
[DEBUG] WMIC_PROPERTY: OSArchitecture
[DEBUG] WMIC_EXE: C:\Windows\system32\wbem\wmic.exe
[DEBUG] Attempting: wmic os get OSArchitecture
[DEBUG] WMIC Result: 64-bit
"DEBUG] Returning RESULT: "64-bit
[DEBUG] Setting OS_ARCH: 64-bit
[DEBUG] Attempting to get Domain/Workgroup
[DEBUG] Calling GetWMICValue computersystem Domain
[DEBUG] Called GetWMICValue
[DEBUG] WMIC_CLASS: computersystem
[DEBUG] WMIC_PROPERTY: Domain
[DEBUG] WMIC_EXE: C:\Windows\system32\wbem\wmic.exe
[DEBUG] Attempting: wmic computersystem get Domain
[DEBUG] WMIC Result: WORKGROUP
"DEBUG] Returning RESULT: "WORKGROUP
[DEBUG] Setting DOMAIN: WORKGROUP
[*] Windows Product: Microsoft Windows 10 Enterprise
[*] OS Version: 10.0.19045
[*] OS Architecture: 64-bit
[*] System Type: x64-based PC
[*] Domain/Workgroup: WORKGROUP |
Collaborator
|
I want to move the outputs to the local directory instead of # Report saved to: C:\Users\student\AppData\Local\Temp\SANS-CORE-VM_20251805_195329\SANS-CORE-VM_chaps.txt |
Added flags for enable/disable checks Put WMIC queries into function call Put Admin Rights check to function call Put check time into funciton call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Only report formatting and some system info checks are ported from PSv3 script so far.