¸¶¿îÆ®
[chonnom -111.73, /file/image >ls -al ÇÕ°è 4305036 drwxr-xr-x 3 root root 4096 3¿ù 14 16:39 . drwxr-xr-x 6 root root 4096 3¿ù 7 17:51 .. -rw-r--r-- 1 root root 3145728000 4¿ù 8 10:27 211110111095a.img
[chonnom-111.73, /file/image >losetup /dev/loop0 211110111095a.img
[chonnom-111.73, /file/image >kpartx -a /dev/loop0
[chonnom-111.73, /file/image >mount /dev/mapper/loop0p1 /mnt/
[chonnom-111.73, /file/image >cd /mnt/
[yunjoo-111.73, /mnt >ls -al ÇÕ°è 120 drwxr-xr-x 21 root root 4096 4¿ù 8 2011 . drwxr-xr-x 24 root root 4096 4¿ù 6 15:46 .. -rw-r--r-- 1 root root 0 4¿ù 8 2011 .autofsck drwxr-xr-x 2 root root 4096 2¿ù 28 20:17 bin drwxr-xr-x 2 root root 4096 2¿ù 28 17:00 boot -rw-r--r-- 1 root root 19711 4¿ù 27 2010 centos-release-5-5.el5.centos.i386.rpm drwxr-xr-x 2 root root 4096 2¿ù 28 19:56 dev drwxr-xr-x 41 root root 4096 4¿ù 8 2011 etc drwxr-xr-x 5 root root 4096 1¿ù 27 2010 home drwxr-xr-x 9 root root 4096 2¿ù 28 20:18 lib drwx------ 2 root root 16384 2¿ù 28 16:59 lost+found drwxr-xr-x 2 root root 4096 1¿ù 27 2010 media drwxr-xr-x 2 root root 4096 1¿ù 27 2010 mnt drwxr-xr-x 2 root root 4096 1¿ù 27 2010 opt dr-xr-xr-x 2 root root 4096 1¿ù 27 2010 proc drwxr-x--- 2 root root 4096 3¿ù 1 11:34 root drwxr-xr-x 2 root root 4096 2¿ù 28 20:27 sbin drwxr-xr-x 2 root root 4096 1¿ù 27 2010 selinux drwxr-xr-x 2 root root 4096 1¿ù 27 2010 srv drwxr-xr-x 2 root root 4096 1¿ù 27 2010 sys drwxr-xr-x 3 root root 4096 4¿ù 8 2011 tmp drwxr-xr-x 13 root root 4096 2¿ù 28 20:16 usr drwxr-xr-x 17 root root 4096 2¿ù 28 20:10 var
|
¸¶¿îÆ®ÇØÁ¦
[chonnom-111.73, / >umount /mnt [chonnom-111.73, / >kpartx -d /dev/loop0 [chonnom-111.73, / >losetup -d /dev/loop0 |
À̸§
losetup - ·çÇÁ ÀåÄ¡¸¦ ¼³Á¤, Á¦¾îÇÑ´Ù.
»ç¿ë¹ý
losetup [ -e ¾ÏÈ£È ] [ -o ¿É¼Â ] ·çÇÁ ÀåÄ¡
losetup [ -d ] ·çÇÁ ÀåÄ¡
¼³¸í
losetupÀº ·çÇÁ ÀåÄ¡¸¦ Á¤±Ô ÆÄÀÏ ¶Ç´Â ºí·° ÀåÄ¡¿Í ¿¬°á, ·çÇÁ ÀåÄ¡¿Í ºÐ¸®, ·çÇÁ ÀåÄ¡ÀÇ »óÅ ÆľÇÀ» Çϴµ¥ »ç¿ëµÈ´Ù. ·çÇÁ ÀåÄ¡ ÀÎÀÚ¸¸ ÁÙ °æ¿ì¿¡ ÇØ´çÇÏ´Â ·çÇÁ ÀåÄ¡ÀÇ »óŸ¦ º¸¿©ÁØ´Ù.
¿É¼Ç
-d
ƯÁ¤ ·çÇÁ ÀåÄ¡¿Í ¿¬°áµÈ ÆÄÀÏ ¶Ç´Â ÀåÄ¡¸¦ ·çÇÁ ÀåÄ¡¿Í ºÐ¸®ÇÑ´Ù.
-e ¾ÏÈ£È
µ¥ÀÌÅÍ ¾Ïȣȸ¦ ÇÑ´Ù. ´ÙÀ½ Å°¿öµå¸¸À» ÀνÄÇÑ´Ù.
NONE
¾ÏÈ£ÈÇÏÁö ¾Ê´Â´Ù. (ÃʱⰪ)
XOR
´Ü¼øÇÑ XOR ¾Ïȣȸ¦ ÇÑ´Ù.
DES
DES ¾Ïȣȸ¦ »ç¿ëÇÑ´Ù. DES ¾Ïȣȴ DES ÆÐÅ°Áö°¡ Ä¿³Î¿¡ Æ÷ÇԵǾúÀ» °æ¿ì¿¡¸¸ »ç¿ëÇÒ ¼ö ÀÖ´Ù. DES ¾Ïȣȴ »çÀü °ø°Ý¿¡ ´ëÇØ ¾ÏÈ£(password)¸¦ º¸È£Çϱâ À§ÇØ Ãß°¡ÀûÀÎ ½ÃÀÛ°ªÀ» ¿ä±¸ÇÑ´Ù.
-o ¿É¼Â
ÁöÁ¤ÇÑ ÆÄÀÏÀ̳ª ÀåÄ¡·Î ¿Å°ÜÁú µ¥ÀÌÅÍÀÇ ½ÃÀÛ ¿É¼Â ¹ÙÀÌÆ®
ÆÄÀÏ
/dev/loop0,/dev/loop1,... ·çÇÁ ÀåÄ¡ (ÁÖ¹øÈ£=7)
¿¹Á¦
¸ðµâ·Î »ç¿ëÇÑ´Ù¸é ´ÙÀ½ ¸í·ÉÀ¸·Î ¸ÕÀú ¸ðµâÀ» ·ÎµåÇØ¾ß ÇÑ´Ù.
# insmod loop.o
´ÙÀ½ ¸í·ÉµéÀº ·çÇÁ ÀåÄ¡¸¦ »ç¿ëÇÏ´Â ¿¹Á¦ÀÌ´Ù.
dd if=/dev/zero of=/file bs=1k count=100
losetup -e des /dev/loop0 /file
Password:
Init (up to 16 hex digits):
mkfs -t ext2 /dev/loop0 100
mount -t ext2 /dev/loop0 /mnt
...
umount /dev/loop0
losetup -d /dev/loop0
¸ðµâ·Î »ç¿ëÇÑ´Ù¸é ´ÙÀ½ ¸í·ÉÀ¸·Î ¸ðµâÀ» Á¦°ÅÇÒ ¼ö ÀÖ´Ù.
# rmmod loop