File: Makefile

package info (click to toggle)
fcrackzip 1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 640 kB
  • ctags: 326
  • sloc: ansic: 2,723; sh: 743; makefile: 121; perl: 81
file content (39 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# test functionality

BIN	= fcrackzip
OPT	= -c a -u -v -v
LEN	= -l 1-2
PASS	= -p aa
OPTIONS = $(OPT) $(LEN)

FILE	= test.zip

all: test1 test2 test3

input.pass:
	echo "aa" > $@

$(FILE):
	#  create encrypted file, give 2 character password, like "ab"
	#  when asked
	touch a b c
	zip -e $(FILE) a b c

	rm -f a b c

\'$(FILE): $(FILE)
	cp $(FILE) \'$(FILE)

test1: $(FILE)
	# test simple crack
	$(BIN) $(OPTIONS) $(PASS) $(FILE)

test2: \'$(FILE)
	# test special filename
	$(BIN) $(OPTIONS) $(PASS) \'$(FILE)

test3: input.pass
	# test stdin
	$(BIN) $(OPTIONS) -p - $(FILE) < input.pass

# End of file