Feed on
Posts
Comments

Monthly Archive for September, 2009

Sending mail within bash

If you have a mail server installed it’s pretty easy. Every mail server is going to provide a sendmail binary, so that’s what we’ll use. The bare minimum is as follows: sendmail -t <<EOF To: [email protected] Subject: Test Body . EOF That’s probably not going to reach the destination, however. The problem with this is […]

Read Full Post »

IP blacklist on linux

My last post described in detail the steps to effectively block all network traffic from an attacking IP. Here’s how to block an IP in linux: iptables -A INPUT -s IP-To-Block -j DROP iptables -A INPUT -d IP-To-Block -j DROP Of course, that takes advantage of the built-in linux firewall. We didn’t use the built-in […]

Read Full Post »

IP blacklist on Windows

There’s probably a better way to do this – if you know of one, please comment on this post. I have a pretty high opinion of myself, but I’m not so stubborn as to think I already know the best way to do everything. Firewall options for a Windows server are kind of sparse. I’ve […]

Read Full Post »

Bash hot-keys 1

Granted, some of these are probably SSH or Putty hot-keys. I’m not certain there’s going to be a “Bash hot-keys 2” post, but there are probably plenty of combinations I’ve forgotten or have yet to learn, so we’ll call this post part 1, and there will most likely be more. ctrl+l That’s a lowercase L. […]

Read Full Post »

Hello world!

The first program in any language should always be a salutation to those who came before. echo “Hello world!” printf(“Hello world!”); system.out.println(“Hello world!”); cout << “Hello World!” << endl; print “Hello world\n”; 10 PRINT “Hello world!” puts “Hello world!” (display ‘”Hello world!”)

Read Full Post »