diff --git a/README.md b/README.md index ad524035..abda6b7e 100755 --- a/README.md +++ b/README.md @@ -47,7 +47,6 @@ Mitaka is an OSINT friendly Chrome extension which can: | BlockCypher | https://live.blockcypher.com | btc | | Censys | https://censys.io | ip / domain / asn / text | | crt.sh | https://crt.sh | domain | -| Cymon | https://cymon.io | ip / domain | | DNSlytics | https://dnslytics.com | ip / domain | | DomainBigData | https://domainbigdata.com | domain | | DomainTools | https://www.domaintools.com | ip / domain | diff --git a/src/lib/searcher/cymon.ts b/src/lib/searcher/cymon.ts deleted file mode 100644 index 2a80439f..00000000 --- a/src/lib/searcher/cymon.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { buildURL } from "../url_builder"; -import { SearchableType, Searcher } from "./searcher"; - -export class Cymon implements Searcher { - public endpoint: string; - public name: string; - public supportedTypes: SearchableType[] = ["ip", "domain"]; - - public constructor() { - this.endpoint = "https://cymon.io"; - this.name = "Cymon"; - } - - public searchByIP(query: string): string { - return buildURL(this.endpoint, `/${query}`); - } - - public searchByDomain(query: string): string { - return buildURL(this.endpoint, `/domain/${query}`); - } -} diff --git a/src/lib/searcher/index.ts b/src/lib/searcher/index.ts index d3cb0b03..441a2f06 100644 --- a/src/lib/searcher/index.ts +++ b/src/lib/searcher/index.ts @@ -7,7 +7,6 @@ export { BlockChain } from "./blockchain"; export { BlockCypher } from "./blockcypher"; export { Censys } from "./censys"; export { Crtsh } from "./crtsh"; -export { Cymon } from "./cymon"; export { DNSlytics } from "./dnslytics"; export { DomainBigData } from "./domainbigdata"; export { DomainTools } from "./domaintools"; diff --git a/src/lib/searcher/searchers.ts b/src/lib/searcher/searchers.ts index 90b641bc..c2b8ff13 100644 --- a/src/lib/searcher/searchers.ts +++ b/src/lib/searcher/searchers.ts @@ -8,7 +8,6 @@ import { BlockCypher, Censys, Crtsh, - Cymon, DNSlytics, DomainBigData, DomainTools, @@ -61,7 +60,6 @@ export const Searchers: Searcher[] = [ new BlockChain(), new BlockCypher(), new Censys(), - new Cymon(), new Crtsh(), new DNSlytics(), new DomainBigData(), diff --git a/src/spec/searcher/cymon.spec.ts b/src/spec/searcher/cymon.spec.ts deleted file mode 100644 index 7a1a88a8..00000000 --- a/src/spec/searcher/cymon.spec.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "chai"; -import "mocha"; -import { Cymon } from "../../lib/searcher"; - -describe("Cymon", () => { - const subject = new Cymon(); - - it("should support IP & Domain type IOC", () => { - expect(subject.supportedTypes).to.deep.equal(["ip", "domain"]); - }); - - describe("#searchByIP", () => { - it("should return URL", () => { - expect(subject.searchByIP("1.1.1.1")).to.equal( - "https://cymon.io/1.1.1.1" - ); - }); - }); - - describe("#searchByDomain", () => { - it("should return URL", () => { - expect(subject.searchByDomain("github.com")).to.equal( - "https://cymon.io/domain/github.com" - ); - }); - }); -});