Schedule

Schedule

Tuesday, April 21

1429635600 Tech News Today
1429639200 MacBreak Weekly
1429648200 Security Now
1429657200 Tech News 2Night
1429660800 All About Android

Wednesday, April 22

1429716600 FLOSS Weekly
1429722000 Tech News Today
1429725600 Windows Weekly
1429732800 This Week in Google
1429743600 Tech News 2Night
1429745400 Android App Arena
1429750800 Ham Nation

Thursday, April 23

1429808400 Tech News Today
1429812000 Know How...
1429817400 Marketing Mavericks
1429822800 Home Theater Geeks
1429830000 Tech News 2Night
1429831800 The Giz Wiz

Friday, April 24

1429894800 Tech News Today
1429898400 This Week in Law
1429909200 Before You Buy
1429916400 Tech News 2Night

Saturday, April 25

1429984800 The Tech Guy

Sunday, April 26

1430071200 The Tech Guy
1430085600 This Week in Tech

Monday, April 27

1430154000 Tech News Today
1430157600 Triangulation
1430163000 iPad Today
1430170200 Coding 101
1430175600 Tech News 2Night

Tuesday, April 28

1430240400 Tech News Today
1430244000 MacBreak Weekly
1430253000 Security Now
1430262000 Tech News 2Night
1430265600 All About Android

Wednesday, April 29

1430321400 FLOSS Weekly
1430326800 Tech News Today
1430330400 Windows Weekly
1430337600 This Week in Google
1430348400 Tech News 2Night
1430350200 Android App Arena
1430355600 Ham Nation

Thursday, April 30

1430413200 Tech News Today
1430416800 Know How...
1430422200 Marketing Mavericks
1430427600 Home Theater Geeks
1430434800 Tech News 2Night
1430436600 The Giz Wiz

Most Recent Episodes

iPad Today

Snapchat, Beat Sneak Bandit, Lost Within

Coding 101

Flash, Objective-C and Swift!

Tech News 2Night

Attention tech addicts... The doctor will see you now!

Triangulation

A documentary which exposes the dearth of American female and minority software engineers.

Tech News Today

Google is changing its search algorithm to favor mobile friendly sites.

This Week in Tech

This Week in Tech Turns 10!

The Tech Guy
The Tech Guy 1180 April 19th, 2015

Securing your Yahoo Mail account.

The New Screen Savers
Episode #0: We're Back! April 19th, 2015

The New Screen Savers launches May 2nd. Subscribe now!

The Tech Guy
The Tech Guy 1179 April 18th, 2015

Can I still back up off-site when internet connection is unreliable?

Before You Buy

First looks at the 3DR Solo Drone and Sony HDR 4K Monitors at NAB.

Coding 101 13

Sanitize')DROP TABLE Python;

April 17 2014

Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

Guest: Dale Chase

Welcome to Coding 101 - It's the TWiT show that gives YOU the knowledge to live in the wonderful world of the programmer. This week we are introducing our newest module, Python with Code Warrior Dale Chase!

To see all the code used in today's episode, go to Our Github Repository for Module 2

Loops (Recap)

* As we may recall, loops are an easy way to reuse code.
* It allows us to "loop" a section of code so that it doesn't have to be writen over and over.

While Loops
"While loops in Python work very much like they do in C#

They use some sort of counter and some sort of relational true/false statement. The while loop will continue to run as long as the statement is true. The true/false statement is pre-test, meaning that it will evaluate the statement BEFORE the loop code is executed."

Code Sample:

counter = 0

while counter < 5:

counter = counter +1
print counter

Output:
1
2
3
4
5"

Sanitizing your Input!

The Heartbleed Bug

What is the Hearbeat?
* The problem lies in the "Hearbeart"
- It's a way to keep a SECURE TLS session alive /// to keep it from "timing out"
- The Heartbeat is a payload of arbitrary data which is sent from one end of the connection to the other, and back again.
- If the heartbeat makes the round trip intact, then both sides of the connection know that the connection is still active and still secure.

Here is the OpenSSL Code

(The Bug starts on Line 3972)
/* Read type and payload length first */

hbtype = *p++;

n2s(p, payload);

pl = p;

hbtype is the TYPE of data

P++ increments the pointer

p is the pointer for the payload

payload is the length of the payload"

The problem is that the SENDER gets to set the "payload" length and the code never checks to see if the sent length matches the recieved length of the payload.

The Crux of the Matter:
* The Hearbleed bug stems from code that does not check to make sure it's recieving into memory what it expected.
* In other words... IT DIDN'T SANITIZE IT'S INPUT!

Get in Touch With Us!

* Subscribe and get Coding 101 automatically at TWiT.tv!
* Follow PadreSJ and Snubs on Twitter.
* Watch the show live and join the chatroom every Thursday at 1:30pm PST.
* Email us at Padre@twit.tv and Shannon@twit.tv.
* Join our Google+ Community!

Download or subscribe to this show at twit.tv/code. Also, check out our transcripts.

Bandwidth for Coding 101 is provided by Cachefly.

Running time: 41:46

Sponsors: