Andronicus

Security Projects, Research, and Linux

Automate Patching/Rolling Reboot

2019-06-24 Bash Script No Comments

For anyone who does patching, you know this can be ultra-tedious, especially if you have large numbers of servers.  However, I have put together a script that will roll through a list of CentOS/RHEL/Fedora servers, patch them, reboot them, and run a command or two once they’re back up (if you need to).

Its assumptions:

  • You’re using CentOS/RHEL/Fedora
  • You are using root to connect from the server this is running on to connect to root on the target servers
  • You have ssh pub/priv keys set up between said accounts

If you’re worried about someone hacking into your environment, escalating privileges, and pivoting from the server running this script, it’s definitely not the one for you.  I totally get that.

But if you’re sick of having to do it all manually, you can either move to AWS and adopt a “cattle” mentality, or you can use this script. 🙂

Here you are: Patching Script

centosfedorapatchingrhel

Data Breaches and You

DefCon Resources

Leave a Reply Cancel reply

Solve : *
12 × 4 =


Recent Posts
  • Guide to SSH Lockdown
  • DefCon Resources
  • Automate Patching/Rolling Reboot
  • Data Breaches and You
  • Defend Against This
Recent Comments
  • Paul Arrigo on The Easiest Metasploit Guide You’ll Ever Read
  • Mirek on The Easiest Metasploit Guide You’ll Ever Read
  • Andronicus on Defend Against This
  • ann_on on Defend Against This
  • Andronicus on The Easiest Metasploit Guide You’ll Ever Read
Archives
  • April 2020
  • June 2019
  • May 2019
  • June 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
Categories
  • Authentication Factors
  • Bash Script
  • Capture the Flag
  • Ciphertext Analysis
  • Credential Research
  • DefCon
  • How-To
  • Metasploit
  • News
  • Pros vs Joes
  • Security
  • ssh
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress | Theme: Doo by ThemeVS.