2019년 7월 28일 일요일

WMIC를 활용한 시스템 정보 수집용 스크립트

@echo off
cls
echo GET System Information

if %1$==$ (
 rem use the local computer name if nothing is specified
set computer=%computername%
) else (
rem use the computer name passed as a parameter
set computer=%1
)
rem  Creating report for %computer%
set htmlfile=%computer%.html

wmic OS get /format:hform  > "%htmlfile%"
wmic computersystem get /format:hform  >> "%htmlfile%"
wmic service where state="running" get caption,name,pathname,state,status,acceptpause,acceptstop,processid,systemname,startname  /format:htable >> "%htmlfile%"
wmic service where state="stopped" get caption,name,pathname,state,status,acceptpause,acceptstop,processid,systemname,startname  /format:htable >> "%htmlfile%"
wmic csproduct list brief /format:htable >> "%htmlfile%"
wmic cpu list brief /format:htable >>"%htmlfile%"
wmic diskdrive list brief /format:htable >>"%htmlfile%"
wmic logicaldisk list brief /format:htable >>"%htmlfile%"
wmic volume list brief /format:htable >>"%htmlfile%"
wmic NICCONFIG list brief /format:htable >>"%htmlfile%"
wmic product get name, version /format:htable >> "%htmlfile%"


위와 같은 스크립트를 getSystemInfo.bat와 같은 파일로 저장 후 실행

홈페이지 jQuery 라이브러리에서 CVE-2019-11358 취약점 패치 여부 확인 방법

현재 홈페이지에서 사용 중인 jQuery 라이브러리가 CVE-2019-11358 취약점 패치를 적용했는지 확인하는 방법은 다음과 같습니다. 1. jQuery 버전 확인 홈페이지 소스 코드를 확인하여 jQuery 라이브러리 버전을 직접 확인합니다. 웹 ...