GithubHelp home page GithubHelp logo

ttyrun's Introduction

A simple tool to run commands on a different terminal

Screenshot

How to run it

  • You must find the tty of the terminal you want to run the command on
  • example for metasploit framework :
  • 1st run msfconsole
  • 2nd then run the following command from another terminal
  • ps -aux |grep msfconsole | awk '{print$7}' | sed -n 1p
  • in my case i got pts/0

to run a particular command from the current terminal to the msfconsole terminal just do it like this

  • ./execute -n /dev/pts/0 show options
  • where :
  • execute= is the current bin in this git
  • -n = new line after the command (this option simulates an enter after your text in other window
  • show options = command to be execute on other terminal

Original Code Source

http://www.humbug.in/2010/utility-to-send-commands-or-data-to-other-terminals-ttypts/

Current files on this git

  • execute.c = Source code
  • execute = binary already compiled

ttyrun's People

Contributors

peterpt avatar

Watchers

James Cloos avatar  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.