Difference between pages "Jhead" and "Mutt Header Format"

From ForensicsWiki
(Difference between pages)
Jump to: navigation, search
(Use categories.)
 
 
Line 1: Line 1:
{{Infobox_Software |
+
<pre>
  name = jhead |
+
Date: Sat, 28 Jul 2007 18:29:15 +0200
  maintainer = [[Matthias Wandel]] |
+
To: Username <username@receivinghost.com>
  os = [[Linux]], [[Windows]] |
+
Subject: header test
  genre = [[Category:Metadata]][[:Category:Metadata|Metadata]] |
+
Message-ID: <20070728162915.GA2046@localhost>
  license = [[Category:Public Domain]][[:Category:Public Domain|Public Domain]] |
+
MIME-Version: 1.0
  website = [http://www.sentex.net/~mwandel/jhead/ sentex.net/~mwandel/jhead/] |
+
Content-Type: text/plain; charset=us-ascii
}}
+
Content-Disposition: inline
 +
User-Agent: Mutt/1.5.13 (2006-08-11)
 +
From: Username <username@sendinghost.com>
 +
</pre>
  
'''jhead''' is a program which can display or manipulate the non-image part of [[Exif]] compliant [[JPEG]] files.
+
Code responsible for generating Message-ID:
 +
<pre>
 +
char *mutt_gen_msgid (void)
 +
{
 +
  char buf[SHORT_STRING];
 +
  time_t now;
 +
  struct tm *tm;
 +
  const char *fqdn;
  
== Example ==
+
  now = time (NULL);
 +
  tm = gmtime (&now);
 +
  if(!(fqdn = mutt_fqdn(0)))
 +
    fqdn = NONULL(Hostname);
  
This is an example of the output of jhead:
+
   snprintf (buf, sizeof (buf), "<%d%02d%02d%02d%02d%02d.G%c%u@%s>",
 
+
            tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour,
$ jhead [[:Image:Simpic.jpg|Simpic.jpg]]
+
            tm->tm_min, tm->tm_sec, MsgIdPfx, (unsigned int)getpid (), fqdn);
File name    : Simpic.jpg
+
   MsgIdPfx = (MsgIdPfx == 'Z') ? 'A' : MsgIdPfx + 1;
File size    : 146060 bytes
+
  return (safe_strdup (buf));
File date    : 2006:04:04 20:10:51
+
}
Camera make  : Canon
+
</pre>
Camera model : Canon PowerShot Pro1
+
Date/Time    : 2005:12:15 14:47:02
+
Resolution   : 779 x 524
+
Flash used  : No
+
Focal length : 10.6mm  (35mm equivalent: 158mm)
+
CCD width    : 2.40mm
+
Exposure time: 0.0031 s  (1/320)
+
Aperture    : f/4.0
+
ISO equiv.   : 50
+
Exposure bias: 1.00
+
Whitebalance : Manual
+
Metering Mode: center weight
+
Exposure Mode: Manual
+
Exposure Mode: Auto bracketing
+

Revision as of 11:45, 28 July 2007

Date: Sat, 28 Jul 2007 18:29:15 +0200
To: Username <username@receivinghost.com>
Subject: header test
Message-ID: <20070728162915.GA2046@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.13 (2006-08-11)
From: Username <username@sendinghost.com>

Code responsible for generating Message-ID:

char *mutt_gen_msgid (void)
{
  char buf[SHORT_STRING];
  time_t now;
  struct tm *tm;
  const char *fqdn;

  now = time (NULL);
  tm = gmtime (&now);
  if(!(fqdn = mutt_fqdn(0)))
    fqdn = NONULL(Hostname);

  snprintf (buf, sizeof (buf), "<%d%02d%02d%02d%02d%02d.G%c%u@%s>",
            tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour,
            tm->tm_min, tm->tm_sec, MsgIdPfx, (unsigned int)getpid (), fqdn);
  MsgIdPfx = (MsgIdPfx == 'Z') ? 'A' : MsgIdPfx + 1;
  return (safe_strdup (buf));
}