This repository was archived by the owner on Sep 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwin.lua
More file actions
78 lines (78 loc) · 1.26 KB
/
Copy pathwin.lua
File metadata and controls
78 lines (78 loc) · 1.26 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
local pscp_parser = clink.arg.new_parser()
pscp_parser:set_flags(
"-ls",
"-p",
"-q",
"-r",
"-batch",
"-sftp", "-scp"
)
clink.arg.register_parser("pscp", pscp_parser)
local psftp_parser = clink.arg.new_parser()
psftp_parser:set_flags(
"-b",
"-bc",
"-be",
"-batch"
)
clink.arg.register_parser("psftp", psftp_parser)
local plink_parser = clink.arg.new_parser()
plink_parser:set_flags(
"-V",
"-pgpfp",
"-v",
"-load",
"-ssh", "-telnet", "-rlogin", "-raw", "-serial",
"-P",
"-l",
"-batch",
"-pw",
"-D",
"-L",
"-R",
"-X", "-x",
"-A", "-a",
"-t", "-T",
"-1", "-2",
"-4", "-6",
"-C",
"-i",
"-noagent",
"-agent",
"-m",
"-s",
"-N",
"-nc",
"-sercfg"
)
clink.arg.register_parser("plink", plink_parser)
clink.arg.register_parser("putty", plink_parser)
local whoami_parser = clink.arg.new_parser()
whoami_parser:set_flags(
"-UPN",
"-FQDN",
"-USER",
"-GROUPS",
"-PRIV",
"-LOGONID",
"-ALL",
"-FO",
"-NH"
)
clink.arg.register_parser("whoami", whoami_parser)
local ipconfig_parser = clink.arg.new_parser()
ipconfig_parser:set_flags(
"-all",
"-release",
"-release6",
"-renew",
"-renew6",
"-flushdns",
"-registerdns",
"-displaydns",
"-showclassid",
"-setclassid",
"-showclassid6",
"-setclassid6"
)
clink.arg.register_parser("ipconfig", ipconfig_parser)