Skip to content

Commit

Permalink
Merge 07119c0 into d780e86
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Mar 19, 2019
2 parents d780e86 + 07119c0 commit f9f8f77
Show file tree
Hide file tree
Showing 50 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion src/lib/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class Command {
public target: string;
public type: string;

constructor(command: string) {
public constructor(command: string) {
// command = `Search ${entry.query} as a ${entry.type} on ${name}`;
const parts: string[] = command.split(" ");
this.action = parts[0].toLowerCase();
Expand Down
8 changes: 4 additions & 4 deletions src/lib/scanner/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export interface Scanner {
endpoint: string;
name: string;
supportedTypes: ScannableType[];
scanByIP?(query: string);
scanByDomain?(query: string);
scanByURL?(query: string);
setApiKey(apiKey: string | undefined);
scanByIP?(query: string): Promise<string>;
scanByDomain?(query: string): Promise<string>;
scanByURL?(query: string): Promise<string>;
setApiKey(apiKey: string | undefined): void;
}
12 changes: 6 additions & 6 deletions src/lib/scanner/urlscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ export class Urlscan implements Scanner {
public supportedTypes: ScannableType[] = ["ip", "domain", "url"];
protected apiKey: string | undefined;

constructor() {
public constructor() {
this.endpoint = "https://urlscan.io/api/v1";
this.name = "Urlscan";
}

public setApiKey(apiKey: string | undefined) {
public setApiKey(apiKey: string | undefined): void {
this.apiKey = apiKey;
}

public async scanByIP(ip: string) {
public async scanByIP(ip: string): Promise<string> {
return await this.scan(ip);
}

public async scanByDomain(domain: string) {
public async scanByDomain(domain: string): Promise<string> {
return await this.scan(domain);
}

public async scanByURL(url: string) {
public async scanByURL(url: string): Promise<string> {
return await this.scan(url);
}

private async scan(query: string, isPublic = true) {
private async scan(query: string, isPublic = true): Promise<string> {
if (this.apiKey === undefined) {
throw Error("Please set your urlscan.io API key via the option.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/scanner/virustotal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class VirusTotal implements Scanner {
public supportedTypes: ScannableType[] = ["url"];
protected apiKey: string | undefined;

constructor() {
public constructor() {
this.endpoint = "https://www.virustotal.com/vtapi/v2";
this.name = "VirusTotal";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/abuseipdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class AbuseIPDB implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip"];

constructor() {
public constructor() {
this.endpoint = "https://www.abuseipdb.com";
this.name = "AbuseIPDB";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/archiveorg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ArchiveOrg implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["url"];

constructor() {
public constructor() {
this.endpoint = "https://web.archive.org";
this.name = "archive.org";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/bgpview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class BGPView implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "asn"];

constructor() {
public constructor() {
this.endpoint = "https://bgpview.io";
this.name = "BGPView";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/binaryedge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class BinaryEdge implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain"];

constructor() {
public constructor() {
this.endpoint = "https://app.binaryedge.io";
this.name = "BinaryEdge";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/bitcoinabuse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class BitcoinAbuse implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["btc"];

constructor() {
public constructor() {
this.endpoint = "https://www.bitcoinabuse.com";
this.name = "BitcoinAbuse";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class BlockChain implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["btc"];

constructor() {
public constructor() {
this.endpoint = "https://www.blockchain.com";
this.name = "Blockchain.com";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/blockcypher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class BlockCypher implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["btc"];

constructor() {
public constructor() {
this.endpoint = "https://live.blockcypher.com";
this.name = "BlockCypher";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/censys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Censys implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "asn", "text"];

constructor() {
public constructor() {
this.endpoint = "https://censys.io";
this.name = "Censys";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/crtsh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Crtsh implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["domain"];

constructor() {
public constructor() {
this.endpoint = "https://crt.sh";
this.name = "crt.sh";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/cymon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Cymon implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain"];

constructor() {
public constructor() {
this.endpoint = "https://cymon.io";
this.name = "Cymon";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/dnslytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class DNSlytics implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain"];

constructor() {
public constructor() {
this.endpoint = "https://dnslytics.com";
this.name = "DNSlytics";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/domainbigdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class DomainBigData implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["domain"];

constructor() {
public constructor() {
this.endpoint = "https://domainbigdata.com";
this.name = "DomainBigData";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/domainwatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class DomainWatch implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["domain", "email"];

constructor() {
public constructor() {
this.endpoint = "https://domainwat.ch";
this.name = "DomainWatch";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/findsubdomains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class FindSubDomains implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["domain"];

constructor() {
public constructor() {
this.endpoint = "https://findsubdomains.com";
this.name = "FindSubDomains";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/fofa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class FOFA implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain"];

constructor() {
public constructor() {
this.endpoint = "https://fofa.so";
this.name = "FOFA";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/fortiguard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class FortiGuard implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "url", "cve"];

constructor() {
public constructor() {
this.endpoint = "https://fortiguard.com";
this.name = "FortiGuard";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/googlesafebrowsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class GoogleSafeBrowsing implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["domain", "url"];

constructor() {
public constructor() {
this.endpoint = "https://transparencyreport.google.com";
this.name = "GoogleSafeBrowsing";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/hybridanalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class HybridAnalysis implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "hash"];

constructor() {
public constructor() {
this.endpoint = "https://www.hybrid-analysis.com";
this.name = "HybridAnalysis";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/intelligencex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class IntelligenceX implements Searcher {
"btc",
];

constructor() {
public constructor() {
this.endpoint = "https://intelx.io";
this.name = "IntelligenceX";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/maltiverse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class Maltiverse implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["domain", "hash"];

constructor() {
public constructor() {
this.endpoint = "https://www.maltiverse.com";
this.name = "Maltiverse";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/occrp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class OCCRP implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["email"];

constructor() {
public constructor() {
this.endpoint = "https://data.occrp.org";
this.name = "OCCPR";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/onyphe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ONYPHE implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip"];

constructor() {
public constructor() {
this.endpoint = "https://www.onyphe.io";
this.name = "ONYPHE";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/otx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class OTX implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "hash"];

constructor() {
public constructor() {
this.endpoint = "https://otx.alienvault.com";
this.name = "OTX";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/pipl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Pipl implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["email"];

constructor() {
public constructor() {
this.endpoint = "https://pipl.com";
this.name = "Pipl";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/pubdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class PubDB implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["gaTrackID", "gaPubID"];

constructor() {
public constructor() {
this.endpoint = "http://pub-db.com";
this.name = "PubDB";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/publicwww.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class PublicWWW implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["text"];

constructor() {
public constructor() {
this.endpoint = "https://publicwww.com/websites";
this.name = "PublicWWW";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/pulsedive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Pulsedive implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "url", "hash"];

constructor() {
public constructor() {
this.endpoint = "https://pulsedive.com";
this.name = "Pulsedive";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/riskiq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class RiskIQ implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "email"];

constructor() {
public constructor() {
this.endpoint = "https://community.riskiq.com";
this.name = "RiskIQ";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/securitytrails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class SecurityTrails implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain"];

constructor() {
public constructor() {
this.endpoint = "https://securitytrails.com";
this.name = "SecurityTrails";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/shodan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Shodan implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "asn"];

constructor() {
public constructor() {
this.endpoint = `https://www.shodan.io`;
this.name = "Shodan";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/sploitus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Sploitus implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["cve"];

constructor() {
public constructor() {
this.endpoint = "https://sploitus.com";
this.name = "Sploitus";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/spyonweb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class SpyOnWeb implements Searcher {
"gaTrackID",
];

constructor() {
public constructor() {
this.endpoint = "http://spyonweb.com";
this.name = "SpyOnWeb";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/talos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Talos implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain"];

constructor() {
public constructor() {
this.endpoint = "https://talosintelligence.com";
this.name = "Talos";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/threatcrowd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ThreatCrowd implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "email"];

constructor() {
public constructor() {
this.endpoint = "https://www.threatcrowd.org";
this.name = "ThreatCrowd";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/threatminer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ThreatMiner implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "hash"];

constructor() {
public constructor() {
this.endpoint = "https://www.threatminer.org";
this.name = "ThreatMiner";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/urlscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Urlscan implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "url"];

constructor() {
public constructor() {
this.endpoint = "https://urlscan.io";
this.name = "Urlscan";
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/searcher/viewdns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ViewDNS implements Searcher {
public name: string;
public supportedTypes: SearchableType[] = ["ip", "domain", "email"];

constructor() {
public constructor() {
this.endpoint = "https://viewdns.info";
this.name = "ViewDNS";
}
Expand Down

0 comments on commit f9f8f77

Please sign in to comment.