draco-insomnis 0.1.37 → 0.1.41
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/core/waf.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/core/waf.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* injection shapes; HTML-looking input is only checked in the URL, where nobody types it by hand.
|
|
8
8
|
*/
|
|
9
9
|
export const SCANNERS = /\b(sqlmap|nikto|wpscan|nmap|masscan|zgrab|nuclei|acunetix|dirbuster|gobuster|ffuf|feroxbuster|wfuzz|whatweb|openvas|netsparker|jaeles|hydra)\b/i;
|
|
10
|
-
export const PROBES = /(^|\/)(\.env(\.[a-z0-9]+)?$|\.git(\/|$)|\.svn\/|\.hg\/|\.aws\/|\.ssh\/|\.ds_store$|wp-config\.php[^/]+$|wp-config\.(bak|old|txt|orig|save|swp)$|phpinfo\.php$|info\.php$|adminer[\w.-]*\.php$|eval-stdin\.php$|vendor\/phpunit\/|[\w.-]+\.sql(\.gz|\.zip)?$|
|
|
10
|
+
export const PROBES = /(^|\/)(\.env(\.[a-z0-9]+)?$|\.git(\/|$)|\.svn\/|\.hg\/|\.aws\/|\.ssh\/|\.ds_store$|wp-config\.php[^/]+$|wp-config\.(bak|old|txt|orig|save|swp)$|phpinfo\.php$|info\.php$|adminer[\w.-]*\.php$|eval-stdin\.php$|vendor\/phpunit\/|[\w.-]+\.sql(\.gz|\.zip)?$|[\w.-]+\.log(\.\d+|\.gz)?$|error_log$|(storage|var)\/logs?\/|\.ht(access|passwd)$|core\/install\.php$|wp-admin\/(install|setup-config)\.php$|(phpmyadmin|phppgadmin)[\w.-]*(\/|$)|pma(\/|$)|[\w.-]+\.(bak|old|orig|save|swp)$|(backup|backups|dump|database)[\w.-]*\.(zip|tar|tgz|gz|bz2|7z|rar)$|server-status$|cgi-bin\/|(wso|c99|r57|alfa[\w-]*|shell|webshell|b374k)\.php$)/i;
|
|
11
11
|
const SP = String.raw `(\s|\/\*.*?\*\/|\+)`;
|
|
12
12
|
const SQLI = [
|
|
13
13
|
// "union select" followed by a column list, not by a word: "European Union Select Committee" passes.
|
package/dist/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export { clientIp, urlDecode, type DracoRequest, type ProxyMode } from './core/r
|
|
|
7
7
|
export { Blocks, MemoryStore, validNet, type BlockEntry, type DracoEvent, type Store } from './core/store.ts';
|
|
8
8
|
export { flatten, inspect, type WafInput, type WafRule } from './core/waf.ts';
|
|
9
9
|
export type { Resolver } from './core/crawler.ts';
|
|
10
|
-
export declare const VERSION = "0.1.
|
|
10
|
+
export declare const VERSION = "0.1.41";
|
package/dist/index.js
CHANGED
|
@@ -6,4 +6,4 @@ export { CLOUDFLARE, LOCAL_PROXIES, contains, inNet, isIP, network, parse } from
|
|
|
6
6
|
export { clientIp, urlDecode } from "./core/request.js";
|
|
7
7
|
export { Blocks, MemoryStore, validNet } from "./core/store.js";
|
|
8
8
|
export { flatten, inspect } from "./core/waf.js";
|
|
9
|
-
export const VERSION = '0.1.
|
|
9
|
+
export const VERSION = '0.1.41';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "draco-insomnis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"description": "Firewall, anti-copy pace and country rules for Node.js (Express, Koa, Strapi, Directus) and Cloudflare Workers. No dependencies.",
|
|
5
5
|
"license": "GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|