Git Product home page Git Product logo

zclient's Introduction

zclient

Steps to setup: This should work on any platform (ideally) following instructions are for Windows but should work on any platform as well.

  1. Install nodejs (only use LTS release which is 10.15.1 as of today)
  2. Create a work folder. E.g c:\tkWork
  3. Create scanner folder inside it: c:\tkWork\evilscan
  4. Install evilscan node module
> npm install evilscan

Now our base environmen is ready. Copy file tkScan.js from this repo to evilscan folder and open in text editor. Update following section as required:

// Set IP range and port list here
let options = {
    target  :'192.168.1.1-192.168.1.254',
    port    :'80, 443',
    status  : 'RO', // Timeout, Refused, Open, Unreachable
    timeout : 3000,
    reverse : true,
    banner  : false
};

Above configuration will scan ip range 192.168.1.1 to 192.168.1.254 for connectivity (host is available on the network), http and https. Change IP range and ports accordingly.

Execution

This requires 3 arguments to execute. Run following command on shell/cmd prompt to get help:

> node tkScan.js

3 arguments are required
usage:
  > node tkScan.js <authToken> <host group Id> <host template Id>

Arguments:

  1. Auth token: generate this using PostMan or any other http client. This page has reference or how to make login REST call and obtain auth token.https://www.zabbix.com/documentation/4.0/manual/api
  2. Host group Id: create a host group Id in zabbix and mention the ID (not name) here. To find host group ID, open host groups page then move the mouse over host group link and check it's id in URL at bottom of browser window.
  3. Template Id: create a template in zabbix using zabbix traps (explained earlier) then use its id.
> node tkScan.js 343453453l43k3l4k34k34k 15 10288 > hostReqList.json 

This will output a long JSON document to hostReqList.json file.

zclient's People

Contributors

tkitss 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.