NmapToImagePager is a Python script that reads .nmap
files, paginates the content, and saves each page as a cropped image file. This tool is useful for visualizing large Nmap scan results, making them easier to review and share.
- Processes single
.nmap
files or all.nmap
files in a specified directory. - Paginates the content and saves each page as a cropped JPEG image.
- Automatically adjusts the number of lines per page to fill the image.
- Saves image files with leading zeros in filenames to ensure correct sorting.
- Python 3.x
- Pillow (PIL)
-
Clone the repository:
git clone https://github.com/yourusername/NmapToImagePager.git cd NmapToImagePager
-
Install the required packages:
pip install pillow
To process a single .nmap
file:
python NmapToImagePager.py <nmap_file>
To process a all .nmap
files in a directory:
python NmapToImagePager.py <path to directory>
NmapImageToWord is a Python script that takes all images in a specified folder (typically created by NmapToImagePager.py
), imports them into a Microsoft Word document, and arranges the images and captions within the document.
- Processes all images in a specified folder.
- Imports the images into a Word document.
- Centers images and captions, and styles captions in Calibri, 9 points.
- Captions each image with its filename.
- If no output filename is provided, the folder name will be used as the filename for the Word document.
- Python 3.x
- Pillow
- python-docx
-
Clone the repository:
git clone https://github.com/yourusername/NmapImageToWord.git cd NmapImageToWord
-
Install the required packages:
pip install pillow python-docx
To import all images from a folder into a Word document:
python NmapImagesToWord.py <image_folder> [output_filename]