Skip to content

Instantly share code, notes, and snippets.

@jaywon
Last active September 12, 2017 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaywon/63881ebb5666f301717438996b8d3d45 to your computer and use it in GitHub Desktop.
Save jaywon/63881ebb5666f301717438996b8d3d45 to your computer and use it in GitHub Desktop.
Cyber Prep - Day 5
  1. Go over TCP/IP review from last week (10-15 mins)

  2. Go over CIA triad (< 5 mins)

  3. Why Python in cyber? (< 5 mins)

  4. Selecting a text editor:

  5. What is a package manager? ( < 5 mins)

    • brew
    • apt-get
    • pip
  6. What is MD5 sum? ( 5-10 mins)

    • What part of the triad is it?
    • Installation
      • Windows: https://support.microsoft.com/en-us/help/841290
        • Create C:\fciv
        • Extract to that directory
        • cmd.exe
          • set path=%path%;c:\fciv
          • fciv -md5 -sha1 somefile.txt
        • Powershell
          • $env.Path += "C:\fciv"
          • fciv -md5 -sha1 somefile.txt
      • Mac/Linux
        • Preinstalled
        • md5sum somefile.txt
  7. Installfest for Mac and Windows

  8. What is a virtual environment? (< 5 mins)

    • whiteboard
  9. What is a REPL?

    • Demo Python REPL
  10. Basic Data Types:

    • String
    • Numbers
      • Integer
      • Float
      • Boolean
      • String
        • Special Characters in Strings
        • String indices
        • Immutability
        • in keyword
      • Tuples
        • Immutable
      • Lists
        • Mutable
          • insert
          • append
          • remove
          • sort
      • Dictionaries
        • Key/Value Pairs
        • get method
          • with default value
        • setdefault method
        • pprint module
          • pprint.pprint()
        • Order doesn't matter in a dictionary
          • Show two Lists in different orders and compare
          • Show two Dictionaries in different orders and compare
      • None
  11. Control structures

    • General syntax
    • For loops
    • Nested For loops, lists of lists
    • If statements
    • If/Else statements
  12. Functions

    • def
    • Why we use functions
    • return statements
    • global vs local variables
  13. Creating a Python script

  14. Working with packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment