ioc-extractor
Version:
IoC (Indicator of Compromise) extractor
152 lines (149 loc) • 4.01 kB
TypeScript
import { StrictOptions } from '../types.js';
/**
* Check whether a string is a MD5 or not
*
* @export
* @param {string} s A string
* @returns {boolean} return true if a string is MD5
*/
declare function isMD5(s: string): boolean;
/**
* Check whether a string is a SHA1 or not
*
* @export
* @param {string} s A string
* @returns {boolean} return true if a string is a SHA1
*/
declare function isSHA1(s: string): boolean;
/**
* Check whether a string is a SHA256 or not
*
* @export
* @param {string} s A string
* @returns {boolean} return true if a string is a SHA256
*/
declare function isSHA256(s: string): boolean;
/**
* Check whether a string is a SHA512 or not
*
* @export
* @param {string} s A string
* @returns {boolean} return true if a string is a SHA512
*/
declare function isSHA512(s: string): boolean;
/**
* Check whether a string is a SSDEEP or not
*
* @export
* @param {string} s A string
* @returns {boolean} return true if a string is a SSDEEP
*/
declare function isSSDEEP(s: string): boolean;
/**
* Check whether a string is an ASN or not
*
* @export
* @param {string} s A string
* @returns {boolean} return true if a string is an ASN
*/
declare function isASN(s: string): boolean;
/**
* Check whether a string is a domain or not
*
* @export
* @param {string} s A string
* @param {StrictOptions} options
* @returns {boolean} return true if a string is a domain
*/
declare function isDomain(s: string, options?: StrictOptions): boolean;
/**
* Check whether a string is an email or not
*
* @export
* @param {string} s A string
* @param {StrictOptions} options
* @returns {boolean} true if a string is a domain
*/
declare function isEmail(s: string, options?: StrictOptions): boolean;
/**
* Check whether a string is an IPv4 or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is an IPv4
*/
declare function isIPv4(s: string): boolean;
/**
* Check whether a string is an IPv6 or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is an IPv6
*/
declare function isIPv6(s: string): boolean;
/**
* Check whether a string is a URL or not
*
* @export
* @param {string} s A string
* @param {StrictOptions} options
* @returns {boolean} true if a string is a URL
*/
declare function isURL(s: string, options?: StrictOptions): boolean;
/**
* Check whether a string is a CVE or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is a CVE
*/
declare function isCVE(s: string): boolean;
/**
* Check whether a string is a BTC or not
*
* @export
* @param {string} s A string
* @returns {boolean} return true if a string is a BTC
*/
declare function isBTC(s: string): boolean;
/**
* Check whether a string is an XMR or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is an XMR
*/
declare function isXMR(s: string): boolean;
/**
* Check whether a string is a Google Adsense Publisher ID or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is a Google Adsense Publisher ID
*/
declare function isGAPubID(s: string): boolean;
/**
* Check whether a string is a Google Analytics tracking ID or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is a Google Analytics tracking ID
*/
declare function isGATrackID(s: string): boolean;
/**
* Check whether a string is a mac address or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is a mac address
*/
declare function isMacAddress(s: string): boolean;
/**
* Check whether a string is an ETH address or not
*
* @export
* @param {string} s A string
* @returns {boolean} true if a string is an ETH address
*/
declare function isETH(s: string): boolean;
export { isASN, isBTC, isCVE, isDomain, isETH, isEmail, isGAPubID, isGATrackID, isIPv4, isIPv6, isMD5, isMacAddress, isSHA1, isSHA256, isSHA512, isSSDEEP, isURL, isXMR };