http://lilithlela.cyberguerrilla.org/?p=568

This blog intends to augment USP no. 3: The danger of metadata [digital footprints] (original here) for *nix distros:

There is a freeware program by the name of PDF Info (http://www.bureausoft.com/pdfinfo.exe) which lets you edit not only the aforementioned Title/Author/Subject/Keywords fields, but also the PDF Producer and Creator Application fields. It doesn’t, however, let you change the file creation and modification dates and times.

The PDF Toolkit(pdftk) claims to be that all-in-one solution. The closest thing to Adobe Acrobat for Linux.

You can download pdftk as source or as a Debian or RPM package, FreeBSD port, or Gentoo Ebuild. Binaries are available for Windows and Mac OS X too. If you decide to compile pdftk, check the build notesbefore you begin, in order to find out about any dependencies for your Linux distro or your platform.

I am lazy, I chose to install package. Installing the pdftk package on Ubuntu and Backtrack requires having "universe" enabled. Then:

$ sudo apt-get install pdftk

 

The following extra packages will be installed: gcj-4.4-base gcj-4.4-jre-lib libbcmail-java libbcmail-java-gcj libbcprov-java libgcj-bc libgcj-common libgcj10 libgnuinet-java libgnujaf-java libgnumail-java libitext-java libitext-java-gcj

After this operation, 66.5MB of additional disk space will be used.

Looking at the metadata

To look at the metadata that Adobe Reader does not show by default (replace 034045 with your pdf filename):

$ pdftk 034045.pdf dump_data

 

Altering the metadata

To alter the metadata first put the metadata in a file (replace 034045 with your pdf filename):

$ pdftk 034045.pdf dump_data output pdf-metadata

Open the pdf-metadata file and remove the data you wish scrubbed:

Save the pdf-metadata file. Now you can use that data to scrub the metadata from your file (replace 034045 with your pdf filename):

$ pdftk 034045.pdf update_info pdf-metadata output 034045-no-metadata.pdf

And check the result with:

$ pdftk 034045-no-metadata.pdf dump_data

 

And now the somewhat less elegant scrubbing on *nix

The creation date is gone and a new modification date has appeared. And the iText gives away the use of pdftk. These infokeys can be removed with sed:

sed -i 's/iText\ 2\.1\.7\ by\ 1T3XT//;s/D:20120409144213+02'\''00'\''//' 034045-no-metadata.pdf

 

The '\'' are for breaking out of the single quoted string thenescaping the single quote.

PdfID0 and PdfID1 are file identifiers. They are an md5 of various info about the file so that it has a unique string to identify the doc without having to use the filename. If you want to scrub those too, use sed as above. There's no geeky tricks needed for cleaning those two from the metadata with sed, it's pretty straightforward.

Views: 2267

"Destroying the New World Order"

TOP CONTENT THIS WEEK

THANK YOU FOR SUPPORTING THE SITE!

mobile page

12160.info/m

12160 Administrators

 

Latest Activity

Burbia commented on Burbia's group The Comment Section is Closed
1 hour ago
tjdavis posted a video

The Geography of Iran Explained.

Hey Everyone,This is my attempt to humanize the people and country of Iran. I hope I can educate people on the geography of this country outside of what we ...
8 hours ago
cheeki kea commented on Doc Vega's blog post Regrets That Cling to Me
"An awesome poem for the day. It is actually World Poetry Day a special day granted by UNESCO to…"
9 hours ago
cheeki kea favorited Doc Vega's blog post Regrets That Cling to Me
10 hours ago
Doc Vega commented on Doc Vega's blog post A Cure for Cancer?
"cheek kea thanks you so much. Yes, I agree, but there was so much espionage, mistrust, and military…"
Wednesday
cheeki kea commented on Doc Vega's blog post A Cure for Cancer?
"Yes I believe there's a Cure or Remedy for everything. As netizens across the world start to…"
Wednesday
Doc Vega posted a blog post

A Cure for Cancer?

 How many of you have agonized over seeing little kids at St. Jude’s Hospital with brain cancer,…See More
Tuesday
Евеліна posted a blog post

Розумний дім: як технології роблять життя комфортнішим

Що таке розумний дімРозумний дім — це система сучасних технологій, яка дозволяє автоматизувати…See More
Tuesday
Less Prone commented on tjdavis's photo
Thumbnail

Shabby Road

"Total disregard of public places. Import it to the west and call it enrichment. "
Mar 15
tjdavis posted a photo
Mar 15
Doc Vega posted a blog post
Mar 14
Less Prone favorited Doc Vega's photo
Mar 13
Less Prone commented on rlionhearted_3's photo
Thumbnail

What the fuck?

"When will the perverts picked out of the government and positions of power for thorough…"
Mar 13
Less Prone favorited Doc Vega's blog post The Re-Evaluation of our Current Reality
Mar 13
Less Prone favorited Doc Vega's blog post Former Naval Physicist and Photo Analyst Bruce Maccabee’s Wife Sees Alien Predator!
Mar 13
Doc Vega's 6 blog posts were featured
Mar 13
cheeki kea's blog post was featured
Mar 13
james will's 2 blog posts were featured
Mar 13
Less Prone left a comment for Роман
"Welcome on board. Your input is welcome, but could you provide a translation in…"
Mar 13
Less Prone left a comment for Tina Sullivan
"Did you lose the password= As far as I know we have changed nothing her. Continue as Sullivan."
Mar 13

© 2026   Created by truth.   Powered by

Badges  |  Report an Issue  |  Terms of Service

content and site copyright 12160.info 2007-2019 - all rights reserved. unless otherwise noted