Advertisement
ShoLah0

Debian Squeeze LTS

Oct 27th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. I had to add LTS repositories to update bash which fixes the Shellshock vulnerability on Debian Squeeze. I hope someone else finds this useful:
  2.  
  3. First, check to see if your box is vulnerable. Cut/paste this to your command line:
  4.  
  5. env x='() { :;}; echo "WARNING: SHELLSHOCK DETECTED"' \
  6. bash --norc -c ':' 2>/dev/null;
  7.  
  8. If you get a response like:
  9.  
  10. WARNING: SHELLSHOCK DETECTED
  11.  
  12. As I did in Squeeze, you have the vulnerability. You'll have to update your repositories to the LTS version to get the updates, by commenting out your current repository lines starting with 'deb' in your /etc/apt/sources.list file and then adding these:
  13.  
  14. deb http://http.debian.net/debian/ squeeze main contrib non-free
  15. deb-src http://http.debian.net/debian/ squeeze main contrib non-free
  16. deb http://security.debian.org/ squeeze/updates main contrib non-free
  17. deb-src http://security.debian.org/ squeeze/updates main contrib non-free
  18. deb http://http.debian.net/debian squeeze-lts main contrib non-free
  19. deb-src http://http.debian.net/debian squeeze-lts main contrib non-free
  20.  
  21. Now you should update your local cache and install the upgraded bash (their servers are slow now because everyone's updating, so just pull down the bash one for bandwidth's sake):
  22.  
  23. apt-get update && apt-get install --only-upgrade bash
  24.  
  25. You can do a full system upgrade later. Now run the vulnerability check script above and you shouldn't get any text output, which means you're patched :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement