캠핑과 개발

관련글 : 리눅스에서 만드는 심볼릭 링크


리눅스를 사용하다 보면 심볼릭 링크를 접하게 됩니다.

심볼릭 링크 검색하니 다음과 같이 정의가 되어 있네요.

컴퓨팅에서 심볼릭 링크(symbolic link) 또는 기호화된 링크는 절대 경로 또는 상대 경로의 형태로 된 다른 파일이나 디렉터리에 대한 참조를 포함하고 있는 특별한 종류의 파일이다


리눅스를 예를 들면 /usr/local/java/bin/java 라는 경로에 있는 java파일을 제일 ROOT 상단에 java라는 심볼릭 링크를 만들게 되면 ROOT 경로에 있는 java 파일을 실행하면 /user/local/java/bin/java를 실행하는 것과 같은 효과를 냅니다. 

매우 편리한 기능이죠. 


이런 기능이 윈도우에서도 존재합니다.

mklink라는 명령어로 Windows xp에서도 존재했는지는 알 수 없습니다만 windows7부터는 있네요


먼저 mklink명령어로 심볼릭 링크를 만들기 위해서는 관리자 권한으로 명령프롬프트를 실행해야 합니다.


mklink 명령어를 치니 다음과 같은 설명과 옵션이 나옵니다.

중요한건 /D 옵션을 주면 디렉터리 심볼릭 링크를 만들고 그냥 사용하게 되면 파일을 가지고 심볼릭 링크를 만든다고 되어 있습니다.


그럼 사용법은 다음과 같이 되겠네요.

예제에 사용한 디렉터리는 C:\myproject를 기준으로 설명합니다.


# 파일에 대한 심볼릭 링크 생성

사용법 : mklink [심볼릭파일명] [링크대상 파일명]

심볼릭파일명은 현재 위치가 어디냐에 따라서 상대경로 혹은 절대경로로 사용을 합니다.

메모장을 notepad는 이름으로 심볼릭 링크를 만듭니다.

notepad라는 상대경로를 지정을 했기 때문에 현재 명령어를 실행 시키는 위치에 notepad가 생성이 됩니다. 



# 디렉터리에 대한 심볼릭 링크 생성

사용법 : mklink /d  [심볼릭디렉터리] [링크대상 디렉터리]

심볼릭디렉터리는 현재 위치가 어디냐에 따라서 상대경로 혹은 절대경로로 사용을 합니다.

윈도우 폴더를 해당 명령어가 실행되는 위치에서 windws라는 심볼릭 링크를 만드는 예제입니다.


# 확인

메모장과 윈도우 폴더에 대한 심볼릭 링크를 만들었으니 제대로 되어있는지 확인 해보겠습니다.

탐색기에서 봤을 경우에는 기존에 윈도우에서 보던 바로가기와 비슷한 모양입니다.

마우스를 더블클릭을 하게 되면 파일일 경우 메모장이 실행되고 디렉터리일 경우 윈도우 폴더로 들어가는 것과 같은 결과를 보여주게 됩니다. 


명령프롬프트에서 dir 명령으로 실행하여 본 결과 모습입니다.

각각 심볼릭 링크 뒤에 실제 참조하고 있는 경로가 표시되고 있는것이 보이네요.


# 심볼릭 링크 삭제

심볼릭 링크를 삭제하기 위해서는 파일은 del 명령으로, 디렉터리는 rmdir 명령으로 삭제를 합니다.

윈도우 탐색기일 경우에는 그냥 del키로 삭제하시면 됩니다.


먼저 notepad 파일을 삭제하고, windows 디렉터리를 삭제한 후의 dir 명령을 통해서 해당 디렉터리의 파일 존재 유무를 확인했습니다.

깨끗하게 삭제가 되었네요.



예전부터 있는 명령어였는지 모르겠지만 이전에는 특정 프로그램을 통해서 심볼릭 링크를 걸었던 기억이 있는데 mklink 명령어가 있으니 참 편리하네요.






 




 




최근 윈도우를 사용하다가 보니 C:\나 D:\에 알수 없는 폴더가 생성이 되어있습니다.

바이러스를 의심하여 V3를 돌려보니 바이러스도 잡히지 않습니다.


원인이 뭔가 싶어 검색을 해보니 PC 문제는 아니고 일종의 백신 프로그램에서 제공되는 미끼였습니다.

사용중인 PC에는 V3가 백신이 설치 되었는데, 랜섬웨어 방지를 위해 V3에서 생성한 폴더이며, 정상적으로 생성된 폴더와 파일이라고 합니다.


 

첨부한 이미지를 보면 다음과 같은 폴더가 생성이 되었습니다.


정말 알수도 없는 그런 폴더입니다. 누가 봐도 먼가 문제가 발생되지 않았나 싶은 기분이 들게 만드네요..

그럼 해당 폴더에는 뭐가 있는지 한번 들어가봤습니다.



