Package org.sleuthkit.datamodel

Examples of org.sleuthkit.datamodel.SleuthkitCase


    public void findContacts() {

        List<AbstractFile> absFiles;
        try {
            SleuthkitCase skCase = Case.getCurrentCase().getSleuthkitCase();
            absFiles = skCase.findAllFilesWhere("name LIKE '%call_history%' "); //get exact file names
            if (absFiles.isEmpty()) { //asdfkjasfakljsdfhlaksdjfhasdlkjf
                return;
            }
            for (AbstractFile AF : absFiles) {
                try {
View Full Code Here


        } catch (ClassNotFoundException | SQLException e) {
            logger.log(Level.SEVERE, "Error opening database", e);
        }

        Case currentCase = Case.getCurrentCase();
        SleuthkitCase skCase = currentCase.getSleuthkitCase();
        try {
            AbstractFile f = skCase.getAbstractFileById(fId);
            try {
                // get display_name, mimetype(email or phone number) and data1 (phonenumber or email address depending on mimetype)
                //sorted by name, so phonenumber/email would be consecutive for a person if they exist.
                resultSet = statement.executeQuery(
                        "SELECT mimetype,data1, name_raw_contact.display_name AS display_name \n"
View Full Code Here

    /** the names of tables that potentially hold call logs in the dbs */
    private static final Iterable<String> tableNames = Arrays.asList("calls", "logs");

    public static void findCallLogs() {
        try {
            SleuthkitCase skCase = Case.getCurrentCase().getSleuthkitCase();

            for (AbstractFile abstractFile : skCase.findAllFilesWhere(fileNameQuery)) {
                try {
                    File file = new File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName());
                    ContentUtils.writeToFile(abstractFile, file);
                    findCallLogsInDB(file.toString(), abstractFile);
                } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.sleuthkit.datamodel.SleuthkitCase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.