-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtests.txt
More file actions
55 lines (42 loc) · 2.01 KB
/
tests.txt
File metadata and controls
55 lines (42 loc) · 2.01 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
These tests are designed to run in a test directory created for that purpose.
Tests will not work if the test directory is on an external drive with ignore permissions set.
To avoid this problem, create the test directory on the system volume.
Copy and paste individual commands into a Terminal window.
See Docs/examples.html for explanations and expected output.
Note that the commands in that file are obsolete.
# Setup (change the JARDIR path as needed to point to a directory containing AuthKit.jar and libauthkit.dylib)
JARDIR=path/to/JARs
alias testauth='java -Djava.library.path=$JARDIR -Dauthkit.imp=glguerin.authkit.imp.macosx.MacOSXAuthorization -cp $JARDIR/AuthKit.jar app.authkit.test.TestAuth'
# Example 1
testauth : /usr/bin/id : see
# Example 2
testauth : pre system.privilege.admin : zzz : /usr/bin/id : see
# Example 3
testauth /usr/bin/id : see : '#' : /usr/bin/id : see
# Example 4
testauth : see TRIAL : au+ TRIAL : see TRIAL : '#' : zzz : au+ TRIAL : see TRIAL
# Example 5
testauth : see TRIAL : au- TRIAL : '##' : see TRIAL
# Example 7
testauth : au+ system.privilege.admin : see : /bin/mkdir -p ./rooted : /bin/chmod 755 ./rooted : /usr/sbin/chown 0:0 ./rooted : /bin/ls -ld ./rooted
# Example 8
testauth : put : @ /usr/bin/tee rooted/t1 : /usr/bin/hexdump rooted/t1 : zzz 1
# Example 9
testauth : put \
: au+ system.privilege.admin PRIV \
: see system.privilege.admin PRIV \
: JAVA -Djava.library.path=$JARDIR -cp $JARDIR/AuthKit.jar \
-Dauthkit.imp=glguerin.authkit.imp.macosx.MacOSXAuthorization \
-Dattach=. \
-Dout.1=rooted/priv \
app.authkit.test.TestAttach system.privilege.admin PRIV OTHER \
: see system.privilege.admin PRIV OTHER
# Example 10
testauth : put \
: au+ system.privilege.admin PIPED \
: @ JAVA -Djava.library.path=$JARDIR -cp $JARDIR/AuthKit.jar \
-Dauthkit.imp=glguerin.authkit.imp.macosx.MacOSXAuthorization \
-Dattach=@ \
-Dout.1=rooted/piped \
app.authkit.test.TestAttach system.privilege.admin PIPED OTHER \
: see system.privilege.admin PIPED OTHER