윈도우 서버 점검 스크립트 - windou seobeo jeomgeom seukeulibteu

티스토리 뷰

#해당 글의 모든 기준과 내용은 (한국인터넷진흥원) 주요정보 통신 기반 시설 기술적 취약점 분석 평가 상세 가이드 를 기준으로 하고 있습니다. 

[출처] : www.kisa.or.kr/public/laws/laws3_View.jspcPage=6&mode=view&p_No=259&b_No=259&d_No=106&ST=T&SV=

# 취약점 개요와 점검대상 및 판단 기준 

윈도우 서버 점검 스크립트 - windou seobeo jeomgeom seukeulibteu

#점검 및 조치 사례 

윈도우 서버 점검 스크립트 - windou seobeo jeomgeom seukeulibteu
윈도우 서버 점검 스크립트 - windou seobeo jeomgeom seukeulibteu

#배치 파일 

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

@echo off

echo               ====주요정보통신기반시설 기준으로 서비스 작성=====            

echo ============================================================================

 net start | find /"Alerter"                                                                >> whatservice.txt

 net start | find /"Clipbook"                                                                  >> whatservice.txt

 net start | find /"Computer Browser"                                                        >> whatservice.txt

 net start | find /"DHCP Client"                                                            >> whatservice.txt

 net start | find /"Alerter"                                                                >> service.txt

 net start | find /"Clipbook"                                                                  >> service.txt

 net start | find /"Computer Browser"                                                        >> service.txt

 net start | find /"DHCP Client"                                                            >> service.txt

for /F %%a in ("service.txt"do set "FileSize=%%~zi"

if %FileSize% EQU 0 ( GOTO PC5-Y

else ( GOTO PC-N )

:PC5-Y

echo.                                                                                        

echo     양호                                                                         

del service.txt    

:PC-N

echo.                                                                                        

echo     취약                                                                         

del service.txt    

Colored by Color Scripter

cs