Articles & Snippets

Search for content...
/

Start typing to search

How To Check If Your Linux Is Vulnerable to Shellshock

Posted by Cătălin on Sat, 27 Sep 2014

How To Check If Your Linux Is Vulnerable to Shellshock

You can test your system by running this test command from Terminal: env x='() { :;}; echo vulnerable' bash -c 'echo hello' If you're not vulnerable, you'll get this result: bash: warning: x:...

Read More...
code

Finding a text string in Linux

Posted by Cătălin on Tue, 15 Jul 2014

Finding a text string in Linux

In this example, search for a string called "jquery-1.6.2" in all text (*.js) files located in "/home/user/public_html/" directory, use: $ grep "jquery-1.6.2" /home/user/public_html/*.js OR ...

Read More...
code

How to count all the files recursively?

Posted by Cătălin on Mon, 23 Jun 2014

How to count all the files recursively?

How to count all the files recursively through directories in Linux: find -maxdepth 1 -type d | while read -r dir; do printf "%s:\t" "$dir"; find "$dir" -type f | wc -l; done

Read More...
code

Installing SSL Certificate on Apache with mod_ssl

Posted by Cătălin on Sun, 2 Feb 2014

Installing SSL Certificate on Apache with mod_ssl

Generate your certificate.csr and private.key with on Apache with mod_ssl cd /etc/ssl/domain.tld openssl genrsa -des3 -out private.key 4096 openssl req -new -key private.key -out certificate.csr ...

Read More...
code