Coder Social home page Coder Social logo

node-moloch's Introduction

node-moloch

Moloch is an extremely powerfull open-source packet sniffer (see https://github.com/aol/moloch ) node-moloch is a simple Node.js Moloch client which gives you the ability to query your Moloch server easily and fetch security-related information.

About

  • Created By Tom Goldberg

Supported functionalities:

node-moloch is currently supporting the following actions:

Method Description Input Successful Output
getOutGoingConnectionsForIP() Gets all of the outgoing connections for this particular IP address IP address (string) An array of IP's followed by ports
getIncomingConnectionsForIP() Gets all of the incoming connections to this particular IP address IP address (string) An array of IP's followed by ports
getConnectionsByProtocol() Gets a list of all connections for a specific protocol smb,http,https,ldap,udp,tcp,dns,tls,etc.. an array containaing the relevant connections
getOutotgoingConnectionsToCountry() Given a country , rerieves a list of IP addresses communicating with server hosted on hits country CountryCode ('IL','US','IE' ,etc... an array containaing the relevant connections

Important Note :

all of the queries go 24 hours back by default . If you wish to query for less/more time , just add the number of hours that you want to query as a second (optional) parameter to every action. For example: getOutGoingConnectionsForIP('192.168.3.2','96') will search for outgoing connections made by 192.168.3.2 in the last 96 hours.

How To

  1. cd in to your project folder and npm install this repository
npm install --save node-moloch
  1. require the node-moloch repo.
var Moloch=require('node-moloch')

3.Set the connection

var molochClient = new moloch({
    ip: '10.1.2.21',
    userName: 'Duke',
    password: 'Nukem'
})

4.Use the module. For complete and detailed set of examples , see the examples.js file.

molochClient.getOutGoingConnectionsForIP('10.1.43.39')
    .then((res) => {
        console.log(res)
    })
    .then(() => {
        molochClient.getIncomingConnectionsForIP('10.1.43.39').then((res) => {
            console.log(res)
        })
    })

node-moloch's People

Contributors

tomgold182 avatar dependabot[bot] avatar

Stargazers

Johnny Shtekel avatar  avatar Gal Falah avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.