{"repo":"muchdogesec/file2txt","free":true,"listed":false,"github":"https://github.com/muchdogesec/file2txt","clone":"git clone https://github.com/muchdogesec/file2txt.git","description":"Turn a supported list of filetypes (e.g. .docx) into a markdown structured text file. Also optionally defangs indicators and extract texts from images. Built for threat intel use-cases.","language":"Python","stars":12,"topics":["html-to-markdown","image-to-text","markdown","ocr","pdf-to-markdown"],"license":"Apache-2.0","category":"media-processing","readme_excerpt":"file2txt Overview Another tool of ours, txt2stix, takes a .txt file input and then extracts IoCs (indicators of compromise) and TTPs (tactics, techniques and procedures). However, in many cases the file a user wants to process is not usually in structured plain text file format (e.g. is usually in pdf, docx, etc. formats). These files also commonly contain images with text that are useful to extract too. file2txt is a Python library takes common file formats and turns them into plain text (a .md file) with Markdown styling to make it as nice as possible to read. In addition to the printed text, file2txt can also extract text from images found in the input file. Essentially file2txt is used by us to produce a text output that can be scanned for IoCs and TTPs (by txt2stix), but could be used for a variety of other use-cases as you see fit. The general flow of the file2txt is as follows: https://miro.com/app/board/uXjVKZXyIxA=/ Download and Install Configuration options file2txt has various settings that are defined in an .env file. To create a template for the file: To see more information about how to set the variables, and what they do, read the .env.markdown file. Optional: Add Marker API Key ( MARKER API KEY ) file2txt uses the Marker API to process the following filetypes; PDF .pdf ( application/pdf ) Word .doc ( application/msword ), .docx (application/vnd.openxmlformats-officedocument.wordprocessingml.document ) Powerpoint .ppt ( application/vnd.ms-powerpoint ), .pptx ( ","default_branch":null,"files":null,"tree":[],"storefront":"/r/muchdogesec","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/muchdogesec/file2txt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}