Schedule

Schedule

Thursday, July 24

1406233800 Coding 101
1406237400 Home Theater Geeks
1406242800 Tech News 2Night
1406246400 OMGcraft

Friday, July 25

1406307600 Tech News Today
1406311200 This Week in Law
1406318400 Android App Arena
1406329200 Tech News 2Night

Saturday, July 26

1406397600 The Tech Guy

Sunday, July 27

1406484000 The Tech Guy
1406498400 This Week in Tech

Monday, July 28

1406566800 Tech News Today
1406570400 Triangulation
1406575800 iPad Today
1406588400 Tech News 2Night
1406590200 Marketing Mavericks

Tuesday, July 29

1406653200 Tech News Today
1406656800 MacBreak Weekly
1406664000 Security Now
1406671200 Before You Buy
1406674800 Tech News 2Night
1406678400 All About Android

Wednesday, July 30

1406734200 FLOSS Weekly
1406739600 Tech News Today
1406743200 Windows Weekly
1406750400 This Week in Google
1406761200 Tech News 2Night
1406763000 The Giz Wiz
1406768400 Ham Nation

Thursday, July 31

1406826000 Tech News Today
1406829600 Know How...
1406833200 The Social Hour
1406838600 Coding 101
1406842200 Home Theater Geeks
1406847600 Tech News 2Night
1406851200 OMGcraft

Friday, August 1

1406912400 Tech News Today
1406916000 This Week in Law
1406923200 Android App Arena
1406934000 Tech News 2Night

Saturday, August 2

1407002400 The Tech Guy

Most Recent Episodes

Tech News Today

Twitter released information about employee gender and ethnicity.

The Giz Wiz

Pond Wireless Charging demonstration.

This Week in Google

Unlock your smartphone with a tattoo!

Windows Weekly

What does 'One Windows' mean?

Tech News 2Night

Facebook's record mobile earnings.

iFive for the iPhone

Siri airplane tip, Group Photo Stream tricks, Lookout for lost iPhone.

FLOSS Weekly
Episode #302: Open Mirage July 23rd, 2014

Mirage OS is a library OS that works across a variety of cloud computing and mobile platforms.

Tech News Today

The good side of drones.

All About Android

Google's enterprise vision for Android.

Before You Buy

Jason Howell previews the OnePlus One smartphone.

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: