This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn handle-file-select [evt] | |
| (.stopPropagation evt) | |
| (.preventDefault evt) | |
| (let [files (.-files (.-dataTransfer evt))] | |
| (dotimes [i (.-length files)] | |
| (let [rdr (js/FileReader.) | |
| the-file (aget files i)] | |
| (set! (.-onload rdr) | |
| (fn [e] | |
| (let [file-content (.-result (.-target e)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Extracts all INDX attributes from an NTFS image using Sleuthkit utilities | |
| # Willi Ballenthin <willi.ballenthin@gmail.com> | |
| # 2013-01-09 | |
| usage() | |
| { | |
| cat <<EOF | |
| Usage: $0 /path/to/image/ /path/to/output/directory/ | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def hexdump(src, length=16): | |
| FILTER = ''.join([(len(repr(chr(x))) == 3) and chr(x) or '.' for x in range(256)]) | |
| lines = [] | |
| for c in xrange(0, len(src), length): | |
| chars = src[c:c+length] | |
| hex = ' '.join(["%02x" % ord(x) for x in chars]) | |
| printable = ''.join(["%s" % ((ord(x) <= 127 and FILTER[ord(x)]) or '.') for x in chars]) | |
| lines.append("%04x %-*s %s\n" % (c, length*3, hex, printable)) | |
| return ''.join(lines) |
NewerOlder