KatzKatz is a python3 tool to parse text files containing output from Mimikatz sekurlsa::logonpasswords or pypykatz lsa minidump modules. When performing an internal network pentest, sometimes you found yourself gathering many lsass.exe process dumps, open them using Mimikatz\pypykatz to extract cl...
filepath_or_buffer #需要读取的文件及路径 sep=',' # 以,为数据分隔符 shkiprows= 10 # 跳过前十行 nrows = 10 # 只去前10行 usecols=[0,1,2,...] #需要读取的列,可以是列的位置编号,也可以是列的名称 parse_dates = ['col_name'] # 指定某行读取为日期格式 index_col = ['col_1','col...
""" import http.client import string import re import os import sys import xml.etree.ElementTree as etree import stat import logging import traceback import glob import ops import ipaddress from hashlib import sha256 from urllib.request import urlretrieve from urllib.parse import urlparse, urlun...
importhtmlimportreimportosdefparse_timecodes(timecode_range):"""Extract start and end timecodes from a timecode range and convert to SMIL time format."""match=re.match(r"(\d{2}):(\d{2}):(\d{2}),(\d{3}) --> (\d{2}):(\d{2}):(\d{2}),(\d{3})",timecode_range)if...
image=pdf_file.convert(image_type) image_blobs=[] forimginimage.sequence: img_page=wi(image=img) image_blobs.append(img_page.make_blob(image_type)) extract=[] forimg_blobinimage_blobs: image=Image.open(io.BytesIO(img_blob)) text=pytesseract.image_to_string(image,lang=lang) ...
classfile(object):defclose(self):#real signature unknown; restored from __doc__关闭文件"""close() -> None or (perhaps) an integer. Close the file. Sets data attribute .closed to True. A closed file cannot be used for further I/O operations. close() may be called more than once wit...
open("document.docx", "rb") as docx_file: result = mammoth.convert_to_html(docx_file) ...
tree=ET.parse("test.xml")# 根节点root=tree.getroot()# 标签名print('root_tag:',root.tag)forstuinroot:# 属性值print("stu_name:",stu.attrib["name"])# 标签中内容print("id:",stu[0].text)print("name:",stu[1].text)print("age:",stu[2].text) ...
x/net/html是google自己维护的库,主要可以帮助我们解析网页数据,我们只需要导入golang.org/x/net/html这个包就可以,使用方法也挺简单,就不在这里做具体介绍,可以到GO圣经:https://godoc.org/golang.org/x/net/html#Parse 进行学习,里面有样例,很好懂。
escape re.sre_parse re.L re.U re.findall re.sub re.LOCALE re.UNICODE re.finditer re.subn re.M re.VERBOSE re.match re.sys re.MULTILINE re.X re.purge re.template In [262]: re.match('a','abc') Out[262]: <_sre.SRE_Match at 0x319b3d8> #返回一个match对象 In [263]: ...