RSS

Frequently used Linux one-liners

0 Comments | This entry was posted on Mar 30 2009
GoDaddy.com Hosting & Servers

I just submitted a couple of one-liners that I frequently use to Command-line-Fu.

Find brute force attempts on SSHd – Searches the /var/log/secure log file for Failed and/or invalid user log in attempts.
root@empulse:$ cat /var/log/secure | grep sshd | grep Failed | sed 's/invalid//' | sed 's/user//' | awk '{print $11}' | sort | uniq -c | sort -n


List SMTP connections by host – Searches /var/log/secure for smtp connections then lists these by number of connections made and hosts.
root@empulse:$ cat /var/log/secure | grep smtp | awk '{print $9}' | cut -f2 -d= | sort | uniq -c | sort -n | tail

Command-line-Fu

0 Comments | This entry was posted on Mar 29 2009
Unlimited Online backup for 4.95/month

If you haven’t seen this site you need to check it out. Command-line-Fu is running list of submitted Linux one-liner commands.  Some of these are really cool and you can of course submit your own for peer review.

Here are a couple of examples you may find.

Update twitter via curl

username@computername:$ curl -u user:pass -d status="Tweeting from the shell" http://twitter.com/statuses/update.xml

List of commands you use most often

username@computername:$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head

Linux Security Quick Reference Guide

0 Comments | This entry was posted on Mar 29 2009

I just found this quick reference sheet on Linux security topics from Apache and DNS security to  crucial system files, tcp wrappers, and configuring syslog. This document from LinuxSecurity.com is available as a pdf download is provided below.

Linux Security Quick Reference Guide (pdf)

Excerpt: “Regularly audit your systems for any unauthorized and unnecessary use of the setuid or setgid permissions.”

Quick tip: Find all setuid and setgid programs

root# find / -type f -perm +6000 -ls

How do you linux? Contest

1 Comment | This entry was posted on Mar 27 2009
Go Daddy $7.49 .com domains 468x60

What do you do with Linux? is the question being asked by howdoyoulinux.com, who is having a video contest describing what you do with Linux. We all the great things you can do with Linux from a hardware firewall/router to a home theatre system. $2,000 and other prizes will go to the winners.

http://howdoyoulinux.com/

How Vaccuum Tubes Are Made and Used, Explained in 1942

0 Comments | This entry was posted on Mar 25 2009

This is really cool.  Gizmodo has an ariticle with videos from the 40s on how vacume tubes were made. These were put together by hand.

How Vaccuum Tubes Are Made and Used, Explained in 1942