-
Go over TCP/IP review from last week (10-15 mins)
-
Go over CIA triad (< 5 mins)
-
Why Python in cyber? (< 5 mins)
-
Selecting a text editor:
- Visual Studio Code
- Sublime Text
- Vim
-
What is a package manager? ( < 5 mins)
- brew
- apt-get
- pip
-
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
- Windows: https://support.microsoft.com/en-us/help/841290
-
Installfest for Mac and Windows
- Python 2.7
- Python 3
- virtualenv
- pip
-
What is a virtual environment? (< 5 mins)
- whiteboard
-
What is a REPL?
- Demo Python REPL
-
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
- Mutable
- Dictionaries
- Key/Value Pairs
get
method- with default value
setdefault
methodpprint
modulepprint.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
-
Control structures
- General syntax
- For loops
- Nested For loops, lists of lists
- If statements
- If/Else statements
-
Functions
- def
- Why we use functions
- return statements
- global vs local variables
-
Creating a Python script
-
Working with packages
- getting
help()
in the REPL import os
(https://docs.python.org/2/library/os.html)
- getting
Last active
September 12, 2017 03:50
-
-
Save jaywon/63881ebb5666f301717438996b8d3d45 to your computer and use it in GitHub Desktop.
Cyber Prep - Day 5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment