示例#1
0
def main():

    ## sys.argv[1] = volatility profile 
    ## sys.argv[2] = full path on disk to your memory sample

    config = libapi.get_config(sys.argv[1], sys.argv[2])
    data = libapi.get_json(config, taskmods.PSList)

    ## `data` now contains json with two keys: `columns` and `rows`, where `columns`
    ## contains a list of column headings (matching the corresponding volatility 
    ## plugin output) and `rows` contains a list of the values for each object found.

    ## you can either print/save all columns, or you can drill down to a particular 
    ## column by getting the desired column's index as shown below and then accessing
    ## the index in each row. the following example prints each process' name. 
    
    name_index = data['columns'].index('Name')

    for row in data['rows']:
        print row[name_index]
示例#2
0
def main():

    ## sys.argv[1] = volatility profile
    ## sys.argv[2] = full path on disk to your memory sample

    config = libapi.get_config(sys.argv[1], sys.argv[2])
    data = libapi.get_json(config, taskmods.PSList)

    ## `data` now contains json with two keys: `columns` and `rows`, where `columns`
    ## contains a list of column headings (matching the corresponding volatility
    ## plugin output) and `rows` contains a list of the values for each object found.

    ## you can either print/save all columns, or you can drill down to a particular
    ## column by getting the desired column's index as shown below and then accessing
    ## the index in each row. the following example prints each process' name.

    name_index = data['columns'].index('Name')

    for row in data['rows']:
        print(row[name_index])
示例#3
0
 def getdata(self, plugin):
     if plugin == None:
         return None
     data = libapi.get_json(self.config, plugin)
     return data
示例#4
0
def process_list(config):
    '''Prints out the info in a good way'''
    data = libapi.get_json(config, taskmods.PSList) 
示例#5
0
 def getdata(self, plugin):
     if plugin == None:
         return None
     data = libapi.get_json(self.config, plugin)
     return data