Skip to content

Instantly share code, notes, and snippets.

@yosangwon
Created June 26, 2015 15:09
Show Gist options
  • Save yosangwon/60262bf56077d8d3e35d to your computer and use it in GitHub Desktop.
Save yosangwon/60262bf56077d8d3e35d to your computer and use it in GitHub Desktop.
USB 악성 코드가 숨긴 파일과 폴더를 다시 복구하는 스크립트
' USB 악성코드 뒤처리
' by @devleoper in @HYU-ICEWALL
dim filesystemobj
set filesystemobj = createobject("scripting.filesystemobject")
for each drive in filesystemobj.drives
if drive.isready = true then
if drive.freespace > 0 then
if drive.drivetype = 1 then
x=msgbox(drive.path & " 드라이브를 확인합니다.", 0, "USB 악성코드 뒤처리")
for each file in filesystemobj.getfolder( drive.path & "\" ).Files
file.attributes = 0
next
for each folder in filesystemobj.getfolder( drive.path & "\" ).subfolders
folder.attributes = 0
next
end If
end If
end if
next
x=msgbox("숨김 파일 해제 완료!" ,0, "USB 악성코드 뒤처리")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment