Dump a postfix .db file
To dump the content of a postfix .db file just type: # you have to ommit the file's .db extension: postmap -s virtual_aliases
View ArticleWake on lan script
Here is a tiny wakeup script that i wrote: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #!/bin/bash DEST_MAC="12:34:56:78:9A:BC" DEST_HOST="192.168.10.10" echo -n "Waking up...
View ArticleBash stderr/stdout redirection
Today i was writing a little bash script. As i was just interested in the return code of an executed command, i wanted to surpress all output. Usually i always do it like this: cmd 1> /dev/null...
View ArticleEasily prevent click hijacking
According to Wikipedia, click hijacking is a malicious technique of tricking Web users into revealing confidential information or taking control of their computer while clicking on seemingly innocuous...
View ArticleApache – Secure HTTPS configuration
If you offer HTTPS to your customers, you should not use weak encryption keys. This is a recommended setup: 1 2 SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite...
View ArticleICMP intrusion prevention
FOR security reasons, ICMP timestamp-request and timestamp-response must be turned off. Those ICMP packets allow any attacker to calculate your server’s local time (and therefore exploit weak random...
View ArticleRPM package information
Here are some basic commands, so that you can get all information out of an RPM file: # show information rpm -qpi "$1" # show all included files rpm -qp --dump "$1" rpm -qplv "$1" # show all included...
View ArticleSFTP upload Tool
Introduction The linux sftp client does not support to read the file from stdin. This is especially annoying when you want to do backup your file system, but you do not have enough free disk space to...
View ArticleDisabled Comments
Spammers have created 500 comments. Since this feature has been used rarely, i’ve decided to disable comments from unregistered users.
View ArticlePHP CLI Password Prompts on Windows 7
There are serveral solutions to gather passwords with PHP CLI on Windows. But usually they do not work with Windows 7. So this is my solution using Powershell: // please set the path to your...
View Article
More Pages to Explore .....