class notes 5 30 - acavataio/ITC-136 GitHub Wiki

Security - spectrum of levels and toughness - mostly involving how people access data - data access for one is available for others - What is my attack vector and who is trying to hurt my security? (airgap - 0 connectivity)

  1. check-in -checks about scripting feelings -how to protect your scripts

  2. two kinds of scripts: -take user input - (usernames, passwords, email addy, folder name) -do work within environment once run - (needs no info from user)

  3. Conditionals:
    -book covers "if" statements if [test]; than [command] else [command] fi

-elif (else if)

  if [test]; than 
  elif [test2]; than [command]
  elif [test3]; than [command]
  else [command]
  fi
  1. "for" loop -for (x) in (x); do (x)

    for (user) in $(cat /etc/passwd/); do usermod -l $user done

    for log in $(ls /var/msg); mv $log $log.bak done

  2. Working with VM - -copying code to github