An open API service indexing awesome lists of open source software.

https://github.com/b3b0/linuxpatchchecker

🐧🎛️ Can be used for anything really though! Don't be evil! Pure python, OS-agnostic.
https://github.com/b3b0/linuxpatchchecker

hacking linux patch ssh update

Last synced: about 1 month ago
JSON representation

🐧🎛️ Can be used for anything really though! Don't be evil! Pure python, OS-agnostic.

Awesome Lists containing this project

README

          

# LinuxPatchChecker
Can be used for anything really though!

`python LinuxPatchChecker.py [hostname/IP/group.srvs] port username command`

---
# Requires
- Python 2.7 or 3.x
- `pip install paramiko`
- `pip3 install paramiko`
- key-based or password-based access to the servers you want to use the tool against

# How To Use
- To run a command against one server, use the following syntax:

`python LinuxPatchChecker.py hostname port username command`

- To run a command against a LIST of servers, use the following syntax:

`python LinuxPatchChecker.py [name of .srvs file in the same directory as LinuxPatchChecker.py] port username command`

- I'm running `patchcount` against the servers in this file in this example:

![Example host list .srvs file](https://i.imgur.com/6aK6vod.png)
![patchcount](https://i.imgur.com/KONUTXi.png)

---

## Get counts of updates available with `patchcount`
![patchcount](https://i.imgur.com/KONUTXi.png)

## Get names of available updates with `patches`
![patches](https://i.imgur.com/VCbbgpj.png)

## Run any command against one or many servers!
![command](https://i.imgur.com/MMWFDXv.png)
# To Do
- ability to have multiple hostnames if not using a .srvs file