(or indeed on any linux system). ssh in and
cat /proc/net/*conntrack | grep dport=22 | grep dst=1.2.3.4
to check ssh connections to 1.2.3.4 for example
(or indeed on any linux system). ssh in and
cat /proc/net/*conntrack | grep dport=22 | grep dst=1.2.3.4
to check ssh connections to 1.2.3.4 for example
The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packets, which allows remote attackers to obtain sensitive information from process memory via crafted packets that trigger a buffer over-read, as demonstrated by reading private keys, related to d1_both.c and t1_lib.c, aka the Heartbleed bug.
via CVE – CVE-2014-0160.
Centos were very quick to get the update out for this (don’t forget to restart your daemons). I wonder of this is due to their partnership with Redhat?
I’ve been looking for something to manage my inbox, I already use procmail to file mails into folders as they arrive, but I end up with a lot of emails that need tidying up later. For example, I receive the weekly BBC 4 progamme guide email – after a week the programmes have been shown and the email is useless. Similarly eBay search alerts.
I was going to write my own mail filter in python, but then discovered imapfilter which is in the EPEL repositories for Centos/RHEL. It’s fantastic – you write your rules in lua (which is very straightforward, certainly more so than procmail’s custom language), set it to run in cron and off it goes. An example config file is below:
myaccount = IMAP {
server = 'localhost',
username = 'jp',
password = 'N0tmyrealpw',
ssl = 'tls12'
}
-- get seen messages from inbox older than 10 days
inboxmsgs = myaccount.INBOX:is_seen()
oldmsgs = inboxmsgs:is_older(10)
-- further filter from these senders
delmsgs = oldmsgs:match_from('.*(bbcfournewsletter|humblebundle|googlealerts|Transport_for_London|sourceforge).*')
delmsgs:delete_messages()
-- get old messages from shopping, ebay & cron folders
shopmsgs = myaccount['saved/shopping']:is_older(14) + myaccount['saved/ebaysearch']:is_older(3) +
myaccount['saved/cron']:is_older(14)
shopmsgs:delete_messages()
With the plugin I am currently using failing on one of my domains, I decided to write another short plugin in python, using the pywhois library. Unfortunately this failed to parse the Godaddy whois output, so there is a workaround for this included in the plugin.
Download the plugin from github.
bbcp is an alternative to scp that for me was 6x faster – it uses ssh as a transport but uses parallel streams. You may need to open up some firewall ports. Do not use if you don’t want your network bandwidth saturated!
Example usage specifying an open port range on the remote server:
bbcp -z -Z 9160:9200 remoteserver.com:/remotefilename .
bbcp.
Upgraded to Ubuntu 14.04. A desktop option is Gnome MATE, which is classic gnome, I’ve kicked XFCE out and this is like welcoming an old friend back.
How to Install Mate 1.8 CLassic Desktop Environment in Ubuntu 14.04 Trusty LTS.
Adds back the addon bar for Firefox with the Australis theme Firefox 29 and up.It aims to be a lightweight, yet fully functional replacement for the old Addon Bar.Great for power users who have many addons installed, and especially for long toolbar items.This also restores the status-bar area, so it works with extensions such as Status-bar Scientific Calculator and Version in Add-on bar. Plus, it adds a new feature that lets you move the status-bar around!
I’ve written a simple nagios check for TFL’s services (Tube & DLR): check_tfl.tar
Latest version in my github repository.
If you’re a python programmer, you probably know all about the troubles mixing tabs and spaces can cause. I have searched far and wide, and have collected some really useful configurations for setting up the perfect Emacs configuration for Python.
What it does:
Insert spaces instead of tabs when indenting
Sets indent to 4 spaces when in python mode & SGML (superset of HTML) mode. This is useful for the web developers out there.
Highlight tabs and trailing whitespace (thanks to http://www.emacswiki.org/emacs/highlight-chars.el)
via Tabs, Whitespaces, and Highlighting in Emacs – for the Python Programmer.
Hexspeak, like leetspeak, is a novelty form of variant English spelling using the hexadecimal numbers. Created by programmers who wanted a magic number, hexspeak words can serve as a clear and unique identifier with which to mark memory or data.