Code Monkey home page Code Monkey logo

remoteexecution's Introduction


		Project 		:	remoteExecution
		Description :	Execute commands remotely using Client-Server methodology
		Author			:	Apoorv Bhargava
		Email				:	[email protected]

Execution Instructions:


=> Please follow the below steps to execute the functionality.

Step-1: Compile the code
				# make

Step-2: Populate the sample file with username, password and allowed commands
				separated by comma
				Example: 
						username1,password2,command1,command2,command3
						username2,password2,command1,command2
						username3,password3
						
Step-2: Execute the code
		=> Initiate the functionality as Server (Executor). On terminal execute 
				the below command:
			
			# ./server -f <config_filename>

		=> Initiate the functionality as Client (Requester). On another terminal
				execute the below command:
			
			# ./client --server <server ip> --user <username> --password <password> 
								 --exec <program to execute>

	Note: Kill the server use "Ctrl+C" and then only close the terminal.
			
Step 3: Cleaning the executables and output files.
				# make clean

Assumptions :

=> For --exec option : having spaced commands (ex. "ls -la") use quotes to 
	enclose the them.

=> User cannot execute Super User (Sudo) commands

=> All the valid command for a user can have multiple options

=> Config File will have the entry in the following manner:
		username1,password1,command11,command12,.......
		username2,password2,command21,command22,.......

=> Maximum Buffer size and command length can be changed using the global 
	 variable MAXLEN (in global.h)

File Description:

1. server.c and server.h
-------------
	=> Contains the server code.

2. client.c and client.h
-------------
	=> Contains the client code.

3. Makefile
-------------
	=> akka Makefile.
	
4. README.md:
-----------
	=> Contains the project details and steps to execute it.

5. sampleFile:
-----------
	=> Sample Config file.

remoteexecution's People

Contributors

apoorvbhargava avatar

Watchers

 avatar

Forkers

darcyg

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.