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 to delete private data in files in Linux system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

In this issue, the editor will bring you about how to delete the private data in the file in the Linux system. 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.

What is 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.

Mat (metadata Anonymous Toolbox) is a professional metadata cleaner written in python. It is part of the tor project and is standard with trails, the live version of the privacy-enhanced operating system.

Compared to tools such as exiftool, which can only write to a limited variety of file types, mat supports the elimination of metadata from a wide variety of files: pictures (png, jpg), documents (odt, docx, pptx, xlsx, and pdf), archives (tar, tar.bz2), audio (mp3, ogg, flac), and so on.

Install mat on linux

On debian-based systems (ubuntu or linux mint), mat has been packaged, so the installation is straightforward:

?

one

$sudo apt-get install mat

There is no pre-generated mat package on fedora, 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):

?

one

$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 from both the gui and the command line. Enter this command to start the gui of mat:

?

one

$mat-gui

Try 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

?

one

$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:

?

one

$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:

?

one

$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.

?

one

$mat-b.

To view the supported file types, run:

?

one

$mat-l

Troubleshooting

Currently I have encountered 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.

?

one

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

The above is the editor for you to share how to delete the private data in the Linux system, if you happen to have similar doubts, you might as well 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

Servers

Wechat

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

12
Report