Skip to content

foospidy/clilib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clilib

A library of emulated command line commands. The goal of this library is to emulate the most common cammands for Unix and Windows. The primary use case for this library is in honeypots.

Setup

Install and usage instructions (tested on Debian Linux):

Install

clone this project or download and extract the latest version from: https://github.com/foospidy/clilib/releases and cd into the project directory.

run: python setup.py bdist_egg

then run: sudo easy_install -Z dist/clilib-0.0.1-py2.7.egg

Usage

Import clilib into your script with from clilib import *

You should now be able to call command cuntions form your script. Command functions always return printable output so you can store the output to a variable or print it directly. Examples:

myvar = print uname('-a') print myvar

or

print uname('-a')

more examples are in the test script here: https://github.com/foospidy/clilib/blob/master/test.py