Beispiel #1
0
 def __init__(self, fname, mountpoint="/mnt/image"):
     super(FATC, self).__init__(fname, mountpoint)
     #self.fs_fstype = ""
     self.f_mounted = False
     self.f_filelist = []
     self.helper = Chelper()
     """ first set fs_fstype variable 
Beispiel #2
0
 def __init__(self, fname, mountpoint):
     self.f_mft = []
     self.f_mftkey = {}
     super(NTFSC, self).__init__(fname, mountpoint)
     self.fs_fstype = "ntfs"
     self.f_mounted = False
     self.helper = Chelper()
Beispiel #3
0
def NTFSCreateImage(name, size, garbage, clustersize=4):
    c = Chelper()
    if len(name) <= 8:
        imagename = name
    else:
        imagename = name[:8]

    if garbage:
        fill = "random"
    else:
        fill = "clean"

    result = call([
        c.binary, "create", "ntfs",
        str(size),
        str(clustersize), imagename, fill, name
    ],
                  shell=False)
    return result
Beispiel #4
0
def FAT32CreateImage(name, size, clustersize, garbage, parameters={}):

    if len(name) <= 8:
        imagename = name
    else:
        imagename = name[:8]

    if garbage:
        fill = "random"
    else:
        fill = "clean"

    result = call([
        Chelper().binary, "create", "FAT32",
        str(size),
        str(clustersize),
        str(512), imagename, fill, name
    ],
                  shell=False)
    return result
Beispiel #5
0
 def __init__(self,filesystem=None):
     super(BrowserHistory, self).__init__()
     self.chelper = Chelper()
     self.fs = filesystem