nestjs-security-cli 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/guards/ip-blacklist.guard.d.ts +1 -4
- package/dist/guards/ip-blacklist.guard.js +1 -50
- package/dist/guards/ip-blacklist.guard.js.map +1 -1
- package/dist/providers/ip-blocker.provider.d.ts +14 -14
- package/dist/schemas/blacklisted-ip.schema.d.ts +13 -13
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
2
|
import { SecurityService } from '../services/security.service';
|
|
3
3
|
import { SecurityConfigInterface } from '../interfaces/security-config.interface';
|
|
4
|
-
export declare const suspiciousPatterns:
|
|
5
|
-
pattern: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}[];
|
|
4
|
+
export declare const suspiciousPatterns: any[];
|
|
8
5
|
export declare class IpBlacklistGuard implements CanActivate {
|
|
9
6
|
private readonly securityService;
|
|
10
7
|
private readonly config?;
|
|
@@ -15,56 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.IpBlacklistGuard = exports.suspiciousPatterns = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const security_service_1 = require("../services/security.service");
|
|
18
|
-
exports.suspiciousPatterns = [
|
|
19
|
-
{ pattern: '/shell', name: 'Shell Access Attempt' },
|
|
20
|
-
{ pattern: '/.env', name: 'Environment File Scan' },
|
|
21
|
-
{ pattern: '/cgi-bin', name: 'CGI Exploit Attempt' },
|
|
22
|
-
{ pattern: '/actuator', name: 'Spring Boot Probe' },
|
|
23
|
-
{ pattern: 'wget+http', name: 'Malware Download' },
|
|
24
|
-
{ pattern: 'chmod+777', name: 'Permission Escalation' },
|
|
25
|
-
{ pattern: '../../', name: 'Path Traversal' },
|
|
26
|
-
{ pattern: '%2e%2e', name: 'Encoded Path Traversal' },
|
|
27
|
-
{ pattern: '/bin/sh', name: 'Shell Execution' },
|
|
28
|
-
{ pattern: '/wp-admin', name: 'WordPress Admin Panel' },
|
|
29
|
-
{ pattern: '/admin', name: 'WordPress Admin Panel' },
|
|
30
|
-
{ pattern: '/wp-config.php', name: 'WordPress Configuration File' },
|
|
31
|
-
{ pattern: '/config.php', name: 'WordPress Configuration File' },
|
|
32
|
-
{ pattern: '/phpMyAdmin', name: 'phpMyAdmin' },
|
|
33
|
-
{ pattern: '/wp-content/plugins', name: 'WordPress Plugin Directory' },
|
|
34
|
-
{ pattern: '/wp-content/themes', name: 'WordPress Theme Directory' },
|
|
35
|
-
{ pattern: '/wp-content/uploads', name: 'WordPress Upload Directory' },
|
|
36
|
-
{ pattern: '/wp-content/cache', name: 'WordPress Cache Directory' },
|
|
37
|
-
{ pattern: '/wp-content/languages', name: 'WordPress Language Directory' },
|
|
38
|
-
{ pattern: '/wp-content/db.php', name: 'WordPress Database File' },
|
|
39
|
-
{ pattern: '/wp-content/wp-settings.php', name: 'WordPress Settings File' },
|
|
40
|
-
{ pattern: '/wp-content/index.php', name: 'WordPress Index File' },
|
|
41
|
-
{ pattern: '/wp-content/plugins/index.php', name: 'WordPress Plugin Index File' },
|
|
42
|
-
{ pattern: '/wp-content/themes/index.php', name: 'WordPress Theme Index File' },
|
|
43
|
-
{ pattern: '/wp-content/uploads/index.php', name: 'WordPress Upload Index File' },
|
|
44
|
-
{ pattern: '/wp-content/cache/index.php', name: 'WordPress Cache Index File' },
|
|
45
|
-
{ pattern: '/wp-content/languages/index.php', name: 'WordPress Language Index File' },
|
|
46
|
-
{ pattern: '/wp-content/db.php', name: 'WordPress Database File' },
|
|
47
|
-
{ pattern: '/wp-content/wp-settings.php', name: 'WordPress Settings File' },
|
|
48
|
-
{ pattern: '/wp-content/index.php', name: 'WordPress Index File' },
|
|
49
|
-
{ pattern: '/webpages', name: 'Webpages' },
|
|
50
|
-
{ pattern: '/manager', name: 'Manager' },
|
|
51
|
-
{ pattern: '/.git', name: 'Git Repository' },
|
|
52
|
-
{ pattern: '/.svn', name: 'Subversion Repository' },
|
|
53
|
-
{ pattern: '/ecp', name: 'ECP' },
|
|
54
|
-
{ pattern: '/app_dev.php', name: 'app dev php' },
|
|
55
|
-
{ pattern: '/?phpinfo', name: 'phpinfo' },
|
|
56
|
-
{ pattern: '/+CSCOE+', name: 'Cisco' },
|
|
57
|
-
{ pattern: '/debug', name: 'debug' },
|
|
58
|
-
{ pattern: '/config', name: 'config' },
|
|
59
|
-
{ pattern: '/.json', name: 'json' },
|
|
60
|
-
{ pattern: '/library', name: 'library' },
|
|
61
|
-
{ pattern: '/API', name: 'API' },
|
|
62
|
-
{ pattern: '\x16', name: 'special characters' },
|
|
63
|
-
{ pattern: '/form.html', name: 'form' },
|
|
64
|
-
{ pattern: '/upl.php', name: 'upl' },
|
|
65
|
-
{ pattern: '/t4', name: 't4' },
|
|
66
|
-
{ pattern: '/geoip', name: 'geoip' }
|
|
67
|
-
];
|
|
18
|
+
exports.suspiciousPatterns = [];
|
|
68
19
|
let IpBlacklistGuard = class IpBlacklistGuard {
|
|
69
20
|
constructor(securityService, config) {
|
|
70
21
|
this.securityService = securityService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip-blacklist.guard.js","sourceRoot":"","sources":["../../src/guards/ip-blacklist.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgH;AAChH,mEAA8D;AAGjD,QAAA,kBAAkB,GAAG
|
|
1
|
+
{"version":3,"file":"ip-blacklist.guard.js","sourceRoot":"","sources":["../../src/guards/ip-blacklist.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgH;AAChH,mEAA8D;AAGjD,QAAA,kBAAkB,GAAG,EAqDjC,CAAA;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC5B,YACkB,eAAgC,EACS,MAAgC;QADzE,oBAAe,GAAf,eAAe,CAAiB;QACS,WAAM,GAAN,MAAM,CAA0B;IAE3F,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAyB;QAC1C,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAA;QACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAE,OAAO,CAAE,CAAA;QAC5C,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,aAAa,CAAE,QAAQ,CAAE,CAAA;QAC1E,IAAI,aAAa,EAAE,CAAC;YACnB,MAAM,IAAI,2BAAkB,CAAE,mCAAmC,CAAE,CAAA;QACpE,CAAC;QACD,MAAM,IAAI,CAAC,uBAAuB,CAAE,QAAQ,EAAE,OAAO,CAAE,CAAA;QACvD,OAAO,IAAI,CAAA;IACZ,CAAC;IAEO,WAAW,CAAC,OAAY;QAC/B,OAAO,CACN,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAE,GAAG,CAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE;YAC3D,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;YAC5B,OAAO,CAAC,UAAU,EAAE,aAAa;YACjC,OAAO,CAAC,EAAE;YACV,SAAS,CACT,CAAA;IACF,CAAC;IAEO,KAAK,CAAC,uBAAuB,CAAC,EAAU,EAAE,OAAY;QAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAA;QACrC,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAA;QACpE,KAAK,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAE,GAAG,0BAAkB,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,kBAAkB,IAAI,EAAE,CAAC,CAAE,EAAE,CAAC;YACvG,IAAI,GAAG,CAAC,QAAQ,CAAE,OAAO,CAAE,IAAI,SAAS,CAAC,QAAQ,CAAE,OAAO,CAAE,EAAE,CAAC;gBAC9D,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,CACrC,EAAE,EACF,IAAI,EACJ,iBAAkB,IAAK,EAAE,EACzB,SAAS,EACT;oBACC,SAAS;oBACT,UAAU,EAAE,GAAG;oBACf,aAAa,EAAE,IAAI;iBACnB,CACD,CAAA;gBACD,MAAM,IAAI,2BAAkB,CAAE,kBAAmB,IAAK,WAAW,CAAE,CAAA;YACpE,CAAC;QACF,CAAC;IACF,CAAC;CACD,CAAA;AAhDY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAIV,WAAA,IAAA,iBAAQ,GAAE,CAAA;IAAE,WAAA,IAAA,eAAM,EAAE,iBAAiB,CAAE,CAAA;qCADN,kCAAe;GAFtC,gBAAgB,CAgD5B"}
|
|
@@ -8,7 +8,7 @@ export declare const IpBlockerProvider: {
|
|
|
8
8
|
id: string;
|
|
9
9
|
}, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
10
10
|
id: string;
|
|
11
|
-
}, import("mongoose").
|
|
11
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
}> & {
|
|
14
14
|
__v: number;
|
|
@@ -26,7 +26,7 @@ export declare const IpBlockerProvider: {
|
|
|
26
26
|
__v: number;
|
|
27
27
|
}), any, BlacklistedIp>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
28
28
|
id: string;
|
|
29
|
-
}, import("mongoose").
|
|
29
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
30
30
|
_id: import("mongoose").Types.ObjectId;
|
|
31
31
|
}> & {
|
|
32
32
|
__v: number;
|
|
@@ -35,7 +35,7 @@ export declare const IpBlockerProvider: {
|
|
|
35
35
|
}, {
|
|
36
36
|
_id?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
37
37
|
id: string;
|
|
38
|
-
}, import("mongoose").
|
|
38
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
39
39
|
_id: import("mongoose").Types.ObjectId;
|
|
40
40
|
}> & {
|
|
41
41
|
__v: number;
|
|
@@ -44,7 +44,7 @@ export declare const IpBlockerProvider: {
|
|
|
44
44
|
}>;
|
|
45
45
|
ip?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
46
46
|
id: string;
|
|
47
|
-
}, import("mongoose").
|
|
47
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
48
48
|
_id: import("mongoose").Types.ObjectId;
|
|
49
49
|
}> & {
|
|
50
50
|
__v: number;
|
|
@@ -53,7 +53,7 @@ export declare const IpBlockerProvider: {
|
|
|
53
53
|
}>;
|
|
54
54
|
reason?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
55
55
|
id: string;
|
|
56
|
-
}, import("mongoose").
|
|
56
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
57
57
|
_id: import("mongoose").Types.ObjectId;
|
|
58
58
|
}> & {
|
|
59
59
|
__v: number;
|
|
@@ -62,7 +62,7 @@ export declare const IpBlockerProvider: {
|
|
|
62
62
|
}>;
|
|
63
63
|
blockedAt?: import("mongoose").SchemaDefinitionProperty<Date, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
64
64
|
id: string;
|
|
65
|
-
}, import("mongoose").
|
|
65
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
66
66
|
_id: import("mongoose").Types.ObjectId;
|
|
67
67
|
}> & {
|
|
68
68
|
__v: number;
|
|
@@ -71,7 +71,7 @@ export declare const IpBlockerProvider: {
|
|
|
71
71
|
}>;
|
|
72
72
|
expiresAt?: import("mongoose").SchemaDefinitionProperty<Date, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
73
73
|
id: string;
|
|
74
|
-
}, import("mongoose").
|
|
74
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
75
75
|
_id: import("mongoose").Types.ObjectId;
|
|
76
76
|
}> & {
|
|
77
77
|
__v: number;
|
|
@@ -80,7 +80,7 @@ export declare const IpBlockerProvider: {
|
|
|
80
80
|
}>;
|
|
81
81
|
durationHours?: import("mongoose").SchemaDefinitionProperty<number, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
82
82
|
id: string;
|
|
83
|
-
}, import("mongoose").
|
|
83
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
84
84
|
_id: import("mongoose").Types.ObjectId;
|
|
85
85
|
}> & {
|
|
86
86
|
__v: number;
|
|
@@ -89,7 +89,7 @@ export declare const IpBlockerProvider: {
|
|
|
89
89
|
}>;
|
|
90
90
|
blockedBy?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
91
91
|
id: string;
|
|
92
|
-
}, import("mongoose").
|
|
92
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
93
93
|
_id: import("mongoose").Types.ObjectId;
|
|
94
94
|
}> & {
|
|
95
95
|
__v: number;
|
|
@@ -98,7 +98,7 @@ export declare const IpBlockerProvider: {
|
|
|
98
98
|
}>;
|
|
99
99
|
userAgent?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
100
100
|
id: string;
|
|
101
|
-
}, import("mongoose").
|
|
101
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
102
102
|
_id: import("mongoose").Types.ObjectId;
|
|
103
103
|
}> & {
|
|
104
104
|
__v: number;
|
|
@@ -107,7 +107,7 @@ export declare const IpBlockerProvider: {
|
|
|
107
107
|
}>;
|
|
108
108
|
requestUrl?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
109
109
|
id: string;
|
|
110
|
-
}, import("mongoose").
|
|
110
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
111
111
|
_id: import("mongoose").Types.ObjectId;
|
|
112
112
|
}> & {
|
|
113
113
|
__v: number;
|
|
@@ -116,7 +116,7 @@ export declare const IpBlockerProvider: {
|
|
|
116
116
|
}>;
|
|
117
117
|
active?: import("mongoose").SchemaDefinitionProperty<boolean, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
118
118
|
id: string;
|
|
119
|
-
}, import("mongoose").
|
|
119
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
120
120
|
_id: import("mongoose").Types.ObjectId;
|
|
121
121
|
}> & {
|
|
122
122
|
__v: number;
|
|
@@ -125,7 +125,7 @@ export declare const IpBlockerProvider: {
|
|
|
125
125
|
}>;
|
|
126
126
|
blockType?: import("mongoose").SchemaDefinitionProperty<"auto" | "manual", BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
127
127
|
id: string;
|
|
128
|
-
}, import("mongoose").
|
|
128
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
129
129
|
_id: import("mongoose").Types.ObjectId;
|
|
130
130
|
}> & {
|
|
131
131
|
__v: number;
|
|
@@ -134,7 +134,7 @@ export declare const IpBlockerProvider: {
|
|
|
134
134
|
}>;
|
|
135
135
|
attackPattern?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, import("mongoose").Document<unknown, {}, BlacklistedIp, {
|
|
136
136
|
id: string;
|
|
137
|
-
}, import("mongoose").
|
|
137
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
138
138
|
_id: import("mongoose").Types.ObjectId;
|
|
139
139
|
}> & {
|
|
140
140
|
__v: number;
|
|
@@ -24,7 +24,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
24
24
|
__v: number;
|
|
25
25
|
}), any, BlacklistedIp>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
26
26
|
id: string;
|
|
27
|
-
}, import("mongoose").
|
|
27
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
28
28
|
_id: import("mongoose").Types.ObjectId;
|
|
29
29
|
}> & {
|
|
30
30
|
__v: number;
|
|
@@ -33,7 +33,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
33
33
|
}, {
|
|
34
34
|
_id?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
35
35
|
id: string;
|
|
36
|
-
}, import("mongoose").
|
|
36
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
37
37
|
_id: import("mongoose").Types.ObjectId;
|
|
38
38
|
}> & {
|
|
39
39
|
__v: number;
|
|
@@ -42,7 +42,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
42
42
|
}>;
|
|
43
43
|
ip?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
44
44
|
id: string;
|
|
45
|
-
}, import("mongoose").
|
|
45
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
46
46
|
_id: import("mongoose").Types.ObjectId;
|
|
47
47
|
}> & {
|
|
48
48
|
__v: number;
|
|
@@ -51,7 +51,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
51
51
|
}>;
|
|
52
52
|
reason?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
53
53
|
id: string;
|
|
54
|
-
}, import("mongoose").
|
|
54
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
55
55
|
_id: import("mongoose").Types.ObjectId;
|
|
56
56
|
}> & {
|
|
57
57
|
__v: number;
|
|
@@ -60,7 +60,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
60
60
|
}>;
|
|
61
61
|
blockedAt?: import("mongoose").SchemaDefinitionProperty<Date, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
62
62
|
id: string;
|
|
63
|
-
}, import("mongoose").
|
|
63
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
64
64
|
_id: import("mongoose").Types.ObjectId;
|
|
65
65
|
}> & {
|
|
66
66
|
__v: number;
|
|
@@ -69,7 +69,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
69
69
|
}>;
|
|
70
70
|
expiresAt?: import("mongoose").SchemaDefinitionProperty<Date, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
71
71
|
id: string;
|
|
72
|
-
}, import("mongoose").
|
|
72
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
73
73
|
_id: import("mongoose").Types.ObjectId;
|
|
74
74
|
}> & {
|
|
75
75
|
__v: number;
|
|
@@ -78,7 +78,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
78
78
|
}>;
|
|
79
79
|
durationHours?: import("mongoose").SchemaDefinitionProperty<number, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
80
80
|
id: string;
|
|
81
|
-
}, import("mongoose").
|
|
81
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
82
82
|
_id: import("mongoose").Types.ObjectId;
|
|
83
83
|
}> & {
|
|
84
84
|
__v: number;
|
|
@@ -87,7 +87,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
87
87
|
}>;
|
|
88
88
|
blockedBy?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
89
89
|
id: string;
|
|
90
|
-
}, import("mongoose").
|
|
90
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
91
91
|
_id: import("mongoose").Types.ObjectId;
|
|
92
92
|
}> & {
|
|
93
93
|
__v: number;
|
|
@@ -96,7 +96,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
96
96
|
}>;
|
|
97
97
|
userAgent?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
98
98
|
id: string;
|
|
99
|
-
}, import("mongoose").
|
|
99
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
100
100
|
_id: import("mongoose").Types.ObjectId;
|
|
101
101
|
}> & {
|
|
102
102
|
__v: number;
|
|
@@ -105,7 +105,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
105
105
|
}>;
|
|
106
106
|
requestUrl?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
107
107
|
id: string;
|
|
108
|
-
}, import("mongoose").
|
|
108
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
109
109
|
_id: import("mongoose").Types.ObjectId;
|
|
110
110
|
}> & {
|
|
111
111
|
__v: number;
|
|
@@ -114,7 +114,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
114
114
|
}>;
|
|
115
115
|
active?: import("mongoose").SchemaDefinitionProperty<boolean, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
116
116
|
id: string;
|
|
117
|
-
}, import("mongoose").
|
|
117
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
118
118
|
_id: import("mongoose").Types.ObjectId;
|
|
119
119
|
}> & {
|
|
120
120
|
__v: number;
|
|
@@ -123,7 +123,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
123
123
|
}>;
|
|
124
124
|
blockType?: import("mongoose").SchemaDefinitionProperty<"auto" | "manual", BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
125
125
|
id: string;
|
|
126
|
-
}, import("mongoose").
|
|
126
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
127
127
|
_id: import("mongoose").Types.ObjectId;
|
|
128
128
|
}> & {
|
|
129
129
|
__v: number;
|
|
@@ -132,7 +132,7 @@ export declare const BlacklistedIpSchema: import("mongoose").Schema<BlacklistedI
|
|
|
132
132
|
}>;
|
|
133
133
|
attackPattern?: import("mongoose").SchemaDefinitionProperty<string, BlacklistedIp, Document<unknown, {}, BlacklistedIp, {
|
|
134
134
|
id: string;
|
|
135
|
-
}, import("mongoose").
|
|
135
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<BlacklistedIp & Required<{
|
|
136
136
|
_id: import("mongoose").Types.ObjectId;
|
|
137
137
|
}> & {
|
|
138
138
|
__v: number;
|