Shellshock, a recently discovered bash vulnerability that allows attackers to inject code into your machine. This makes Mac OS and Linux under threat of malicious attack. So how do I determine if my Mac or Linux is vulnerable to Shellshock attacks? Believe that a lot of fruit powder is now worried about this ask, let's talk about how to determine if your machine is vulnerable to attack.
Shellshock uses bash scripts to access your computer. Just this, it can run programs, open Services, and receive files on your machine. This script mainly affects the UNIX based operating system, so the Linux system and Mac OS have no doubt been shot.
You can test the system by entering the following command in the terminal:
Env x= ' () {:;}; echo vulnerable ' bash-c ' echo this is a test
If your computer doesn't have an attack, you should see it return:
BASH:WARNING:X: Ignoring function definition attempt bash:error importing function definition for ' x '-a test
If there is a hidden danger of being attacked, the output will be as follows:
Vulnerable this is a test
You can then use the following command line to check your bash version:
Bash--version
If the result is that you are using a bash shell with a release number of 3.2.51 (1)-release, it means you need to upgrade. Most Linux distributions already have patches available. You can refer to some tutorials on the web for upgrades. If you are a Mac OS user, you will need to spend some time waiting for Apple's new patches, but you can also update them manually based on this article.
The above is my Mac or Linux is vulnerable to Shellshock attack view way, I hope to help!