달랑 이름도 알수 없는 이미지 파일이 하나 있네요.

하지만 다른 PC에서 봤을때는 다수의 파일이 존재했으며, doc, pdf등의 여러 파일 확장자를 가지고 있었습니다.


해당 파일은 이미지 파일인데 이미지 뷰어로 열어보니 열리지 않네요..

그래서 메모장으로 한번 열어봤습니다.

그러니 파일이 열리네요.



파일 내용은 안랩에서 제공한 정상적인 파일로 랜섬웨어를 만든 디코이 파일이라고 합니다.


디코이(decoy)란 사냥에서 들새나 들짐승을 사정거리 안으로 유인하기 위해 만든 모형새라고 하네요..

한마디로 랜섬웨어를 유인하기 위한 미끼라고 하는거 같아요.


정상이라고 하나 그래도 폴더 이름이 마음에 들지 않는군요..



*랜섬웨어

몸값을 뜻하는 ransom과 제품을 뜻하는 ware의 합성어로, 사용자의 동의 없이 컴퓨터에 불법으로 설치되어서, 컴퓨터의 정상적인 이용을 방해하고, 이를 해제하기 위해 을 요구하는, 사용자의 파일을 인질로 잡는 악성 프로그램을 말한다


 




 


'낙서장' 카테고리의 다른 글

9V 스마트폰 고속 충전기 네오퀵 사용기  (0) 2016.07.26
인천지하철 2호선 노선도  (0) 2016.07.18
주안역 미용실 DASS헤어  (0) 2016.05.30
2012-05-28 부처님 오신날 춘천 청평사  (0) 2012.05.30
봐야할 웹툰  (0) 2012.05.17

iexplore.exe [ [ -embedding ] 
               [ -extoff ] 
               [ -framemerging ] 
               [ -k ] 
               [ -noframemerging ]
               [ -nohangrecovery ]
               [ -private ] ]
             [ URL ]


The following table describes the supported command-line options for Internet Explorer.

option

Description
-embeddingStarts Internet Explorer through OLE embedding (such as the WebBrowser Control).
-extoffInternet Explorer 7 and later versions. Starts Internet Explorer in No Add-ons mode, which you can use to troubleshoot problems with browser add-ons. For more information, see Troubleshooting Internet Explorer Add-ons.
-framemergingInternet Explorer 8 and later versions. Enables Internet Explorer to opportunistically merge new frame processes into existing frame processes. For more information, see Internet Explorer 8 and Reliability.
-kStarts Internet Explorer in kiosk mode. The browser opens in a maximized window that does not display the address bar, the navigation buttons, or the status bar.
-noframemergingInternet Explorer 8 and later versions. Prevents Internet Explorer from opportunistically merging new frame processes into existing frame processes.
-nohangrecoveryInternet Explorer 9. Prevents Internet Explorer from restarting a tab when it stops responding. This option enables application developers to use debugging tools to investigate problems with Browser Helper Objects (BHOs), Microsoft ActiveX controls, and other browser extentions.
-privateInternet Explorer 8 and later versions. Starts Internet Explorer with InPrivate Browsing set to active. For more information, see IE Blog: Online Privacy, Tracking, and InPrivate Filtering.
URLNavigates to the page or resource that you specify as URL, after Internet Explorer opens.

Superseded, Deprecated, and Obsolete Options

Some command-line options that earlier Internet Explorer versions supported are not supported in later versions of the browser because of one of the following reasons:

  • An option is replaced by another option. (That is, the option has been superseded.)

  • An option is recognized by the browser, but it does not function like it used to or we no longer recommend that you use it. (That is, the option is deprecated.)

  • An option is no longer recognized by the browser and might generate error conditions if you use it. (That is, the option is obsolete.)

The following table lists command-line options that are no longer supported and that you should not use.

Command–line optionStatus
-channelbandObsolete as of Internet Explorer 7.
-eObsolete as of Internet Explorer 7.
-evalObsolete as of Internet Explorer 7.
-nomergeAvailable in pre-release versions of Internet Explorer 8. This option has been superseded by the -noframemerging option that is described in the earlier table.
-newObsolete as of Internet Explorer 7.
-nowaitObsolete as of Internet Explorer 7.
-remoteObsolete as of Internet Explorer 8.
-vObsolete as of Internet Explorer 8.
-version

Obsolete as of Internet Explorer

http://msdn.microsoft.com/en-us/library/ee330728%28v=vs.85%29.aspx


'잡동사니' 카테고리의 다른 글

POLARTEC 소재 종류 및 기능  (0) 2013.12.13
자동차 정보  (0) 2013.06.25
명령줄에서 IE 브라우져 쿠키 및 데이터 삭제하기  (0) 2012.05.23
ISO 3166-1 국가코드  (0) 2012.05.17
수학 기호  (0) 2012.05.17