Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/js/generated/ts/rdp.ts
2852 views
1
/**
2
* CheckRDPAuth checks if the given host and port are running rdp server
3
* with authentication and returns their metadata.
4
* If connection is successful, it returns true.
5
* @example
6
* ```javascript
7
* const rdp = require('nuclei/rdp');
8
* const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389);
9
* log(toJSON(checkRDPAuth));
10
* ```
11
*/
12
export function CheckRDPAuth(host: string, port: number): CheckRDPAuthResponse | null {
13
return null;
14
}
15
16
/**
17
* CheckRDPEncryption checks the RDP server's supported security layers and encryption levels.
18
* It tests different protocols and ciphers to determine what is supported.
19
* @example
20
* ```javascript
21
* const rdp = require('nuclei/rdp');
22
* const encryption = rdp.CheckRDPEncryption('acme.com', 3389);
23
* log(toJSON(encryption));
24
* ```
25
*/
26
export function CheckRDPEncryption(host: string, port: number): RDPEncryptionResponse | null {
27
return null;
28
}
29
30
/**
31
* IsRDP checks if the given host and port are running rdp server.
32
* If connection is successful, it returns true.
33
* If connection is unsuccessful, it returns false and error.
34
* The Name of the OS is also returned if the connection is successful.
35
* @example
36
* ```javascript
37
* const rdp = require('nuclei/rdp');
38
* const isRDP = rdp.IsRDP('acme.com', 3389);
39
* log(toJSON(isRDP));
40
* ```
41
*/
42
export function IsRDP(host: string, port: number): IsRDPResponse | null {
43
return null;
44
}
45
46
/**
47
* CheckRDPAuthResponse is the response from the CheckRDPAuth function.
48
* this is returned by CheckRDPAuth function.
49
* @example
50
* ```javascript
51
* const rdp = require('nuclei/rdp');
52
* const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389);
53
* log(toJSON(checkRDPAuth));
54
* ```
55
*/
56
export interface CheckRDPAuthResponse {
57
58
PluginInfo?: ServiceRDP,
59
60
Auth?: boolean,
61
}
62
63
/**
64
* RDPEncryptionResponse is the response from the CheckRDPEncryption function.
65
* This is returned by CheckRDPEncryption function.
66
* @example
67
* ```javascript
68
* const rdp = require('nuclei/rdp');
69
* const encryption = rdp.CheckRDPEncryption('acme.com', 3389);
70
* log(toJSON(encryption));
71
* ```
72
*/
73
export interface RDPEncryptionResponse {
74
// Security Layer Protocols
75
NativeRDP: boolean;
76
SSL: boolean;
77
CredSSP: boolean;
78
RDSTLS: boolean;
79
CredSSPWithEarlyUserAuth: boolean;
80
81
// Encryption Levels
82
RC4_40bit: boolean;
83
RC4_56bit: boolean;
84
RC4_128bit: boolean;
85
FIPS140_1: boolean;
86
}
87
88
/**
89
* IsRDPResponse is the response from the IsRDP function.
90
* this is returned by IsRDP function.
91
* @example
92
* ```javascript
93
* const rdp = require('nuclei/rdp');
94
* const isRDP = rdp.IsRDP('acme.com', 3389);
95
* log(toJSON(isRDP));
96
* ```
97
*/
98
export interface IsRDPResponse {
99
100
IsRDP?: boolean,
101
102
OS?: string,
103
}
104
105
/**
106
* ServiceRDP Interface
107
*/
108
export interface ServiceRDP {
109
110
ForestName?: string,
111
112
OSFingerprint?: string,
113
114
OSVersion?: string,
115
116
TargetName?: string,
117
118
NetBIOSComputerName?: string,
119
120
NetBIOSDomainName?: string,
121
122
DNSComputerName?: string,
123
124
DNSDomainName?: string,
125
}
126
127
128