TorryCrass.com

  • About
  • Gallery

Script

Scripting

Linux Script Error: Bad Substitution (change shell from dash to bash)

This is a simple problem in the end that cost me serious troubleshooting time. Hopefully you found this article and it can save you some of what I lost. You may encounter a problem when running a script on the Linux CLI that results in error: bad substitution and a Read more…

By Torry Crass, 6 years6 years ago
Helpful Commands

Kali/Ubuntu Remove Old Kernels

UPDATE 20 SEP 2020: As it goes, this remains a problem as autoremove is simply not a well rounded solution for this. Yes, autoremove will remove old kernels, but it also removes other software and libraries that can still be in use. It doesn’t seem to perform all the proper Read more…

By Torry Crass, 6 years5 years ago
Scripting

Check if Linux Needs a Reboot

One of the best parts of a Linux OS is that you can often patch on the fly without a need for reboot afterwards. The only thing that does definitively need a reboot is after a kernel patch. Sometimes, it isn't possible to issue the reboot right away, so the system Read more…

By Torry Crass, 11 years11 years ago
Scripting

FindMyHash Output Capture Script Hash Brown

FindMyHash is a great utility for checking hashes across various sites for pre-determined hash values, accepting both single hashes and hash files with support for a large variety of hash types (MD4, MD5, SHA1, SHA256, RMD160, LM, NTLM, MYSQL, CISCO7 or JUNIPER). Unfortunately, the native tool doesn't currently offer the Read more…

By Torry Crass, 11 years11 years ago
Scripting

Log Parsing Script for Shell Shock

The released script will take a given log directory, normally your website log directory, and search it for attempts to exploit the server using the recently released GNU Bourne Again Shell (bash) vulnerability also known as Shell Shock.  Once it identifies these entries, it will output them into a separate Read more…

By Torry Crass, 11 years ago
Helpful Commands

Linux User Creation and Password Update with Simple Command Chaining

I needed to create a user, grant them super user sudo privileges, update user account passwords and expire them across a number of different servers so that the actual user could log in and be forced to change their password to a (hopefully) secure one after I was complete.  Initially, Read more…

By Torry Crass, 11 years11 years ago
Helpful Commands

Bulk Respond To Confirmation Prompts in Linux

This is quite the little zinger from time to time so I thought I would jot down a quick post on it, mainly for my memory, and for anyone else who might be looking for a similar solution. For example, when you run the following, you could be required to Read more…

By Torry Crass, 11 years11 years ago

Posts navigation

1 2 Next
Categories
  • Business (1)
  • Helpful Commands (23)
  • Notes (2)
  • Poetry (38)
  • Quips (3)
  • Scripting (6)
  • Security (19)
  • Technical (73)
  • Updates & News (9)
Valuable Products

Affordable Linode VPS

Help Others With Kiva

0.5GB Extra Storage with OneDrive

2GB Free Storage With Dropbox

 

Copyright & Image Usage
Content and images on this site are property of Torry Crass or their respective owners where cited or referenced.
Some images used through public domain licensing and obtained via http://www.publicdomainpictures.net/

© 2010 - 2018 TorryCrass.com

  • Gallery
  • NMP License v1.0
Hestia | Developed by ThemeIsle