News for hackers. Stuff that matters.

isivaxa

Guests with smartphones are subverting their own restaurant experience.
Re:CVE-2014-6271: Remote code execution through bash on Wednesday September 24, 2014 @01:52PM (#8362948)
"A CGI script written in bash"

You're killin' me here. If you expose a shell script directly to the network, you're exposing a shell and deserve to be pwned.

Re:Write a program that makes 2 + 2 = 5 on Sunday June 01, 2014 @02:14PM (#7830079)

  #!/bin/bash
  tty
  if [[ $? -ne 0 ]] ; then
      # command returned nonzero
      echo "not a tty"
  else
      # command returned zero
      n=$?
      ((n=$n+2))
      ((n=$n+2))
      echo "0+2+2=$n";
  fi