How To Check If Your Linux Is Vulnerable to Shellshock
Posted by Cătălin on Sat, 27 Sep 2014How 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
Terminal search files by text that the file names contain
Posted by Cătălin on Mon, 21 Jul 2014Terminal search files by text that the file names contain
sudo find / -type f -name "*string*"
Read More...code
Finding a text string in Linux
Posted by Cătălin on Tue, 15 Jul 2014Finding 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 2014How 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
How to find IPs in the same network?
Posted by Cătălin on Mon, 24 Mar 2014How to find IPs in the same network?
Open Terminal and type: arp -a it will list all the computers on the network and the host names.
Read More...code
Installing SSL Certificate on Apache with mod_ssl
Posted by Cătălin on Sun, 2 Feb 2014Installing 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