Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romain
mat2
Commits
f1ceed13
Commit
f1ceed13
authored
6 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Bump the changelog
parent
5a5c642a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGELOG.md
+17
-0
17 additions, 0 deletions
CHANGELOG.md
README.md
+15
-8
15 additions, 8 deletions
README.md
doc/mat2.1
+9
-3
9 additions, 3 deletions
doc/mat2.1
mat2
+1
-1
1 addition, 1 deletion
mat2
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
43 additions
and
13 deletions
CHANGELOG.md
+
17
−
0
View file @
f1ceed13
# 0.4.0 - 2018-10-03
-
There is now a policy, for advanced users, to deal with unknown embedded fileformats
-
Improve the documentation
-
Various minor refactoring
-
Improve how corrupted PNG are handled
-
Dangerous/advanced cli's options no longer have short versions
-
Significant improvements to office files anonymisation
-
Archive members are sorted lexicographically
-
XML attributes are sorted lexicographically too
-
RSID are now stripped
-
Dangling references in [Content_types].xml are now removed
-
Significant improvements to office files support
-
Anonimysed office files can now be opened by MS Office without warnings
-
The CLI isn't threaded anymore, for it was causing issues
-
Various misc typo fix
# 0.3.1 - 2018-09-01
# 0.3.1 - 2018-09-01
-
Document how to install MAT2 for various distributions
-
Document how to install MAT2 for various distributions
...
...
This diff is collapsed.
Click to expand it.
README.md
+
15
−
8
View file @
f1ceed13
...
@@ -44,20 +44,27 @@ $ python3 -m unittest discover -v
...
@@ -44,20 +44,27 @@ $ python3 -m unittest discover -v
# How to use MAT2
# How to use MAT2
```
bash
```
bash
usage: mat2
[
-h
]
[
-v
]
[
-l
]
[
-s
|
-L
]
[
files
[
files ...]]
usage: mat2
[
-h
]
[
-v
]
[
-l
]
[
--check-dependencies
]
[
-V
]
[
--unknown-members
policy]
[
-s
|
-L
]
[
files
[
files ...]]
Metadata anonymisation toolkit 2
Metadata anonymisation toolkit 2
positional arguments:
positional arguments:
files
files
the files to process
optional arguments:
optional arguments:
-h
,
--help
show this
help
message and
exit
-h
,
--help
show this
help
message and
exit
-v
,
--version
show program
's version number and exit
-v
,
--version
show program
's version number and exit
-l, --list list all supported fileformats
-l, --list list all supported fileformats
-s, --show list all the harmful metadata of a file without removing
--check-dependencies check if MAT2 has all the dependencies it needs
them
-V, --verbose show more verbose status information
-L, --lightweight remove SOME metadata
--unknown-members policy
how to handle unknown members of archive-style files
(policy should be one of: abort, omit, keep)
-s, --show list harmful metadata detectable by MAT2 without
removing them
-L, --lightweight remove SOME metadata
```
```
Note that MAT2
**will not**
clean files in-place, but will produce, for
Note that MAT2
**will not**
clean files in-place, but will produce, for
...
...
This diff is collapsed.
Click to expand it.
doc/mat2.1
+
9
−
3
View file @
f1ceed13
.TH MAT2 "1" "
Septem
ber 2018" "MAT2 0.
3.1
" "User Commands"
.TH MAT2 "1" "
Octo
ber 2018" "MAT2 0.
4.0
" "User Commands"
.SH NAME
.SH NAME
mat2 \- the metadata anonymisation toolkit 2
mat2 \- the metadata anonymisation toolkit 2
.SH SYNOPSIS
.SH SYNOPSIS
mat2 [\-h] [\-v] [\-l] [\-
c
] [
\
-s |
\
-L]
\fR [files [
files ...]]
\fB
mat2
\fR
[\-h] [\-v] [\-l] [\-
V
] [-s | -L]
[\fIfiles\fR [\fI
files ...
\fR
]]
.SH DESCRIPTION
.SH DESCRIPTION
.B mat2
.B mat2
...
@@ -31,9 +31,15 @@ show program's version number and exit
...
@@ -31,9 +31,15 @@ show program's version number and exit
\fB\-l\fR, \fB\-\-list\fR
\fB\-l\fR, \fB\-\-list\fR
list all supported fileformats
list all supported fileformats
.TP
.TP
fB\-c\fR,
\fB\-\-check\-dependencies\fR
\fB\-\-check\-dependencies\fR
check if MAT2 has all the dependencies it needs
check if MAT2 has all the dependencies it needs
.TP
.TP
\fB\-V\fR, \fB\-\-verbose\fR
show more verbose status information
.TP
\fB\-\-unknown-members\fR \fIpolicy\fR
how to handle unknown members of archive-style files (policy should be one of: abort, omit, keep)
.TP
\fB\-s\fR, \fB\-\-show\fR
\fB\-s\fR, \fB\-\-show\fR
list harmful metadata detectable by MAT2 without
list harmful metadata detectable by MAT2 without
removing them
removing them
...
...
This diff is collapsed.
Click to expand it.
mat2
+
1
−
1
View file @
f1ceed13
...
@@ -14,7 +14,7 @@ except ValueError as e:
...
@@ -14,7 +14,7 @@ except ValueError as e:
print
(
e
)
print
(
e
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
__version__
=
'
0.
3.1
'
__version__
=
'
0.
4.0
'
def
__check_file
(
filename
:
str
,
mode
:
int
=
os
.
R_OK
)
->
bool
:
def
__check_file
(
filename
:
str
,
mode
:
int
=
os
.
R_OK
)
->
bool
:
if
not
os
.
path
.
exists
(
filename
):
if
not
os
.
path
.
exists
(
filename
):
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
f1ceed13
...
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
...
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools
.
setup
(
setuptools
.
setup
(
name
=
"
mat2
"
,
name
=
"
mat2
"
,
version
=
'
0.
3.1
'
,
version
=
'
0.
4.0
'
,
author
=
"
Julien (jvoisin) Voisin
"
,
author
=
"
Julien (jvoisin) Voisin
"
,
author_email
=
"
julien.voisin+mat2@dustri.org
"
,
author_email
=
"
julien.voisin+mat2@dustri.org
"
,
description
=
"
A handy tool to trash your metadata
"
,
description
=
"
A handy tool to trash your metadata
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment