Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(8)  |  Derive(0)  |  Import(6)

src/t/h/thug-HEAD/src/peepdf/peepdf.py   thug(Download)
import sys, os, optparse, re, urllib2, datetime, hashlib, traceback
from datetime import datetime
from PDFCore import PDFParser, vulnsDict
from PDFUtils import vtcheck
 
 
        if fileName != None:
            pdfParser = PDFParser()
            ret,pdf = pdfParser.parse(fileName, options.isForceMode, options.isLooseMode, options.isManualAnalysis)
            if options.checkOnVT:

src/p/d/pdfxray_public-HEAD/apps/peep/harness.py   pdfxray_public(Download)
from numpy import zeros
from PDFConsole import PDFConsole
from PDFCore import PDFParser
from pdfxray.apps.malpdfobj.ent_block import *
 
def snatch_contents(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    body = pdf.body
    all_objs = []
def snatch_version(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    statsDict = pdf.getStats()
    objs = []

src/p/d/pdfxray_public-HEAD/apps/peep/views.py   pdfxray_public(Download)
import optparse
from PDFConsole import PDFConsole
from PDFCore import PDFParser
from pdfxray.apps.malpdfobj.hash_maker import *
from pdfxray.apps.utilities.views import *
		user = None
		t = time()
		pdfParser = PDFParser()
		ret,data = pdfParser.parse(file, True, False)
		process_time = time() - t

src/p/d/pdfxray_public-HEAD/apps/peep/peepdf.py   pdfxray_public(Download)
import optparse
from PDFConsole import PDFConsole
from PDFCore import PDFParser
try:
	from spidermonkey import Runtime
	if not JS_MODULE:
		stats += 'Warning: Spidermonkey is not installed!!'+newLine
	pdfParser = PDFParser()
	ret,pdf = pdfParser.parse(fileName, options.isForceMode, options.isLooseMode)
	errors = pdf.getErrors()

src/p/d/pdfxray_lite-HEAD/lib/harness.py   pdfxray_lite(Download)
import simplejson as json
from PDFConsole import PDFConsole
from PDFCore import PDFParser
 
def ByteToHex( byteStr ):
def snatch_contents(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    body = pdf.body
    all_objs = []
def snatch_version(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    statsDict = pdf.getStats()
    objs = []

src/p/d/pdfxray_lite-HEAD/lib/peepdf.py   pdfxray_lite(Download)
import optparse
from PDFConsole import PDFConsole
from PDFCore import PDFParser
try:
	from spidermonkey import Runtime
	if not JS_MODULE:
		stats += 'Warning: Spidermonkey is not installed!!'+newLine
	pdfParser = PDFParser()
	ret,pdf = pdfParser.parse(fileName, options.isForceMode, options.isLooseMode)
	errors = pdf.getErrors()