Beispiel #1
0
def dotransform(request, response):
    page = build(request.value)
    try:
	    comptime = page.find(text=re.compile('timedatestamp.....: '))[34:51]
    except:
    	raise MaltegoException('Could not find Compile Time')
    	
    response += Phrase(comptime)
    	    
    return response
def dotransform(request, response):
	page = build(request.value)
	try:    
		results = page.find(text=re.compile('File names ')).findNext('ol').findAll('li')
		for entry in results:
			text = entry.text
			response += Filename(text)
	except:
		raise MaltegoException('Could not find Filenames')

	return response
Beispiel #3
0
def dotransform(request, response):
    page = build(request.value)
    try:
        results = page.findAll('td', {"class": "field-key"})
        for entry in results:
            text = entry.text
            if re.search('File names', text):
                lines = ''.join(entry.next.next.next.findAll(text=True))
                for line in lines.split():
                    response += Filename(line)
    except:
        raise MaltegoException('Could not find Filenames')

    return response
def dotransform(request, response):
	page = build(request.value)
	try:    
		results = page.findAll('td', {"class" : "field-key"})
		for entry in results:
			text = entry.text
			if re.search('File names', text):
				lines = ''.join(entry.next.next.next.findAll(text=True))
				for line in lines.split():
					response += Filename(line)
	except:
		raise MaltegoException('Could not find Filenames')

	return response
Beispiel #5
0
def dotransform(request, response):
	page = build(request.value)
	try:    
		results = page.findAll('span', {"class" : "field-key"})
		for entry in results:
			text = entry.text
			if re.search('F-PROT', text):
				e = entry.next.next.strip()
				response += Phrase(e)
			elif re.search('Command', text):
				e = entry.next.next.strip()
				response += Phrase(e)
			elif re.search('PEiD packer identifier', text):
				e= entry.next.next.strip()
				response += Phrase(e)
	except:
		raise MaltegoException('Could not find Packers')

	return response
def dotransform(request, response):
    page = build(request.value)
    try:
        results = page.findAll('span', {"class": "field-key"})
        for entry in results:
            text = entry.text
            if re.search('F-PROT', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('Command', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('PEiD packer identifier', text):
                e = entry.next.next.strip()
                response += Phrase(e)
    except:
        raise MaltegoException('Could not find Packers')

    return response
Beispiel #7
0
def dotransform(request, response):
	page = build(request.value)
	try:    
		results = page.findAll('span', {"class" : "field-key"})
		for entry in results:
			text = entry.text
			if re.search('TimeStamp', text):
				e = entry.next.next.strip()
				response += Phrase(e)
			elif re.search('FileType', text):
				e = entry.next.next.strip()
				response += Phrase(e)
			elif re.search('EntryPoint', text):
				e= entry.next.next.strip()
				response += Phrase(e)
			elif re.search('FileVersionNumber', text):
				e= entry.next.next.strip()
				response += Phrase(e)
			elif re.search('LanguageCode', text):
				e= entry.next.next.strip()
				response += Phrase(e)
			elif re.search('CharacterSet', text):
				e= entry.next.next.strip()
				response += Phrase(e)
			elif re.search('InternalName', text):
				e= entry.next.next.strip()
				response += Phrase(e)
			elif re.search('FileDescription', text):
				e= entry.next.next.strip()
				response += Phrase(e)
			elif re.search('OriginalFilename', text):
				e= entry.next.next.strip()
				response += Filename(e)
			elif re.search('ProductVersionNumber', text):
				e= entry.next.next.strip()
				response += Phrase(e)
	except:
		raise MaltegoException('Could not Exif Information')

	return response
def dotransform(request, response):
    page = build(request.value)
    try:
        results = page.findAll('span', {"class": "field-key"})
        for entry in results:
            text = entry.text
            if re.search('TimeStamp', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('FileType', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('EntryPoint', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('FileVersionNumber', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('LanguageCode', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('CharacterSet', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('InternalName', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('FileDescription', text):
                e = entry.next.next.strip()
                response += Phrase(e)
            elif re.search('OriginalFilename', text):
                e = entry.next.next.strip()
                response += Filename(e)
            elif re.search('ProductVersionNumber', text):
                e = entry.next.next.strip()
                response += Phrase(e)
    except:
        raise MaltegoException('Could not Exif Information')

    return response