• Stars
    star
    108
  • Rank 314,333 (Top 7 %)
  • Language
    Go
  • License
    MIT License
  • Created about 8 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GO - Minimal parser for .DS_Store files

Go .DS_Store parser

This is a quick and dirty Go parser for .DS_Store files. I focused on the extraction of file names and ignored other parameters.

It does not support the full set of structure formats, so it might break in some scenarios.

#Useful information: The following descriptions and sourcecodes were quite helpful:

#Example code

package main

import (
	"fmt"
	"os"
	"flag"
	"github.com/gehaxelt/ds_store"
	"io/ioutil"
)

func main() {

	var fileName string

	flag.StringVar(&fileName, "i", "", "DS_Store input file")
	flag.Parse()

	if fileName == "" {
		panic("FileName (-i): Must be specified")
	} else if _, err := os.Stat(fileName); os.IsNotExist(err) {
		panic("FileName (-i): File does not exist:" + fileName)
	}

	dat, err := ioutil.ReadFile(fileName)

	if err != nil {
		panic(err)
	}

	a, err := ds_store.NewAllocator(dat)

	filenames, err := a.TraverseFromRootNode()
	if err != nil {
		panic(err)
	}

	for _,f := range filenames {
		fmt.Printf("File: %s \n", f)
	}
}
./ds_storeviewer -i samples/DS_Store-2
File: joomlatools-files 
File: joomlatools-files 
File: joomlatools-files 
File: joomlatools-files 

License

See License.md

More Repositories

1

Python-dsstore

A library for parsing .DS_Store files and extracting file names
Python
360
star
2

RNN-Passwords

Using RNNs for password cracking
80
star
3

Bash-INWX-DynDNS

Small DynDNS script for domains registered at inwx.de
Shell
56
star
4

python-rss2irc

A simple IRC bot which fetches and posts RSS feeds
Python
26
star
5

PHP-Logger-Class

PHP Logger class to easily log notices, warnings, errors or fatal errors into a logfile with a timestamp.
PHP
23
star
6

python-trafficgenerator

This tool can be used to generate real (fake) traffic on a specific website (domain).
Python
21
star
7

PHP-C---JunkCodeGenerator

A junkcode generator for C++ classes written in PHP
C++
21
star
8

CSS-WhiteLake

White Lake is a theme for octopress
JavaScript
16
star
9

python-httpcreds

A simple tool to extract http authentication credentials from websites
Python
9
star
10

PHP-Easy-PGP-Composer

Browser based PGP message composer
PHP
9
star
11

Bash-routes-apply.sh

A small bash script to safely apply route rules
Shell
9
star
12

Python-Wordpress-Plugin-Downloader

Quick & Dirty script to download all wordpress plugins
Python
7
star
13

docker-tor-pastebin

A dockerized hidden service pastebin
Dockerfile
7
star
14

PHP-SimpleBlogCMS

Just a little CMS for blogging.
PHP
6
star
15

sshfp-dns-measurement

Code used for the "Oh SSH-it, what's my fingerprint? A Large-Scale Analysis of SSH Host Key Fingerprint Verification Records in the DNS" paper
Python
6
star
16

MasterThesis-FPNET

Python
4
star
17

C-Intelbacklight

A small tool that mimics xbacklight for intel_backlight
C
4
star
18

PHP-Webopal

A webinterface for Opal
PHP
4
star
19

PHP-WordlistGenerator

PHP-Wordlistgenerator class for generating generic wordlists.
PHP
4
star
20

Bash-Uberspace-Backup-Script

A small backup script for uberspaces
Shell
3
star
21

PHP-Pinger-Class

Small php class for pinging a server on a specific port
PHP
2
star
22

Nodejs-Simple-Linklist

Simple linklist written in nodejs
JavaScript
2
star
23

PHP-Passwordgenerator-Class

PHP Passwordgenerator Class
PHP
1
star
24

python-i3screens

i3wm helper tool for workspaces on multiple monitors
Python
1
star
25

python-libsshfp

A tiny library to handle and validate SSHFP DNS records
Python
1
star
26

Android-AltcoinfaucetApp

Android App for the website altcoinfaucet.net
Java
1
star
27

thesis-imwa

IMWA Framework: Code for a framework to calculate impact measures for Wikipedia authors
OCaml
1
star
28

python-routerlabtools

Some tools for the routerlab module @ TU Berlin
Python
1
star
29

Opal-Ascii

Converting Nat->Char || Char->Nat in OPAL
C
1
star
30

PHP-SyMDWiki

Simple markdown wiki built on top of symfony2
PHP
1
star
31

Python-MyBase64

Implementation of Base64 in Python
Python
1
star