Package de.pdf_scrutinizer.dynamic_heuristics

Examples of de.pdf_scrutinizer.dynamic_heuristics.LibemuShellcodeTester


            OutputToMongoDB output = new OutputToMongoDB(scrutinizer, cmd.getOptionValue("mongo"));
            scrutinizer.setOutput(output);

            if (cmd.hasOption("libemuPath")) {
                LibemuShellcodeTester libemuTester = null;
                try {
                    libemuTester = new LibemuShellcodeTester(scrutinizer, cmd.getOptionValue("libemuPath"));
                } catch (FileNotFoundException e) {
                    e.printStackTrace();
                }
                if (libemuTester != null) {
                    scrutinizer.getDynamicHeuristics().setShellcodeTester(libemuTester);
                }
            }

            scrutinizer.analyze();

        } else if (cmd.hasOption("pdf")) {
            Scrutinizer scrutinizer = new Scrutinizer();
            try {
                scrutinizer.setRootDocument(new File(cmd.getOptionValue("pdf")));
            } catch (FileNotFoundException e) {
                System.err.println(e.getMessage());
                return;
            }

            OutputToFiles output = new OutputToFiles(scrutinizer, scrutinizer.getHash(), "result");
            output.setSaveDynamicICode(false);
            output.setShowHexdump(false);
            scrutinizer.setOutput(output);

            if (cmd.hasOption("libemuPath")) {
                LibemuShellcodeTester libemuTester = null;
                try {
                    libemuTester = new LibemuShellcodeTester(scrutinizer, cmd.getOptionValue("libemuPath"));
                } catch (FileNotFoundException e) {
                    e.printStackTrace();
                }
                if (libemuTester != null) {
                    scrutinizer.getDynamicHeuristics().setShellcodeTester(libemuTester);
View Full Code Here


                log.error(e);
                continue;
            }

            try {
                scrutinizer.getDynamicHeuristics().setShellcodeTester(new LibemuShellcodeTester(scrutinizer, LIBEMU_DEFAULT_PATH));
            } catch (FileNotFoundException e) {
                log.error(e.getMessage());
            }
            scrutinizer.setOutput(new OutputNull());
View Full Code Here

TOP

Related Classes of de.pdf_scrutinizer.dynamic_heuristics.LibemuShellcodeTester

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.