Git Product home page Git Product logo

jimiplugin-remote's Introduction

jimiPlugin-remote

jimi IT automation framework to carry out remote tasks on workstations, servers, etc

jimiplugin-remote's People

Contributors

b1scuit-thi3f avatar terrifiedbug avatar thecyphergoat avatar u-n-i-c-o-rn avatar z1pti3 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

jimiplugin-remote's Issues

Bug - Broken Pipe Error when using remoteUpload multiple times

When using remoteUpload against one IP multiple times, you will occasionally be faced with:

 "flowData": {
      "action": {
           "action_id": "608821243022b5a73697b831",
           "action_name": "Upload Package",
           "msg": "File transfer failed - [Errno 32] Broken pipe",
           "rc": 403,
           "result": false
      },

A restart of JIMI resolves the issue.

Hanging onto SMB connections

Plugin does not appear to correctly close handles for SMB and as a result every so often it reports a connection error as the max handle count is exceeded.

No support for concurrent windows connections

If you attempt to connect to the same host multiple times from different flows you get:

smbprotocol.exceptions.SMBException: Server message signature could not be verified: 1488cc7e507ddbf7ee86c5bbd8c4b883 != 75bfdef70950d50774ceba003bc85c75

Bug - Multi-command reports success when commands failed

When using multicommand when you get errors it says they are ok anyway?

               "commands": [
                    {
                         "command": "apt-get update",
                         "data": "Reading package lists...\n",
                         "errors": [
                              "E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1374 (apt-get)\n",
                              "E: Unable to lock directory /var/lib/apt/lists/\n"
                         ],
                         "msg": "Command succesfull",
                         "rc": 100,
                         "result": true
                    },
                    {
                         "command": "apt-get dist-upgrade -y",
                         "data": "",
                         "errors": [
                              "E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1219 (apt-get)\n",
                              "E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?\n"
                         ],
                         "msg": "Command succesfull",
                         "rc": 100,
                         "result": true
                    }
               ],
               "errors": "",
               "msg": "All commands ran",
               "rc": 0,
               "result": true

Debug able to be ran multiple times

I had experienced an issue whereby debugging a Test Fire Trigger resulted in it being triggered 4 times.

Unknown why it ran 4 times as the number 4 does not reflect number of events, foreachs etc.

Feature - Ability to have clients pull down files hosted on JIMI via HTTP/S

I have a use case where I need to rapidly deploy/automate the installation of software for many users. The remote upload command is fine for uploading small software packages but at a large scale this will cause a bottleneck on upload bandwidth.

Adding the ability to have JIMI tell the client to download the software package from JIMI itself over HTTP/S will make this more efficient and usable at a large scale. The current workaround is to send a remote command to the client to do the following:

powershell -noprofile -executionpolicy bypass -command "Invoke-WebRequest -Uri 'http://server.net/Software/Setup.zip' -OutFile 'C:\Windows\Temp\Setup.zip'"

However, it makes more sense to be able to do this all within a plugin that tells the client to download from JIMI itself. This will help complete the functionality of using JIMI to push out the installation of software at scale.

Thanks,
Danny

Disable Paging on ciscoRemoteConnect

On every connect, turn off paging by running the command: "terminal monitor 0"

This is a per session command and will remove the requirement of handling the "more" prompt.

Fortigate connect via Paramiko fails as timeout argument is unexpected

As per below, the fix is to add the timeout=None to the command function:

    def command(self, command, args=[], elevate=False, runAs=None):
        self.channel.send("{0}{1}".format(command,"\n"))
        return (0, self.recv(), "")

to


    def command(self, command, args=[], elevate=False, runAs=None, timeout=None):
        self.channel.send("{0}{1}".format(command,"\n"))
        return (0, self.recv(), "")

image

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.