summaryrefslogtreecommitdiffstats
path: root/src/godmode.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-07-20 07:43:29 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-07-20 07:43:29 +0200
commitfbdc01bbc359a38383ce36db1682e0db6c1f4046 (patch)
treec5face36f2cee2c5c049b2899e0e76e8ce81fd3d /src/godmode.c
parentfcb2816ea33817d6f23ec617c3336a2a74dc04d0 (diff)
Add detection of Vmware VMFS partition
Diffstat (limited to 'src/godmode.c')
-rw-r--r--src/godmode.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/godmode.c b/src/godmode.c
index 640d1c0..ce2d1b3 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -644,7 +644,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
if(res<=0 && test_nbr==6)
{
if(search_now==0)
- test_nbr=13;
+ test_nbr=14;
else
{
if(disk_car->pread(disk_car, buffer_disk0, 8 * DEFAULT_SECTOR_SIZE, partition->part_offset) == 8 * DEFAULT_SECTOR_SIZE)
@@ -691,7 +691,12 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
res=search_type_128(buffer_disk,disk_car,partition,verbose,dump_ind);
test_nbr++;
}
- if(test_nbr>=13)
+ if(res<=0 && test_nbr==13)
+ {
+ res=search_type_2048(buffer_disk,disk_car,partition,verbose,dump_ind);
+ test_nbr++;
+ }
+ if(test_nbr>=14)
{
sector_inc=1;
test_nbr=0;