mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-11-05 18:31:10 +00:00
feat: complete Pezkuwi rebrand
- Update phishing URL to phishing.pezkuwichain.io - Update author to Dijital Kurdistan Tech Inst - Update README with Pezkuwi project references - Update IPFS reference to pezkuwichain.io - Rebrand all package references from @polkadot to @pezkuwi
This commit is contained in:
1 parent
3f32f6cdfa
commit
a4bb93cb33
37 files changed
+1363
-408
No files matched your search
@@ -1,9 +1,9 @@
|
||||
# @polkadot/phishing
|
||||
# @pezkuwi/phishing
|
||||
|
||||
To check for sites that are on the list -
|
||||
|
||||
```js
|
||||
import { checkIfDenied } from '@polkadot/phishing';
|
||||
import { checkIfDenied } from '@pezkuwi/phishing';
|
||||
|
||||
const isOnDeny = await checkIfDenied(window.location.host);
|
||||
|
||||
@@ -13,7 +13,7 @@ console.log(`isOnDeny=${isOnDeny}`);
|
||||
To check for addresses that are on the list -
|
||||
|
||||
```js
|
||||
import { checkAddress } from '@polkadot/phishing';
|
||||
import { checkAddress } from '@pezkuwi/phishing';
|
||||
|
||||
const info = await checkAddress('1b....');
|
||||
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/phishing/issues",
|
||||
"author": "Dijital Kurdistan Tech Inst <info@pezkuwichain.io>",
|
||||
"bugs": "https://github.com/pezkuwichain/phishing/issues",
|
||||
"description": "Simple phishing scripts from a central source",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/phishing/tree/master/packages/phishing#readme",
|
||||
"homepage": "https://github.com/pezkuwichain/phishing/tree/master/packages/phishing#readme",
|
||||
"license": "Apache-2.0",
|
||||
"name": "@polkadot/phishing",
|
||||
"name": "@pezkuwi/phishing",
|
||||
"repository": {
|
||||
"directory": "packages/phishing",
|
||||
"type": "git",
|
||||
"url": "https://github.com/polkadot-js/phishing.git"
|
||||
"url": "https://github.com/pezkuwichain/phishing.git"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./packageDetect.js",
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.25.25-38-x",
|
||||
"version": "0.25.25",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^14.0.1",
|
||||
"@polkadot/util-crypto": "^14.0.1",
|
||||
"@polkadot/x-fetch": "^14.0.1",
|
||||
"@pezkuwi/util": "^14.0.5",
|
||||
"@pezkuwi/util-crypto": "^14.0.5",
|
||||
"@pezkuwi/x-fetch": "^14.0.5",
|
||||
"tldts": "^7.0.8",
|
||||
"tslib": "^2.8.1"
|
||||
},
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||
|
||||
import fs from 'node:fs';
|
||||
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
import { decodeAddress } from '@pezkuwi/util-crypto';
|
||||
|
||||
const addresses = JSON.parse(fs.readFileSync('address.json', 'utf-8')) as Record<string, string[]>;
|
||||
const allowed = JSON.parse(fs.readFileSync('known.json', 'utf-8')) as Record<string, string[]>;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||
|
||||
import fs from 'node:fs';
|
||||
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
import { decodeAddress } from '@pezkuwi/util-crypto';
|
||||
|
||||
import { fetchJson, fetchText } from './fetch.js';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AddressList, HostList } from './types.js';
|
||||
|
||||
import { parse } from 'tldts';
|
||||
|
||||
import { u8aEq } from '@polkadot/util';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
import { u8aEq } from '@pezkuwi/util';
|
||||
import { decodeAddress } from '@pezkuwi/util-crypto';
|
||||
|
||||
import { fetchJson } from './fetch.js';
|
||||
|
||||
@@ -25,8 +25,8 @@ interface CacheHostList extends Cache<HostList> {
|
||||
parts: string[][];
|
||||
}
|
||||
|
||||
// Equivalent to https://raw.githubusercontent.com/polkadot-js/phishing/master/{address,all}.json
|
||||
const PHISHING = 'https://polkadot.js.org/phishing';
|
||||
// Equivalent to https://raw.githubusercontent.com/pezkuwichain/phishing/master/{address,all}.json
|
||||
const PHISHING = 'https://phishing.pezkuwichain.io';
|
||||
const ADDRESS_JSON = `${PHISHING}/address.json`;
|
||||
// 45 minutes cache refresh
|
||||
const CACHE_TIMEOUT = 45 * 60 * 1000;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||
|
||||
import { load as yamlParse } from 'js-yaml';
|
||||
import fs from 'node:fs';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { fetch } from '@polkadot/x-fetch';
|
||||
import { fetch } from '@pezkuwi/x-fetch';
|
||||
|
||||
// this is also in @polkadot/apps-config - we may want to expose it
|
||||
// this is also in @pezkuwi/apps-config - we may want to expose it
|
||||
// inside x-fetch at some point in the future...
|
||||
|
||||
// a fetch with a 2s timeout
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||
|
||||
import { checkAddress, checkIfDenied } from './index.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './packageDetect.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './index.js';
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
// (packageInfo imports will be kept as-is, user-editable)
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
import { detectPackage } from '@pezkuwi/util';
|
||||
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/phishing', path: 'auto', type: 'auto', version: '0.25.25-38-x' };
|
||||
export const packageInfo = { name: '@pezkuwi/phishing', path: 'auto', type: 'auto', version: '0.25.25' };
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2020-2026 @polkadot/phishing authors & contributors
|
||||
// Copyright 2020-2026 @pezkuwi/phishing authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export interface HostList {
|
||||
|
||||
Reference in new issue
Block a user