Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu:/home/ubuntu# cryptsetup -v isLuks /dev/sda3 --debug
- # cryptsetup 1.6.6 processing "cryptsetup -v isLuks /dev/sda3 --debug"
- # Running command isLuks.
- # Installing SIGINT/SIGTERM handler.
- # Unblocking interruption on signal.
- # Allocating crypt device /dev/sda3 context.
- # Trying to open and read device /dev/sda3.
- # Initialising device-mapper backend library.
- # Trying to load LUKS1 crypt type from device /dev/sda3.
- # Crypto backend (gcrypt 1.6.5) initialized.
- # Detected kernel Linux 4.4.0-21-generic x86_64.
- # Reading LUKS header of size 1024 from device /dev/sda3
- # Key length 64, device size 975220736 sectors, header size 4036 sectors.
- # Releasing crypt device /dev/sda3 context.
- # Releasing device-mapper backend.
- Command successful.
- ====================================================================================================
- root@ubuntu:/home/ubuntu# cryptsetup -v luksDump /dev/sda3 --debug
- # cryptsetup 1.6.6 processing "cryptsetup -v luksDump /dev/sda3 --debug"
- # Running command luksDump.
- # Locking memory.
- # Installing SIGINT/SIGTERM handler.
- # Unblocking interruption on signal.
- # Allocating crypt device /dev/sda3 context.
- # Trying to open and read device /dev/sda3.
- # Initialising device-mapper backend library.
- # Trying to load LUKS1 crypt type from device /dev/sda3.
- # Crypto backend (gcrypt 1.6.5) initialized.
- # Detected kernel Linux 4.4.0-21-generic x86_64.
- # Reading LUKS header of size 1024 from device /dev/sda3
- # Key length 64, device size 975220736 sectors, header size 4036 sectors.
- LUKS header information for /dev/sda3
- Version: 1
- Cipher name: aes
- Cipher mode: xts-plain64
- Hash spec: sha1
- Payload offset: 4096
- MK bits: 512
- MK digest: 8c a2 07 b7 de 15 e6 0a d3 21 3f 4d 97 38 c2 20 b8 d7 4d 27
- MK salt: 26 79 86 03 07 15 91 54 48 cb cd 28 9a c5 4d 50
- 29 3a c0 b2 2c 60 09 47 c0 e4 bc 24 c5 5c d9 00
- MK iterations: 52625
- UUID: 1d161c19-6bc1-484b-9d2a-e3adfe25c0dc
- Key Slot 0: ENABLED
- Iterations: 200000
- Salt: 8b 6f 30 b9 f7 c8 f6 6a be ca fe d7 71 47 fc cb
- 03 4b 34 b5 79 2b a1 69 2c bb 67 10 ad ff b5 24
- Key material offset: 8
- AF stripes: 4000
- Key Slot 1: DISABLED
- Key Slot 2: DISABLED
- Key Slot 3: DISABLED
- Key Slot 4: DISABLED
- Key Slot 5: DISABLED
- Key Slot 6: DISABLED
- Key Slot 7: DISABLED
- # Releasing crypt device /dev/sda3 context.
- # Releasing device-mapper backend.
- # Unlocking memory.
- Command successful.
- ===============================================================================================
- root@ubuntu:/home/ubuntu# ./chk_luks_keyslots -v /dev/sda3
- parameters (commandline and LUKS header):
- sector size: 512
- threshold: 0.900000
- - processing keyslot 0: start: 0x001000 end: 0x03f800
- - processing keyslot 1: keyslot not in use
- - processing keyslot 2: keyslot not in use
- - processing keyslot 3: keyslot not in use
- - processing keyslot 4: keyslot not in use
- - processing keyslot 5: keyslot not in use
- - processing keyslot 6: keyslot not in use
- - processing keyslot 7: keyslot not in use
- ==================================================================================================
- parameters (commandline and LUKS header):
- sector size: 512
- threshold: 0.950000
- - processing keyslot 0: start: 0x001000 end: 0x03f800
- low entropy at: 0x001200 entropy: 0.948471
- Binary dump:
- 0x001200 36 FB 5A 0F DD 1C 79 01 66 E2 39 76 10 7C 00 3C 6.Z...y.f.9v.|.<
- 0x001210 91 81 C5 24 3D F6 9E C4 0E 4E AC 9D 6C 00 F3 41 ...$=....N..l..A
- 0x001220 55 EC 94 0E C4 7C FD A9 7B 47 DA 6E 39 25 AB CE U....|..{G.n9%..
- 0x001230 23 E3 B6 C5 06 A5 85 87 1D FA B0 5A 67 BD FC BE #..........Zg...
- 0x001240 B7 85 A3 EC E6 AC 3E 7B 3F 29 44 4B 15 A7 B3 70 ......>{?)DK...p
- 0x001250 6D F8 A5 03 B3 83 23 7F 38 71 56 35 48 EF 6D E8 m.....#.8qV5H.m.
- 0x001260 9B 79 A9 EC 54 62 53 A5 52 B1 06 30 09 06 9E 06 .y..TbS.R..0....
- 0x001270 96 72 52 06 F8 28 C0 84 2E D2 44 C0 B7 90 3B A5 .rR..(....D...;.
- 0x001280 E0 E3 1C D0 32 AF CC D2 3F B3 8C 81 9D 48 F7 60 ....2...?....H.`
- 0x001290 02 C6 2D 52 E6 D7 CC 9C CF 06 F1 E1 CC CF CA 1F ..-R............
- 0x0012a0 D5 D3 E7 EF 80 E7 4E 34 22 50 D0 B8 37 C1 8F CB ......N4"P..7...
- 0x0012b0 D1 C9 FD CD 1C 66 59 5E 90 8B D1 FC A2 DB FF B8 .....fY^........
- 0x0012c0 43 85 0E AE 74 3A 22 CF E6 39 5E 31 8F E0 90 B7 C...t:"..9^1....
- 0x0012d0 31 A5 87 55 5C 88 B5 9A 5D 1A 05 70 FF E4 58 21 1..U\...]..p..X!
- 0x0012e0 D0 04 0D 5C 50 E4 B6 61 E7 5F D2 84 82 00 6E F0 ...\P..a._....n.
- 0x0012f0 F4 12 CC 64 C4 DC B5 22 BB 71 8C A3 AA 15 62 0B ...d...".q....b.
- 0x001300 A4 22 17 67 3F 24 71 31 84 0C 5F 80 15 E2 44 9D .".g?$q1.._...D.
- 0x001310 86 BC 9A 82 AF 62 02 27 F8 F8 B4 B7 40 8A 13 63 .....b.'....@..c
- 0x001320 31 62 21 99 AC E4 65 2D 54 2E 6A FA D5 5B E3 02 1b!...e-T.j..[..
- 0x001330 0A 55 E6 F1 43 B0 3E DC 83 D7 B3 A2 E7 39 7D 35 .U..C.>......9}5
- 0x001340 E8 4C 15 42 7D 9B BF F3 14 FE 46 EF BC 4D D5 20 .L.B}.....F..M.
- 0x001350 96 19 9A ED 5E 58 EE 20 29 03 C4 DB 62 C7 74 10 ....^X. )...b.t.
- 0x001360 83 04 79 8D 7B 82 14 86 6D 97 57 52 9B F1 58 4E ..y.{...m.WR..XN
- 0x001370 7B A8 28 58 1D 01 B7 FA F0 00 B8 EF A7 34 81 72 {.(X.........4.r
- 0x001380 74 6A DB 94 61 58 24 2E 3B A8 68 C5 EF 37 6B A6 tj..aX$.;.h..7k.
- 0x001390 B0 09 0E E8 91 E8 2B D4 19 E8 A3 24 68 99 90 72 ......+....$h..r
- 0x0013a0 2D D8 0F 90 CF 05 BD 14 C0 3A 5C 78 3B FC 60 09 -........:\x;.`.
- 0x0013b0 57 51 04 6A 00 B2 25 92 1C 38 D2 02 00 3A 14 84 WQ.j..%..8...:..
- 0x0013c0 35 1F AF DA E9 68 91 F4 51 F9 AC E0 4D 59 AE ED 5....h..Q...MY..
- 0x0013d0 FB 2D 6F AF A1 36 36 06 71 44 DC C8 93 2D 4F AC .-o..66.qD...-O.
- 0x0013e0 A0 7B 6D BD 7F 9B 79 D6 81 33 B0 C3 B5 7E 39 7A .{m...y..3...~9z
- 0x0013f0 17 19 32 E4 26 1A 17 C1 27 BC 91 DB 86 CE E0 10 ..2.&...'.......
- low entropy at: 0x001400 entropy: 0.942049
- Binary dump:
- 0x001400 49 50 79 D4 99 EB A3 C0 6E E0 EA 75 C3 C0 39 97 IPy.....n..u..9.
- :
- ========================================================================================
- root@ubuntu:/home/ubuntu# cryptsetup -v luksOpen /dev/sda3 sda3_crypt --debug
- # cryptsetup 1.6.6 processing "cryptsetup -v luksOpen /dev/sda3 sda3_crypt --debug"
- # Running command open.
- # Locking memory.
- # Installing SIGINT/SIGTERM handler.
- # Unblocking interruption on signal.
- # Allocating crypt device /dev/sda3 context.
- # Trying to open and read device /dev/sda3.
- # Initialising device-mapper backend library.
- # Trying to load LUKS1 crypt type from device /dev/sda3.
- # Crypto backend (gcrypt 1.6.5) initialized.
- # Detected kernel Linux 4.4.0-21-generic x86_64.
- # Reading LUKS header of size 1024 from device /dev/sda3
- # Key length 64, device size 975220736 sectors, header size 4036 sectors.
- # Timeout set to 0 miliseconds.
- # Password retry count set to 3.
- # Password verification disabled.
- # Iteration time set to 1000 miliseconds.
- # Activating volume sda3_crypt [keyslot -1] using [none] passphrase.
- # dm version OF [16384] (*1)
- # dm versions OF [16384] (*1)
- # Detected dm-crypt version 1.14.1, dm-ioctl version 4.34.0.
- # Device-mapper backend running with UDEV support enabled.
- # dm status sda3_crypt OF [16384] (*1)
- # Interactive passphrase entry requested.
- Enter passphrase for /dev/sda3:
- # Trying to open key slot 0 [ACTIVE_LAST].
- # Reading key slot 0 area.
- # Using userspace crypto wrapper to access keyslot area.
- # Trying to open key slot 1 [INACTIVE].
- # Trying to open key slot 2 [INACTIVE].
- # Trying to open key slot 3 [INACTIVE].
- # Trying to open key slot 4 [INACTIVE].
- # Trying to open key slot 5 [INACTIVE].
- # Trying to open key slot 6 [INACTIVE].
- # Trying to open key slot 7 [INACTIVE].
- No key available with this passphrase.
- # Interactive passphrase entry requested.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement