Skip to content

Export carved files by command line #701

Answered by lfcnassif
MariasStory asked this question in Q&A
Discussion options

You must be logged in to vote

We don't have a sugar command line for that, but I think it is possible using the Web-API you noticed or a python script like this (just an example):

# First follow installation steps in https://pyjnius.readthedocs.io/en/stable/installation.html#
# You also must set environment variable CLASSPATH=c:\iped-xxx\iped.jar

from jnius import autoclass
File = autoclass('java.io.File')
IPEDSource = autoclass("iped.engine.data.IPEDSource")
iped = IPEDSource(File('E:\\case-folder'))

IPEDSearcher = autoclass("iped.engine.search.IPEDSearcher")
searcher = IPEDSearcher(iped)

# search for recovered files
searcher.setQuery("carved:true OR deleted:true")
ids = searcher.search().getIds()

# exporting fil…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MariasStory
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #691 on August 16, 2021 16:06.