Quantcast
Channel: Marco's Blog » English
Browsing latest articles
Browse All 10 View Live

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 Article



Wake 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 Article

Bash 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 Article

Easily 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 Article

Apache – 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 Article


ICMP 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 Article

RPM 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 Article

Image may be NSFW.
Clik here to view.

SFTP 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 Article


Disabled Comments

Spammers have created 500 comments. Since this feature has been used rarely, i’ve decided to disable comments from unregistered users.

View Article


PHP 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
Browsing latest articles
Browse All 10 View Live




Latest Images