This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dgram from 'dgram'; | |
export class InfluxUdp { | |
constructor(opts = {}) { | |
this.host = opts.hostname || opts.host || '127.0.0.1'; | |
this.port = opts.port || 8089; | |
this.family = opts.family || 'udp4' | |
if (!(this.family === 'udp4' || this.family === 'udp6')) throw new Error('The family of socket must be either udp4 or udp6') | |
this.client = dgram.createSocket(this.family) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { manifest } from '@sapper/internal/manifest-server' | |
export const definition = () => { | |
const openapi = { openapi: '3.0.0', paths: {} } | |
const routes = manifest.server_routes | |
for (const route of routes) { | |
const pattern = route.pattern.toString() | |
let name = pattern.replace('^\\/', '').replace('\\/?$/', '') | |
let params | |
if (name.endsWith('\\/([^/]+?)')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webeid = function(e) { | |
"use strict"; | |
var t, s = Object.freeze({ | |
VERSION: "0.0.1", | |
MSG_DEFAULT_TIMEOUT: 12e4 | |
}); | |
!function(e) { | |
e.ERR_WEBEID_AUTH_FAIL = "ERR_WEBEID_AUTH_FAIL", | |
e.ERR_WEBEID_STATUS_FAIL = "ERR_WEBEID_STATUS_FAIL", | |
e.ERR_WEBEID_MSG_PENDING = "ERR_WEBEID_MSG_PENDING", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##! Detect domain names what are new | |
##! NOD is a register of first sightings in DNS. | |
##! see https://www.farsightsecurity.com/Services/NOD/ | |
@load base/frameworks/notice | |
module FarsightSecurityNewlyObservedDomains; | |
export { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Transform } from "stream"; | |
import { inspect } from "util"; | |
import { kStringMaxLength as STRINGMAXLENGTH } from "buffer"; | |
import { InfluxUdp } from "./influxdb-udp.mjs"; | |
export function wait(ms, ...msg) { | |
ms = Math.round(ms); | |
return new Promise(resolve => { | |
//printProgress('pause ',ms, msg) | |
setTimeout(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3 | |
MAINTAINER "No Maintenance Intended http://unmaintained.tech/" | |
ENV LC_ALL en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV BUILD_DEPS \ | |
libc-dev \ | |
cairo-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NOS === Newly Observed Sessions | |
depends on https://github.com/simme/node-http-digest-client | |
*/ | |
'use strict' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##! see https://www.virustotal.com/en/documentation/public-api/#getting-file-scans | |
# | |
# Virustotal public API file report query | |
# resource: a sha1 hash will retrieve the most recent report on a given sample. | |
# apikey: your API key. | |
# it is limited to at most 4 requests of any nature in any given 1 minute time frame | |
@load base/frameworks/files | |
@load base/frameworks/notice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##! see http://www.shadowserver.org/wiki/pmwiki.php/Services/Sandboxapi | |
# | |
# ShadowServer Sandbox API Status Query | |
# http://innocuous.shadowserver.org/api/?query=#md5-or-sha1# | |
# Returns the md5, sha1, first seen date (UTC), last seen date (UTC), file type, and ssdeep hash | |
# on the first line as a CSV value. The second line is a JSON object containing antivirus vendor | |
# and signature details for the given sample. | |
@load base/frameworks/files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##! modified TeamCymruMalwareHashRegistry | |
@load base/frameworks/files | |
@load base/frameworks/notice | |
@load frameworks/files/hash-all-files | |
module TeamCymruMalwareHashRegistryPlusVirusTotalPublicAPI; |
NewerOlder