mcookie

Autres langues

Langue: ko

Version: 25 September 1995 (fedora - 25/11/07)

Section: 1 (Commandes utilisateur)

이름

mcookie - xauth를 위한 magic cookies를 생성한다.

사용법

mcookie [-v] [-f filename ]

설명

mcookie 명령은 X authority system에서 사용하기 위해 128비트 무작위 16진수를 생성한다. 전형적으로 다음과 같은 명령형식으로 사용된다.
xauth add :0 . `mcookie`

무작위로 생성되는 16진수는 MD5 메시지를 담고 있는데, 그 메시지는 현재 시간, 프로세스 ID, 상위 프로세스, -f 옵션에서 지정한 파일의 내용, /dev/urandom, /dev/random, /dev/audio 장치들의 정보를 담고 있는 여러 바이트들이다. /proc 경로 안에 있는 여러 파일들이 또한 사용되기도 한다.

벌레

The entropy in the generated 128-bit is probably quite small (and, therefore, vulnerable to attack) unless a non-pseudorandom number generator is used (e.g., /dev/random under Linux).

It is assumed that none of the devices opened will block.

FILES

/dev/random
/dev/urandom
/dev/audio
/proc/stat
/proc/loadavg

SEE ALSO

X(1), xauth(1), md5sum(1)