Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How the Linux system removes private data from files

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how the Linux system removes the private data in the file. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

Install MAT on Linux on Debian-based systems (Ubuntu or Linux Mint), MAT has been packaged, so the installation is straightforward:

Sudo apt-get install mat on Fedora, there is no pre-generated MAT package, so you need to generate it from the source code. This is the step I took to generate MAT on Fedora (if not successful, see the bottom of the tutorial):

$sudo yum install python-devel intltool python-pdfrw perl-Image-ExifTool python-mutagen $sudo pip install hachoir-core hachoir-parser $wget https://mat.boum.org/files/mat-0.5.tar.xz $tar xf mat-0.5.tar.xz $cd mat-0.5$ python setup.py install using MAT-GUI Anonymous metadata once installed, you can use MAT through both GUI and the command line. Enter this command to start the GUI of MAT:

Mat-gui attempts to clean up an instance document file (such as private.odt) that contains the following built-in metadata.

Click the "add" button to add files that need to be cleaned to MAT. Once the file is loaded, click the "OK" button to scan all hidden metadata information.

As long as the metadata is detected by MAT, the "State" status is marked as "Dirty". Double-click the file to view the detected metadata.

Click the Clean up button to clear the metadata in the file. MAT automatically clears all private metadata fields in the file.

The cleared state does not contain any privately identifiable traces:

Anonymous metadata from the command line $mat-c. As mentioned earlier, another way to invoke MAT is from the command line, which can be achieved using the mat command.

To check for any sensitive metadata, go to the directory where the file is located, and then run:

$mat-c. This scans all files under the current directory and its subdirectories and reports their status (cleaned or not cleaned).

You can use the "- d" option to view the real metadata detected:

$mat-d

If no options are provided for the mat command, the default action removes the file's metadata. If you want to keep a backup of the original files during cleanup, use the "- b" option. The following command clears the metadata for all files and stores the original file as a "* .bak" file.

$mat-b.

To view the supported file types, run:

$mat-l

Troubleshooting I currently have the following problems using the compiled version of MAT on Fedora. When I tried to clean up the metadata of the archive / document file (such as .gz, .odt, * .docx) in Fedora, MAT failed due to the following error. If you know how to solve this problem, please reply to me in the comments.

File "/ usr/lib64/python2.7/zipfile.py", line 305, in _ _ init__ raise ValueError ('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 what is the Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

This is how the Linux system shared by Xiaobian removes private data from files. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report