Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/js/generated/ts/rdp.ts
2070 views
1
2
3
/**
4
* CheckRDPAuth checks if the given host and port are running rdp server
5
* with authentication and returns their metadata.
6
* If connection is successful, it returns true.
7
* @example
8
* ```javascript
9
* const rdp = require('nuclei/rdp');
10
* const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389);
11
* log(toJSON(checkRDPAuth));
12
* ```
13
*/
14
export function CheckRDPAuth(host: string, port: number): CheckRDPAuthResponse | null {
15
return null;
16
}
17
18
19
20
/**
21
* IsRDP checks if the given host and port are running rdp server.
22
* If connection is successful, it returns true.
23
* If connection is unsuccessful, it returns false and error.
24
* The Name of the OS is also returned if the connection is successful.
25
* @example
26
* ```javascript
27
* const rdp = require('nuclei/rdp');
28
* const isRDP = rdp.IsRDP('acme.com', 3389);
29
* log(toJSON(isRDP));
30
* ```
31
*/
32
export function IsRDP(host: string, port: number): IsRDPResponse | null {
33
return null;
34
}
35
36
37
38
/**
39
* CheckRDPAuthResponse is the response from the CheckRDPAuth function.
40
* this is returned by CheckRDPAuth function.
41
* @example
42
* ```javascript
43
* const rdp = require('nuclei/rdp');
44
* const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389);
45
* log(toJSON(checkRDPAuth));
46
* ```
47
*/
48
export interface CheckRDPAuthResponse {
49
50
PluginInfo?: ServiceRDP,
51
52
Auth?: boolean,
53
}
54
55
56
57
/**
58
* IsRDPResponse is the response from the IsRDP function.
59
* this is returned by IsRDP function.
60
* @example
61
* ```javascript
62
* const rdp = require('nuclei/rdp');
63
* const isRDP = rdp.IsRDP('acme.com', 3389);
64
* log(toJSON(isRDP));
65
* ```
66
*/
67
export interface IsRDPResponse {
68
69
IsRDP?: boolean,
70
71
OS?: string,
72
}
73
74
75
76
/**
77
* ServiceRDP Interface
78
*/
79
export interface ServiceRDP {
80
81
ForestName?: string,
82
83
OSFingerprint?: string,
84
85
OSVersion?: string,
86
87
TargetName?: string,
88
89
NetBIOSComputerName?: string,
90
91
NetBIOSDomainName?: string,
92
93
DNSComputerName?: string,
94
95
DNSDomainName?: string,
96
}
97
98
99