Mike Murr

Solving Technological Problems With Behavioral Science

Connect

  • Email
  • RSS
  • Twitter

Copyright © 2025 · Mike Murr · All Rights Reserved

Copyright © 2025 · MikeMurr Theme on Genesis Framework · WordPress · Log in

Home » Archives for December 2015

Archives for December 2015

Transfer a disk image via dd and ssh

December 21, 2015 by Mike Leave a Comment

To transfer a disk image via an ssh tunnel (think evidence collection across the internet):

dd if=</path/to/disk> | ssh user@host “dd of=<filename>”

For example:

dd if=/dev/sda | ssh user@example.com “dd of=image.dd”

In practice, you’ll probably want to use some additional dd options such as bs (block size), count, etc. If doing this for evidentiary purposes, dcfldd, dc3dd, ewfacquire, and others, provide more forensic-friendly options.

To compress data before sending it across the network, add bzip2 (or gzip) with another pipe:

dd if=</path/to/disk> | bzip2 | ssh user@host “dd of=<filename”.

 

Filed Under: Security Tagged With: forensics

Creating an EICAR test file

December 16, 2015 by Mike Leave a Comment

Copy and save the following as eicar.com (yes, it’s an all ASCII .com file):

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

As a sanity check, the file should be 68 bytes long. You can also try running the file, which should print “EICAR-STANDARD-ANTIVIRUS-TEST-FILE” to the screen.

Alternatively, you can download eicar.com.txt.

Filed Under: Security