Git Product home page Git Product logo

eve_to_securecrt's Introduction

eve_to_securecrt

Simple script used to convert an eve-ng lab instance to SecureCRT templates. EVE-NG changes the telnet port per login, making keeping up with sessions difficult.

Tested on

  • Python 3.12
  • SecureCRT 8.5.4
  • EVE-NG 5.0.1-129

Setup

  1. Clone the repo git clone https://github.com/jamesduv9/eve_to_securecrt.git
  2. Change to the directory cd eve_to_securecrt
  3. Install python libraries pip install -r requirements.txt

Run the script

eve_to_securecrt is a click cli tool, the create-template command has the following options. Note that eve-ip, eve-username, eve-password, and lab-name are required. output-directory is dynamically set to your securecrt sessions folder (if on windows), but you can change this to whatever you'd like

PS> python .\eve_to_securecrt.py create-templates --help
Usage: eve_to_securecrt.py create-templates [OPTIONS]

  Makes an api call to eve-ng getting all nodes in a lab

  Uses jinja to template out the device info into securecrt session templates

Options:
  --output-directory TEXT  Where to save the templated sessions  [default: C:\
                           Users\james\AppData\Roaming\VanDyke\Config\Sessions
                           ]
  --eve-ip TEXT            IP for your eve-ng instance- Ex. 192.168.1.241
                           [required]
  --eve-username TEXT      Username for your eve-ng instance- Ex. admin
                           [required]
  --eve-password TEXT      Password for your eve-ng instance- Ex. eve
                           [required]
  --lab-name TEXT          Lab name that you want sessions for- Ex. mylab
                           [required]
  --help                   Show this message and exit.

Run the script with required params

python eve_to_securecrt.py create-templates --eve-ip 192.168.1.120 --eve-username admin --eve-password eve --lab-name mylab123

Template

The template file securecrt_template.j2 can be modified to meet your exact requirement, like color syntax, etc.

eve_to_securecrt's People

Contributors

jamesduv9 avatar

Watchers

 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.