Giter Club home page Giter Club logo

spiral-arm's Introduction

######################
## SPIRAL ARM  1.2  ##
######################

Spiral Arm is a collection of shell scripts
for UNIX system monitoring and process control.

The Library currently includes the following:
- configurator.sh
- ssh-limit.sh
- lock.sh
- stoplock.sh
- setlimit.sh
- stand-alone functions

You need these two files:
install-spiral-arm.sh
spiralarm.tar.gz

To install, become root and run:
bash ./install-spiral-arm.sh

Then run the configurator to see what processes
Spiral Arm will see:
sudo bash /opt/spiral-arm/configurator.sh

Or use the alias file to run the configurator:
cfg

Note:
1 - Root bypasses Spiral Arm.
2 - Use "bash ./scriptnamehere" as root to run the scripts. 
    This way they can remain non-executable on the system.

To add the alias file:
cat /opt/spiral-arm/alias >> /root/.bashrc

Example usage:

# Create the lock. The default is two ssh programs before 
# it triggers kill on the blacklist.

sudo bash /opt/spiral-arm/lock.sh &

# So now you can add one ssh program.
# /place/thing-ssh start
# Then add it to the whitelist.

sudo bash /opt/spiral-arm/whitelistfunction.sh

# Then lets say you want to drop all the ssh programs.

sudo bash /opt/spiral-arm/clearwhitelist.sh
sudo bash /opt/spiral-arm/setlimit.sh

# What would you like the ssh limit to be?
# Set it like so

echo 2 > /etc/ssh-limits.cfg

# And there is an alias file to speed up these commands.

cat ./alias >> ~/.bashrc

# Set whitelist
wlf
# Lock down
lock

spiral-arm's People

Contributors

jpegleg 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.