start	end	text
0	5700	Welcome to the wireless capture the flag gear talk. I'm Rick and this is Rick.
5700	6720	I'll be Rick today.
6720	11920	And we're just a couple of dicks who play with our hardware a lot. So we're going to talk about that.
12300	13480	You all get to watch.
16000	16880	Oh!
16920	19760	You can announce this time. I got to announce it last time.
19760	26940	So we decided that maybe if we've been doing this for 12 years, we should become like a company or something.
26940	31160	So we officially formed a non-profit. We are now the RF Hacker Sanctuary.
31700	32700	So it's exciting.
34600	40920	That means for the rest of the weekend, I expect all of you to arch your back as you walk in the door and scream sanctuary.
41460	45580	I would really make my day. So thank you all of you on Disney.
45900	48800	I'm not that old. Some of you saw this movie. No.
48800	54020	Okay. So yeah, we spent a whole lot of our time doing that and not a whole lot of our time on slides.
54020	55660	So that's going to be my excuse.
57600	60440	So this asshole over here is Zero Chaos.
60820	63580	You may know him from the famous distro Pentoo.
63920	69860	If you don't know him from the famous distro Pentoo, it's because it's really not that famous, but it is absolutely amazing.
70180	77380	And the basis of a lot of the work that we do, a lot of the work that we do for testing and a lot of the work we do for teaching, training, etc.
78020	84860	Most of the people that are doing well have either used Pentoo or are trying to use Pentoo over in the Capture the Flag.
85340	91120	Main reason is radios work all the time, almost all the time.
92460	96220	It works 100% of the time, at least 80% of the time.
96220	99780	Exactly. And the reason that's important is because we're talking about gear.
99780	106340	And we're talking about gear for Wireless Capture the Flag because that's the easy thing to say that's legal that everybody can do.
106340	110100	Who in here is a Wireless Pentester?
111180	114780	Who in here tests more than Bluetooth and Wi-Fi?
115460	116720	Who in here tests more than Wi-Fi?
116720	120040	Okay, keep going. Who in here tests Zigbee?
120800	123260	Who in here tests AMR?
124420	125620	ADS-B?
127180	128020	Okay.
128360	134840	The reason that we run Pentoo as opposed to some of these other distros, we're going to get a little deeper into it as we go.
134840	142460	And actually part of Zero's intro is he spends like all of the time he's not working for the company that pays him
142940	146300	working on this distro so that radios work all the time.
146300	151120	Who's had trouble loading a driver in anything but Windows or Mac?
151880	153860	Yeah, wireless drivers suck.
153860	157500	Who's tried to load the Realtek driver by themselves with the new AC card?
158040	159900	Any of you have a smile on your face right now?
159900	162120	Nope, just the people with their hands down laughing at you.
162120	163380	Yep, that's exactly right.
163380	169360	And those that got it working, who had the actual driver working with full injection and the ability to sniff
169360	173100	with 90% or better efficiency when you're getting your packets?
173640	178240	Okay, so some of what we are going to do today is talk about not just the gear,
178240	181140	because the gear's really cool and we have a lot of it.
181140	185040	I mean, what, eight to ten, fifteen radios at any one time in our bags
185040	189300	and I think the bag of antennas I carry weighs more than some of your backpacks.
189300	194480	But we use that because we like how these radios work in certain circumstances.
194880	199860	There aren't a lot of people that raised their hand that said that they're Wi-Fi pen testers
199860	201940	or Bluetooth pen testers.
201940	207760	One of the things we push people to do as best as we can is to start being RF pen testers.
207760	210600	Because there's a lot of other stuff, as we're going to discuss in this talk
210600	213320	and then kind of as we freeform a little bit,
213320	217140	there's a lot more signals out there that can make somebody very vulnerable.
217140	222700	So if you're a bad guy and you're attacking, red team, blue team, purple team, I don't care, yellow team,
222700	225860	if you're attacking a network, you need a vulnerability to get in.
225960	227360	Firewalls are pretty good.
227620	232600	How many people have had to beat an IPS before over WIPS, over wireless?
233180	235260	It's because there aren't that many that are any good.
235640	240700	So, that's the really way too long intro to Rick.
241460	242980	Yeah, sure, I'll be me now.
243260	243940	Oh, man.
243940	244920	Don't even read it.
244920	246820	Oh, can I read the whole thing?
246820	248020	It's word for word.
248020	249340	And watch everybody leave.
249360	250760	They're going to fall asleep.
251340	256720	But seriously, this guy has been doing wireless since wireless wasn't even cool
256720	259880	and he's part of the crew that has made it cool.
260360	262400	I'll never forget my introduction to him.
262500	265380	Yeah, I know what he looks like, but he really knows what he's doing.
265700	268420	And he really plays all of it, right?
268420	271520	So, he's been doing this since, what was it, DEF CON 10?
271520	272020	Yeah.
272020	276640	And competing in the wireless competitions and kind of helped found the wireless village
276640	279060	and did found the wireless cap for the flag.
279060	283060	So, yeah, he looks like he's been around the block because he has.
283060	286360	And, yeah, we should definitely go over some of that experience.
287060	291760	So, one of my favorite parts of all of RF and wireless is finding things.
292060	297000	So, we've really gone way out of our way and we apologize to the contestants.
297000	300700	In fact, I let them go home early last night, which was really weird of me
300700	303040	because I was like, hey, it's 11 o'clock, go home.
303600	310040	If you can't find a rogue device, you can't do RF anything.
310480	315220	If you don't know where it is and you can't get close enough to inject into it,
315220	319340	take down the packets that are coming from it or find the signal,
319340	321980	you're not close enough to do the work you're trying to do.
321980	324620	So, let's just say, you know, easy example.
324620	333020	There's a rogue access point in a 100,000 square foot floor in New York City on the 35th floor.
333040	333720	Go.
334760	339120	Who would feel relatively comfortable going and finding that access point?
340280	341460	Okay, what would you do?
342140	347120	I am going to call on people in the stand, so feel free to not raise your hand if you don't care.
347120	348120	What would you do?
351360	354700	Okay, so he said use a spectrum analyzer. Good answer.
354700	358080	Or a Wi-Fi radio and walk around and find it.
358640	365280	One of the things we try and teach as best as we can is a repeatable process for everything we do.
365420	370860	By having a repeatable process, I know what appears to be rogue versus what appears to be real
370860	373020	versus what appears to be broken.
373360	375380	And by knowing that, we have the ability to find things.
375380	378220	Because typically, if somebody is going to quick plant something,
378220	380260	they're going to use a Raspberry Pi, they're going to use a NUC,
380260	383000	they're going to use a rogue access point of some sort.
385160	388400	Hey Scoot, wave to everybody.
388880	391040	How did your implant go last night?
393980	398060	They attempted to put an implant in the village and they did a really good job of masking it
398060	402480	and had we not been truly looking for things, we wouldn't have found it.
402480	404800	He took the shell... Do you mind if I tell this story?
405300	409600	He took the shell of an Aruba device...
409600	411360	Ah, the Aruba devices aren't here.
411360	414300	You know those white Aruba access points that are all over the place?
414300	416500	Well, he took the shell of one of those, hollowed it out,
416500	418320	and put a Raspberry Pi inside.
418600	421280	He didn't encrypt it, but he put a Raspberry Pi inside
422240	425000	trying to capture more information.
425180	428540	Well, by doing that, he hit a device,
428540	430220	it was coming over RF,
430220	433160	and it was actually doing a really good job, but it was loud.
433160	435080	So Spectrum Analyzer, great answer.
435400	438460	The problem is, if somebody is only trying to attack an office
438460	440240	and they do it correctly,
440240	443720	your Spec-An is only going to find it if you get close enough to where that signal is.
443720	446040	So, working with people on how to make
446040	448120	really shitty antennas...
448120	450420	Hey Wasabi, do you have your shitty antenna anywhere?
451780	454260	Teaching people how to make really shitty antennas
454260	456160	so that when you're really close to a signal
456160	458140	you know you're right on top of it.
458140	460400	Oh, look at that. He happened to have it.
461380	462300	SMA connector
462300	464020	into a BNC connector
464020	466620	with a paper clip and hot glue.
467620	470320	It is also classified as a weapon at TSA,
470320	471360	so be careful.
471360	474140	Why is this work?
475000	475720	Somebody,
475720	476800	why does it work?
478640	479880	What? One more time?
481640	483360	Exactly. All it's doing
483360	485180	is taking the energy coming out of the radio
485180	487240	and dispersing it. It's not doing
487240	489340	jack and shit to help you
489340	491180	with a good signal. But what it's doing is
491180	493460	it's going to alert you when a signal is close.
493700	495320	Hence why we do the wireless capture
495320	497420	the flag and the CTF and we make people go
497420	499480	find stuff. But we don't just stop at
499480	501460	Wi-Fi, we move across the spectrum and that's
501460	503500	kind of how we're going to get into this a little bit.
503640	505660	I'm going to let you talk to this next one
505660	506820	because this is pretty.
508320	509120	Oh,
509780	511420	this is my favorite part
511420	513560	because he does most of the work.
514760	515160	So
516740	517540	we build
517540	519660	this thing that we have to carry around with us
519660	521460	so I want to say
521460	523260	half of my testing is literally
523660	525660	how do we cram all of this stuff together
525660	527220	in a very tight space?
527220	529380	So the box on the right is actually
529380	531520	the box that we're using to run the capture the flag
531520	533660	right now and it's all
533660	535400	of the transmissions more
535400	537280	or less replicated out.
537280	539520	So we've got 20 Wi-Fi radios in it
539520	541540	we've got 4 RF cats
541540	543120	and we've got 3
543120	545080	Blade RFs with amplifiers
545080	547520	and all of that stuff has to fit in there
547520	549040	and be powered in there
549040	551480	and why did we pick those things
551480	552980	and how did we get them to fit and
552980	555360	oh my goodness how did the NUC not fall
555360	557740	over with 50 USB devices
557740	558960	on it. So the
559460	561500	testing and the building of this stuff is really what
561500	563460	allows you to figure
563460	564840	out how all of this works
565540	567220	just making the kit on the left
567220	569800	the kit on the left is a
569800	571640	Kismet fully loaded box basically
571780	575060	that's actually a picture of us on the high roller on Tuesday
575060	576000	we took that while
576000	578340	up in the air over Vegas
578340	580640	collecting everything. Security did not
580640	581260	like us at all.
581260	583280	They let us on. They decided during the ride
583280	584380	that they didn't like us
584380	587380	The part of that picture that's cut out is me handcuffed
587380	588060	to that kit
589080	590960	which also we have a video going through
590960	593000	We have a 2 minute video of security checking it out
593000	595320	He never took off the handcuffs and they never said anything
595320	597380	about it and I almost peed
597380	599420	So inside of that box
599420	601580	we actually have 6 RTL
601580	603540	SDRs tuned to different frequencies
603540	604880	picking up ADS-B
605480	607260	car clickers, tires
607260	609480	driving by, all kinds of weird stuff
609480	611680	We've also got 3 Wi-Fi radios
611680	613740	2 Bluetooth radios, 2 Zigbee
613740	615820	1 2.4, 1 900
615820	617260	We've got
617880	619780	2 mouse jack dongles
619780	621040	and GPS
621620	623900	I think that's about it. But just building that
623900	626100	kit we found several bugs in Kismet
626100	627680	We found several bugs in RTL
627680	629840	433, we found several
629840	631100	bugs in the Linux kernel
631100	633480	that we've been spending time reporting
633480	635720	and trying to get fixed so that this
635720	637720	device which was a 4 core processor
637720	639600	running with a load of 12 when we started
639600	641960	actually got down to a load of about
641960	643660	3 when we were done and
644440	645660	functioned rather than all of the
645660	647160	devices falling off of the bus
647640	650060	and only one time did the power supply
650060	651820	crap itself and do
652020	653900	a wideband jamming attack before finally
653900	655100	failing. Driving
655680	657540	down the road and I called
657540	659000	Zero and I was like, hey dude
659540	661600	what could possibly be messing with our
661600	663300	GPS, the satellite radio
663300	665460	and our phones?
666220	667320	It's all passive
667320	669320	We got to where we were going and realized
669320	670480	that there was a 5 amp
671500	673560	power supply that literally was
673560	675540	shitting the bed all over the place
675540	677900	So we found a
677900	679600	absolute denial of service attack on a car
679600	681740	just take a really bad Chinese
681740	683700	5 amp 12 volt
683700	685720	power supply and just cut the wire
685720	687880	a little bit. Apparently
687880	689600	everything goes to hell and back
689600	691680	and he did gloss over that a lot
691680	694160	I know this is scheduled as a 2 hour
694160	695500	talk. It may or may not be 2 hours
696060	697660	We've got some
697660	699900	folks here to help us out with some of the other areas
699900	701680	that they are much, much, much smarter
701680	703680	than us in. But I will say
703680	705720	that we are going to go into each one
705720	707780	of those and we're going to talk through how
707780	709380	the testing of Kismet went
709380	711100	how the testing of Linux went
711100	713560	and the testing of USB buses. I know more about
713560	715440	USB buses than I ever wanted to know
716220	717740	and the fact that some of these
717740	719680	really crappy computers can do a really good
719680	721480	job. So that's kind of how this is going to work
721480	722780	We're going to talk to you guys about
723360	725140	what exists and what can be done
725140	727380	but also how we can test
727940	729020	because in some
729020	730200	places where you may go
730200	733100	some of you may not be native to a place where Amazon
733100	735080	can deliver in an hour and a half like I am
735080	737060	where you may only get this
737060	738800	radio and this radio and this radio
738800	741040	or you may be in another country where you can only have
741040	743020	these three things. Showing you
743020	745220	how to test them to get the absolute
745220	746800	most out of them is going to make you more
746800	748160	efficient as you're trying to do this work
749440	751140	And the other piece that I wanted to
751140	752280	really highlight on
753920	755540	The Red Team Alliance
755540	757160	has worked with us very closely
757160	758580	and the core group
759160	760800	Is Bhavik over there?
761300	762060	Bhavik?
762580	765340	Brett, stand up and represent your company
765340	767500	Brett, stand up and say hi
767500	768300	Thank you
768300	771300	That gentleman in the TSA security uniform
771300	773000	He's not TSA
773620	775160	Well, I mean, he could be
775160	777580	If I give you $5 will you pretend to be the TSA?
778300	779580	That box in the
779580	780860	bottom they've created for us
781340	783540	working in conjunction with us for the Capture the Flag
784360	785540	RFID is also an
785540	787460	extremely important piece of this
787460	789660	if you've ever done... so we talk wireless
789660	791660	Who's a physical pen tester?
792540	793580	Who's used an
793580	794760	under the door tool?
795140	797440	Who knows what a DDT is?
797920	800500	Who has a lockpick set on them right now?
801060	801860	There we go
801860	803440	Who's used those lockpicks
803440	805020	in the last three hours?
805760	806600	Okay, good
806600	809180	So, that kit is a
809180	810700	full on... oh, there it goes
812140	813660	Aw, it went away
813660	814560	And it's really pretty
814560	817240	Did they leave the screen grab here?
817240	818220	There we go
818220	820900	So, that box
820900	823380	at the bottom is literally
823380	825680	a building in a box
825680	827500	There are four different
827500	829780	types of access control
829780	832000	cards running into a single
832160	833460	controller with a pie in the
833460	834760	background taking in all the information
834760	835900	and handing out flags
835900	837920	If you haven't seen it yet
837920	840300	the thing over there on the end of the table
840300	841940	that makes you look like the devil
841940	844800	is one of the coolest access control
845660	846740	capture the flag
846740	848720	style devices that I think
848720	849640	has ever been built
849640	852360	And I know Babik's not here
852360	854300	but one of his representatives is
854300	856020	Can you raise your hand there?
856020	857280	He already waved
857280	859940	I know, but I'm making Deep wave too because he's standing there
859940	862640	in his Raman's shirt, which I absolutely love
863920	865060	They do some
865060	866480	amazing RFID work
866480	868380	and they've helped us tremendously
868380	870180	to really take this up to another level
870680	872840	and I just want to thank them for partnering
872840	874980	with us, but from a learning perspective
874980	876660	having the ability to have
876660	878600	that many readers in one place
878600	881080	is something that we're going to adopt into our CTF
881080	882640	and that type of thing is going to start
882640	884420	traveling with us thanks to them
884420	886700	and we're going to just keep saying thank you to them
886700	888400	for a while as it goes
888400	890300	We love you too!
891080	892300	So those
892300	894180	are the three pieces. So from this
894180	895900	set of devices
895900	898240	we've literally hit from
898940	900680	3... 16?
901740	902380	315
902380	904000	to 6 gig
904000	906460	and all of the low frequency
906460	908080	and high frequency cards that exist
908080	910360	in three Pelican cases that we can travel
910360	912200	just about anywhere with. Now I wouldn't
912200	914100	expect anybody else to do that insanity
914100	916060	because that's about a year's worth of work
916060	918600	but the testing methodology
918600	920880	That's good. You could travel with a Kismet box for years
920880	922340	That's true. The
922760	924620	technology and the testing that goes into that is really
924620	926440	what we want to impart on you
926440	928000	So, moving on
928820	930000	This is a PSA
930640	932680	Please stay out of the casinos with any radios
932680	934500	that you may have. They do put you in jail
934500	936500	The jail is underneath of this building. It's very
936500	938440	big and you're not getting out without
938440	939280	any bruises
941100	942600	And, by the way, if you came into
942600	944480	this room, who has an Apple phone?
944480	945760	Don't raise your hand if you don't want to
945760	947620	If you have your Bluetooth
947620	949880	on, this isn't a
949880	952680	burner phone discussion. This isn't a
952680	954800	Apple versus Android discussion
954800	955920	Please turn your Bluetooth
956420	958180	off. You are
958180	960160	ridiculously vulnerable to a whole lot of
960160	962000	things. I'm an Apple user
962000	964700	when it comes to phones. I have a watch
964700	965820	It is in watch mode
965820	967940	You know what it's doing? It's being a watch
968740	969860	Cool?
969860	971980	But my phone has Bluetooth off. The reason
971980	973800	behind that is Apple has not fixed the vulnerability
973800	975340	that has come out with Apple
975340	975800	BLE
979160	980080	We'll have
980080	981820	hopefully a demo of that tomorrow
981820	983740	and start talking to people
983740	985700	about their phones. But essentially
985700	987820	from your Bluetooth, your phone
987820	989980	number, the power of your phone
989980	991160	the Wi-Fi
991160	992980	What else?
993360	995880	If the screen is on, if the screen is
995880	997620	locked, phone number
998940	999920	All can be
999920	1000780	pulled off Bluetooth
1000780	1001540	SSID
1003860	1004700	So very
1004700	1006780	discreetly, no embarrassment here
1006780	1008860	just turn your Bluetooth off if you have an Apple device
1008860	1010400	and that's an iPad, iPhone
1011260	1011680	iPod
1013340	1014380	Enema, I don't know
1014380	1016940	But Apple leaves those on for watches
1016940	1018340	for pencils, for
1018340	1020240	connectivity to all kinds of things
1020240	1022720	Just turn it off, please. Because all
1022720	1024640	your RF does belong to us and we've been
1024640	1026660	capturing since we got here. We're going to review
1026660	1028720	all that when we get home. We're going to look at it and we're going to say
1028720	1030400	Huh, this dude had his
1030400	1032720	Bluetooth on and this lady had
1032720	1034700	this on and moving on
1034700	1035480	Yeah
1035480	1039380	You read that. Yay!
1039460	1040600	Okay, so
1040600	1042860	how do we test radios?
1042860	1044680	This is actually a really
1044680	1046200	really wild thing
1046980	1048740	First we buy lots and lots of
1048740	1050820	radios. Then we buy lots and lots
1050820	1052760	of USB hubs. Mostly
1052760	1054760	USB because it's so much easier
1054760	1056260	than taking apart laptops
1056980	1058420	Maybe 10 years ago
1058420	1060500	companies started introducing BIOS
1061120	1062400	lockouts to stop you from
1062400	1064140	putting in Wi-Fi cards that
1064140	1066460	they didn't sell. And that
1066460	1068460	sucks because you had to go and
1068460	1070460	customize your BIOS and do those kinds of things
1070460	1072320	and at that point the community pretty much said
1072320	1074420	F all this, we're just going to use USB
1074420	1075640	stuff. So
1076340	1078320	we just started doing USB stuff
1078320	1080480	and it's not a big deal when you put 8 radios
1080480	1082260	in a box and try to play with them
1082260	1084360	It is a pretty big deal when you put 30
1084360	1086220	in. So if you go back
1086220	1088240	and talk to our good friend Alex who makes
1088540	1090220	a whole bunch of crazy radio stuff that's really
1090220	1092520	awesome. Hey Alex, stand up and raise your hand
1092520	1093860	and put that thing down
1093860	1096240	Yeah, stop waving that around. The casino
1096240	1097840	is going to stop you. Alex
1098400	1100420	Alex, raise your hand. Wave high
1100420	1101340	Stand up
1102300	1104100	and hold up one of your big
1104100	1106300	put that down please. Put that
1106300	1108260	down. Don't point that at me. Put that down
1108260	1109880	Please put that down
1109880	1112360	Pick up the other thing with all the radios
1112360	1112740	on it
1114000	1116020	So Alex makes these devices
1116020	1118500	No, those are antennas Alex, radios
1118500	1120020	That's PCI radios
1120020	1121460	USB 1.2
1122400	1124520	He actually discovered, he was the first
1124520	1125760	one of us to figure out that
1126270	1128540	the new Intel USB 3 chips
1128540	1130360	could only handle 11 Wi-Fi
1130360	1132340	cards at a time and the 12th one
1132340	1134420	didn't work. We figured
1134420	1136100	that out just after him when we plugged
1136100	1138340	12 Wi-Fi cards into our NUC and
1138340	1140420	it didn't work. The part where
1140420	1142240	we actually figured it out first is that
1142240	1144160	we bought a newer NUC and the
1144160	1146180	newer USB controller could handle more
1146180	1148160	So my current record is
1148160	1150100	31. I've got 31
1150100	1152300	connected to my test box at home which
1152880	1154340	I'm actually out of
1154340	1156220	outlets and spaces to put things in the little
1156220	1158180	corner where I do my testing. So I have to
1158180	1160280	buy a table or something to keep
1160280	1162300	going. So you find the
1162300	1164280	weirdest things when you test this stuff
1164280	1166380	The things that you never expected
1166380	1168500	to find be the problem are the problem
1168500	1170640	So the Realtek
1170640	1172640	driver was released last year
1172640	1174660	about this time. New
1174660	1176580	802.11ac monitor mode
1176580	1178560	proper injection. Theoretically
1178560	1180460	the driver crashed horrifically
1180460	1182340	and so we started testing
1182340	1184520	So I went on to Amazon and I bought every
1184520	1186480	single Wi-Fi card that had the Realtek chip
1186480	1187720	set to see which one was any good
1189020	1190360	Lots of money later
1190360	1192600	I plugged them all into my system and realized it didn't
1192600	1194420	work and then I plugged it into multiple
1194420	1196580	systems and started spreading out load because
1196580	1198640	stupid limitations and then we bought
1198640	1200220	Nux and fixed that problem
1200220	1202800	But the point is you find really weird issues
1202800	1204160	when you go to test these things
1204160	1206760	At the time I was testing with a tool called
1206760	1208840	Kismet Shootout and what Kismet Shootout
1208840	1209780	does is it actually
1210620	1212580	you give Kismet all of the Wi-Fi
1212580	1214660	cards and you say put them all
1214660	1216600	on channel 1 or channel 2
1216600	1218640	or channel 6 or whatever and
1218640	1220460	then it counts how many packets
1220460	1222380	are seen. That's all it does
1222380	1224360	it counts how many packets each device
1224360	1226280	sees and that allows me to say
1226280	1227880	if this device sees
1227880	1230420	this many packets but this device only sees
1230420	1232660	86% of those packets
1232660	1234360	thereby this one's better
1234360	1236060	So I connect a whole bunch of
1236860	1238420	Wi-Fi cards to the system
1238420	1240500	once, I put them on different channels
1240500	1242360	and I meter them against each other to see
1242360	1243960	who picks up the most packets
1244700	1246540	Once I get a fairly good
1246540	1247340	cream
1248520	1250440	these 10 are pretty decent
1250440	1252380	I go through and I do injection
1252380	1254420	testing. Go through with Aircrack and I say
1254420	1256560	ok does this one work, does this one work, does this one
1256560	1258360	work. And it's actually really interesting
1258360	1260300	to find out that the minor differences
1260300	1262440	in the chipsets often make one suck
1262440	1264400	and one work great or even
1264400	1266460	worse like some of them receive really well and they
1266460	1267580	can't transmit for crap
1268100	1270340	they'll go 3 feet but they just don't have a good
1270340	1272360	radio chain on the TX side and they
1272360	1274320	don't go very far at all. So
1274320	1276460	the ones that we're using in our kit are
1276460	1278120	actually TP-Link T2Us
1278120	1280340	and they totally go
1280580	1282240	a solid 35 feet
1282240	1283940	I mean just absolutely
1285000	1286440	garbage on the transmit
1286440	1288320	and pretty much on the receive side
1288320	1290280	but all we do is we put them
1290280	1292320	right next to each other and we have this little
1292320	1294400	area for capture the flag and that's
1294400	1296340	as far as they need to go and they're the
1296340	1298120	tiniest thing on earth. Yeah, every
1298120	1300380	time we do testing, Rick's like, did you
1300380	1302600	get it within like 16 feet?
1302600	1304380	I was like, well, yeah. He's like, good enough
1304380	1306340	Alright, we're moving on. Yeah, so
1306340	1308240	the ones we actually like are actually the
1308240	1310240	Alpha 036 ACMs
1310240	1312360	They're a monster card. They have two
1312360	1314380	antenna connectors to mount the side. They have
1314380	1316480	these giant eye surrender antennas
1316480	1318140	on top of them and they're
1318140	1320180	much longer range, they're much better
1320180	1322260	transmit power, but they're enormous and we
1322260	1324260	didn't want that kind of thing in our kit. So we actually
1324260	1326320	go through and do testing to see that kind of level
1326320	1328400	like, okay, this is good enough
1328400	1330180	for what we are doing, but
1330180	1332120	these are the ones that we recommend for like
1332120	1334440	putting in your kit and going out and doing whatever.
1334460	1336080	So one of the big things that
1336080	1338140	Rick said
1338140	1340140	but probably didn't hit on, so I'm
1340140	1342200	doing the whole, this might be on the test later
1342920	1344220	is you've got to
1344220	1346360	log everything. If you're not
1346360	1348280	logging, you're not getting errors
1348280	1349980	you're not getting packet captures
1349980	1351940	you're not getting data, you're not getting
1351940	1353680	transmissions. You're not getting anything
1353680	1356020	if you just plug a radio in and say, oh,
1356020	1358420	this one works, this one doesn't. You need
1358420	1360280	empirical data to be able to go back
1360280	1362100	to. Now, it doesn't mean you've got
1362100	1364320	the best of the best or the worst of the worst
1364320	1366400	it means that you have your own
1366400	1367540	level of
1369480	1370280	subjective quantity
1370780	1372460	identification that says, this is one
1372460	1374980	this is two, this is three, this is seven.
1375600	1376500	At that point
1376500	1378380	you know that what you have is
1378380	1380360	the best that you have when you're going
1380360	1382700	out to do whatever it is you're trying to do.
1382720	1384400	And that could be literally going to the
1384400	1386320	beach and wanting to have your laptop connect to the
1386320	1388340	Wi-Fi or getting on a boat and having
1388340	1390560	your Wi-Fi connect to the dock
1390560	1392740	or you're doing a full-on
1392740	1394700	you know, red team where you
1394700	1396740	need radios involved and you need to be able to get
1396740	1398600	them from the parking lot. And so
1398600	1400740	I know this radio is great, it's
1400740	1402680	got SMA connectors, so I can hit
1402680	1404620	you know, I can use my panel antenna
1404620	1406540	and I can hit 150
1406540	1409140	yards solid with injection.
1409140	1410680	But until you've tested and you've
1410680	1412780	gotten the unempirical data, you really can't say
1412780	1414560	that. What we find the most
1414560	1416020	and we tell people in the CTF
1416680	1418620	because we want them to take this back into their
1418620	1420600	real world, if you
1420600	1422360	don't test your stuff
1422360	1424780	you don't know what it does.
1425220	1426820	How many of you have ever
1426820	1429260	played in any type of CTF?
1431800	1432460	A few people
1432460	1433680	over there could raise their hand.
1433680	1436200	Did you spend a week beforehand testing
1436200	1438100	your equipment to know exactly how
1438100	1439420	it's supposed to react?
1439760	1442020	Nobody ever does. Because every
1442020	1443900	time we get there, they're like, oh, my kernel's
1443900	1445880	broken. Oh, I have to update. Do you have
1445880	1447880	internet so I can update? I didn't check
1447880	1450140	this driver. Which kernel is this?
1450600	1452180	Tools like Kismet and some
1452180	1454200	of the others that are very helpful in data collection
1455080	1456180	literally update, what,
1456180	1458120	every six hours? I mean, at
1458120	1459240	the long side.
1459920	1461540	Jaguar doesn't even sleep, I don't think.
1462740	1464140	They're updating the
1464140	1466000	software that you're relying on
1466000	1467500	to do what you're trying to do
1468120	1470000	hourly. Some of you
1470000	1471940	may or may not have tested your stuff
1471940	1472960	yearly.
1474180	1476420	Do you guys go to more than one con a year?
1478340	1478820	How
1478820	1480640	often do you test your stuff
1480640	1482820	to know how it's supposed to react?
1482820	1484300	To know what the baseline is, so when
1484300	1486640	something's different, you know it changed.
1486640	1487860	Every day, Rick.
1488260	1490340	But we're idiots.
1490340	1491400	Every single day.
1491760	1494640	The Kismet shootout's running at my house right now.
1494720	1496220	It's a long-term test.
1496220	1498180	Again, we've got ends of the spectrum.
1498180	1500000	We're all on the spectrum, we're here.
1500000	1501800	But we've got ends of the spectrum.
1502080	1504120	We've got the I test shit,
1504120	1506120	and, oh my god, I'm going
1506120	1508520	out tomorrow. Let me get a laptop at Fry's,
1508520	1510000	throw a new hard drive in it, and throw a live
1510000	1511100	distro on it.
1511940	1514400	Part of this, and again, hey, good segue,
1514400	1516080	by accident, platform
1516080	1518300	selection. You're going
1518300	1520520	to work, or you're going to CTF,
1520520	1522360	and you guys decide which scenario
1522360	1524280	you want to sit in. You need
1524280	1526240	something to type on. I don't know how many
1526240	1528420	people we've had come into the CTF and be like,
1528420	1530500	hey, I want to play. What do I need?
1530860	1532580	Well, you need a radio, and a laptop,
1532580	1533800	and a home.
1533800	1536080	I didn't bring a laptop.
1536540	1538300	Well, what do you want to do?
1538340	1539440	Well, I want to learn.
1540180	1541460	Why didn't you bring a laptop?
1542460	1543960	I'm going to do this. I'm going to do it.
1543960	1545680	I'm going to hold a paper clip in my teeth.
1545680	1548020	I'm going to stand up on my soapbox for a second.
1549800	1550480	Who read
1550480	1552420	all the stuff coming out on Twitter about
1552420	1554060	the burner phones for DEF CON?
1555560	1556500	Who read all the
1556500	1558700	stuff about, turn off all your radios,
1558700	1560580	turn off your Wi-Fi, turn off your Bluetooth,
1560580	1562640	hide your kids, hide your wife, they're coming
1562640	1564800	to get you, right? Okay.
1565700	1566340	Who's been to
1566340	1568940	Starbucks, Dunkin Donuts, or a
1568940	1572200	Panera in the last six months?
1572680	1573420	Okay.
1573420	1575000	Who did all this worry before
1575000	1576840	they went to Starbucks, Panera, or
1576840	1579220	Dunkin Donuts?
1579220	1581560	Right? Right. And you should.
1581560	1583280	Who was at work
1583280	1584720	last week, or the week before, because
1584720	1587280	it's summertime, and was worried
1587280	1587800	about this?
1588380	1589180	Huh?
1590280	1591960	You're a developer, huh?
1591960	1593500	He turns off his phone before...
1593500	1595380	You're either a writer or a developer.
1597440	1598360	Okay.
1598480	1599680	So, where
1599680	1601880	your protection posture is for your
1601880	1604120	device when you take it anywhere
1604120	1605900	should not matter if you're
1605900	1607920	coming to DEF CON, which, by the way,
1607920	1609880	in the last way too many years,
1609880	1612400	geez whiz, 17 years,
1612400	1614200	it's gotten a lot easier.
1614200	1615740	You used to not be able to come to DEF CON
1615740	1617540	with something that had a device that you
1617540	1619340	connected to anything else with.
1619360	1621700	Now, you could have a Windows XP
1621700	1623640	box online
1623640	1625800	at DEF CON right now, and you might make
1625800	1626860	it home fine.
1627320	1629740	It's different. But everybody worries
1629740	1631640	about it. They worry about... The Vegas worries
1631640	1634360	about it. They worry about Black Hat. They worry about DEF CON.
1634440	1635420	Well, I
1635420	1637760	promise you that you have more issues
1637760	1639780	if you're working in, and I'm just going
1639780	1641760	to name three cities randomly, L.A.,
1641760	1643340	New York, and Baltimore, and D.C.
1643340	1645360	That's four. You have more
1645360	1647140	to worry about going into a Starbucks
1647140	1649320	or a Panera and connecting to their
1649320	1651440	Wi-Fi than you do coming to DEF
1651440	1653560	CON. How often
1653560	1655320	are you stressed out about going to
1655320	1657040	Panera or Starbucks
1657040	1659740	or the train station or wherever?
1660400	1661380	Just let that
1661380	1663480	settle in for a second. This is
1663480	1665380	why testing and knowing what your stuff
1665380	1666820	does matters.
1667140	1669380	Have you seen the bars at night? The good hackers are
1669380	1671680	all way too drunk to be hacking you right now.
1671680	1674020	I'm stepping on my soapbox.
1674020	1675660	We're going to talk about platform selection
1675660	1677900	because there are some platforms to select
1677900	1680000	from. Rick,
1680000	1680540	do you know...
1683520	1684300	We're a little
1684300	1685820	biased here. The dude
1685820	1687820	that creates one of those operating systems
1687820	1689880	is here, and this is Bill
1689880	1690360	Gates.
1690740	1693960	Actually, I'd like to talk
1693960	1696260	to you about developers, developers, developers,
1696260	1697560	developers, developers,
1697560	1698820	developers.
1699540	1701160	You got it.
1701160	1702260	There we go.
1702740	1704600	I like this.
1704980	1707040	You're perfect for the front row.
1707040	1708760	He hasn't heard these jokes before.
1709100	1710860	They're funny for us.
1711020	1712900	Windows is an operating system.
1712900	1714060	Do we all agree?
1714880	1716000	Yeah.
1716380	1718760	How many have to use Windows?
1719920	1720740	Okay.
1721160	1722780	It's either because Office
1722780	1724800	365 sucks,
1724800	1726680	or because Open Office doesn't quite
1726680	1728640	work well, or because you were
1728640	1731040	given a laptop at work to use Windows.
1731500	1732640	There are tools that
1732640	1734700	Windows works with. I can
1734700	1737000	name five or six off the top of my head.
1737000	1738660	There's Spike. There's
1739440	1740480	Insider.
1740600	1742560	There's Metageek's
1742560	1744620	entire suite of stuff.
1745680	1746640	There's a
1746640	1750200	snipping program. I can't remember what it's called anymore.
1750200	1750940	WinPCAP?
1750940	1752900	WinPCAP, yeah, but you have to have the right driver
1752900	1753660	and the right radio.
1753660	1755520	And I think I just mentioned
1755520	1758000	$65,000 worth of equipment.
1758900	1759220	So,
1759220	1761560	you have to pay for Windows
1761560	1763760	stuff, but it's not bad. It's gooey.
1763760	1764440	It's pretty.
1764440	1767440	I can give this to a CXO and say,
1767440	1770140	hey, here's your stuff. Here's your heat maps.
1770500	1771700	But for doing this
1771700	1773960	type of stuff we do, it's not ideal.
1773960	1775600	And it's not ideal because I
1775600	1777580	can't manipulate the way that I'm
1777580	1779660	going to affect the physics of
1779660	1780540	the RF.
1781760	1782680	Virtual machines
1782680	1784240	are cool. Who uses them?
1785120	1786440	Ever tried to do
1786440	1787980	RF over a VM
1788900	1790340	with EIEIO?
1790980	1791740	Okay.
1792480	1794660	80% of you can say yes and it worked fine
1794660	1796700	and the other 20% can say, oh my god,
1796700	1798520	why doesn't it work? And the answer is,
1798520	1800180	you will never know.
1800680	1802340	VMs are fabulous until
1802340	1804400	they don't work and then there's
1804400	1806360	nothing you can do about it.
1806840	1808120	So, yes.
1808120	1809940	There is an operating
1809940	1812100	system missing from this screen.
1812100	1813240	Which is it?
1815580	1816640	Crapple.
1816640	1818200	Okay. Steve died.
1818200	1819460	Moment of silence.
1820120	1822280	Moving on. So, he died
1822280	1824280	and the entire vision of Apple changed
1824280	1826300	when it came to usability of their
1826300	1827620	operating systems.
1827780	1830200	5, 6, 12 years ago,
1830200	1831840	God, Kahuna and I,
1831840	1834180	we gave a talk and we gave a talk on
1834180	1836020	wireless. We gave a talk on wireless
1836020	1837840	using VMs using Apple.
1837840	1839420	Because Apple at that time
1839880	1842240	actually had kernel-ish
1842240	1844300	type stuff. Rick still hated it.
1844300	1846400	But it had kernel-ish
1846400	1847920	type stuff. It had the
1847920	1849820	ability to write to the HAL more
1849820	1851800	appropriately. It had the ability to run
1851800	1853960	3 or 4 VMs. It had the ability to
1853960	1855460	pass that data through.
1856200	1858100	Well, things have changed. It doesn't
1858100	1860000	anymore. In fact, there are articles
1860000	1862140	out there about USB 2 to USB 3
1862140	1863780	conversion on Apple
1863780	1865720	and contention on
1865720	1867480	the USB bus because
1867480	1869860	of the screen and the way the WiFi works
1869860	1871400	to make Apple almost
1871400	1873740	unusable. So, in the last 2
1873740	1875660	or 3 years, in this type of talk we've
1875660	1878040	given, we've taken Apple off the list.
1878040	1879600	It is a viable operating system
1879600	1881600	if you have to use Office. It is a viable
1881600	1882820	operating system for
1883680	1885480	Adobe or development or
1885480	1887540	music or I'm sure, you know, there are
1887540	1889880	tons of people that have real good uses for it.
1889880	1892140	In this space, it's not ideal.
1892140	1894140	The cost of an Apple outweighs
1894700	1896260	the absolute horror
1896260	1898140	that you have to go through to make it work.
1898360	1900100	So, we move on to Raspberry Pi. I'm going to
1900100	1901840	skip over the middle one. Yes.
1902940	1903580	Yeah.
1903820	1909800	Right. So,
1909800	1911260	the question is like doing
1911740	1913760	separate boots on it. So, it's not
1913760	1915600	the hardware on Mac that's necessarily
1915600	1917720	the problem, although they tend to implement
1917720	1919580	the standard their own special way.
1919580	1921780	We're talking about the operating system itself.
1921780	1923600	So, we're skipping over Pentium
1923600	1925420	in the middle, but the point is any
1925420	1927660	hardware that you can live boot into Linux,
1927660	1929500	the answer is do that, right?
1929560	1931500	Even if you don't want to reinstall
1931500	1933540	your operating system and kill your Windows box
1933540	1935520	or kill your Mac box, if you can boot
1935520	1937520	into Linux, you can do all this
1937520	1939580	stuff with direct access to the hardware. And if
1939580	1941660	you're super spooked about that, just yank the hard
1941660	1943500	drive before you do it. Probably not with
1943620	1945640	a magnetic screwdriver, but you get my point.
1946160	1947800	Easily enough, just not
1947800	1949480	format your hard drive if you don't want
1949480	1951440	to do that. And you can do all of these
1951440	1953320	things and save to a USB stick and it's
1953320	1955500	no big deal. But the ease
1955500	1957580	of use with Linux, aside
1957580	1959440	from trying to actually use
1959440	1961320	Linux, the tools are there
1961320	1963360	and the tools roughly work as well as open source
1963360	1965400	ever works, and the support's there as much
1965400	1967280	as open source ever has support. But
1967280	1969500	to get these things, the
1969500	1971340	only way you're going to do it is with
1971340	1974000	Linux or with millions of dollars.
1974000	1975560	You can buy a $10,000
1975560	1977440	to $15,000 Bluetooth snipper
1977440	1979940	or you can buy an Uber Tooth One.
1979940	1981980	And they both do exactly the same thing.
1981980	1983820	One works in Windows and the other
1983820	1986000	pretty much doesn't work in Windows.
1986000	1987900	But you can choose. Do I want to run Linux
1987900	1990380	or do I have $10,000 extra dollars laying around?
1990600	1991940	And if the answer is the second one,
1991940	1993260	could you please be a sponsor?
1994860	1996060	Did I mention we're a
1996060	1998140	non-profit now? So
1998140	1999960	Raspberry Pi is on there.
1999960	2002120	Raspberry Pi is on there because Raspberry
2002120	2004440	Pi runs Linux. It'll run
2004440	2006060	Gentoo. It'll run Debian.
2006060	2007920	It'll run Raspbian. It'll run a whole
2007920	2010100	lot of operating systems. It'll run Kali.
2010100	2011960	It'll run Kali. It'll run NetHunter.
2011960	2013920	Kali? No, no. Kali, Kali.
2013920	2016040	With all the Nexmod patches
2016040	2017460	and everything included.
2017460	2020160	We haven't gotten there yet, but Windows runs Kali too.
2021120	2021900	Yeah.
2021920	2023660	Kali's an operating system.
2023660	2025660	Alright, so Raspberry Pi. So
2025660	2028280	as a dropper, as a
2028280	2030220	leave behind, as a pass
2030220	2033300	through, as a bridge,
2033300	2034220	Raspberry Pi's do
2034220	2036080	a great job because if you lose it,
2036080	2037580	you lost $35.
2037580	2039900	I don't care what your budget is.
2039900	2041880	People care about the bottom line.
2042120	2044060	Now, there's a team
2044060	2045660	that will be made, you know,
2045660	2048260	not named right now because Scoot left,
2048260	2050760	that left a Raspberry Pi on site.
2050920	2052140	They left it on site
2052140	2054060	unencrypted. So whoever found
2054060	2055760	it was able to pull all their data off
2055760	2058260	and look at it and review what they were doing.
2058400	2059660	Adversary, Red Team,
2059660	2061600	Pentester, whatever have you.
2061800	2063740	We're able to pull everything
2063740	2065800	you did off that information.
2065800	2068220	You guys can sit down. There are seats. We don't bite.
2068260	2069720	I promise. Lots of them
2069720	2071820	up front. We both showered this morning.
2071820	2073900	We did. Separately. We did. Separately.
2073900	2075740	Well, sort of. Wasabi
2075740	2077740	did walk in on me. Yeah, Wasabi kind of was in the middle, but
2078600	2079960	that's a different story.
2080300	2081940	So the fact
2081940	2083780	that we have the ability to take
2084180	2085720	a $35, okay, we've got
2085720	2087840	what, Pi 4's now, they're $50.
2088000	2089400	But that's
2089400	2091700	an nth of a percentage of the
2091700	2093680	cost of a lot of these engagements.
2093900	2095460	Raspberry Pi W,
2095460	2097700	what are they, $10, $12 now?
2098120	2099560	You have the ability to do
2099720	2101540	a lot of the things we're going to talk about, and we're going
2101540	2103180	to back them 100%.
2103720	2105780	But it's a tool,
2105780	2107860	not your main device.
2107860	2109640	If you need a laptop to do work,
2109640	2111360	use a laptop or a computer.
2111420	2113460	Don't use a leave behind or a dropper
2113460	2115820	to do the work that a laptop should do.
2115960	2117520	We're going to talk a little bit about that.
2117520	2119700	Rick was talking about workloads a little bit
2119700	2121860	ago. As a single source server
2121860	2123500	that you're leaving in as an RF
2123500	2125700	forwarder, Bluetooth,
2125700	2127640	Wi-Fi, whatever have you,
2127640	2129660	they work great. They're
2129660	2131560	not going to be your primary
2131560	2133840	OS or your primary device.
2133840	2135620	Yeah, again, going back to the, if you didn't
2135620	2137840	test it first, it doesn't work.
2138500	2139080	We've got
2139560	2141840	only like 18 things
2141840	2143720	plugged into the Kismet box, and that
2143720	2145820	compute stick is chugging
2145820	2147560	real, real hard.
2147560	2149480	That's based on a design from
2149480	2151980	much earlier where I built a
2151980	2153980	7 radio rig, and I built
2153980	2156040	a little clipboard with two
2156040	2157780	lithium ion batteries that did not look like a
2157780	2160400	bomb at all, and we snuck onto
2160400	2162060	a trolley and sniffed a bunch of
2162060	2164740	sea level traffic and then got interviewed about it.
2164740	2166360	But that one ran for a
2166360	2168820	total of five minutes before the RAM
2168820	2170860	completely filled up and the
2170860	2172640	box decided to crash
2172640	2174660	because it couldn't write to the disk
2174660	2175700	fast enough to put the captures on.
2175700	2177960	Ran all the radios great. No problems
2177960	2179880	there. Captured lots and lots of data.
2179880	2181920	Really fast. Battery,
2183060	2184240	hours of battery
2184240	2185800	life. I charged my phone off the battery
2185800	2187540	after we were done. Yeah, it was amazing.
2187680	2189700	But yeah, five minutes. Five minutes of
2189700	2191660	capture time, and then the RAM was full.
2192040	2193940	Bigger RAM would not have helped me there.
2193940	2195780	Sometimes you just, you run into
2195780	2197800	these weird problems, and it's really important
2197800	2199720	to test these things because the
2199720	2201720	thing you don't expect to break is always
2201720	2203700	what breaks. All of our challenges
2203700	2205700	pretty much are running, and our status page
2205700	2207740	is broken. So people keep coming over to us
2207740	2210080	saying, the challenge isn't running. How do you know?
2210140	2211700	Scoreboard says it's not running.
2211700	2214040	Like, well, did you look in the air?
2214040	2215600	All of them are up.
2215620	2217740	Oh. Yeah, so it's
2217740	2219540	always the thing that you wish was simple
2219540	2221580	that breaks, and the complex stuff is what works
2221580	2223720	fine. Hey Blunderbuss, you're still in
2223720	2225780	third. Sorry.
2225960	2227000	Just had to.
2228120	2229000	So,
2229560	2232120	we're doing this in a weird order on purpose.
2233100	2234280	We talk,
2234280	2236240	if you've ever heard us, who's ever listened
2236240	2237960	to us travel on, ever?
2237960	2240060	Anyone? Okay. Wow.
2240120	2241860	This counts now.
2243240	2244360	So,
2244360	2246300	Kali is a great operating
2246300	2248160	system. Kali has
2248160	2250480	an absolute place in the world.
2252640	2254820	Kali has a place in the world.
2255100	2256080	But every
2256080	2258100	operating system and every device that those
2258100	2260520	operating systems are on are tools.
2262240	2262760	I
2262760	2264480	am really, really, really
2264480	2267040	bad with physical tools.
2267040	2269020	My father-in-law can build a
2269020	2271420	mansion with, like, Home Depot.
2271420	2272760	If I go to Home Depot and buy a
2272760	2274540	hammer, I've got three broken thumbs,
2274540	2276720	yes, three, and the nail
2276720	2279020	never went in. But it's the same
2279020	2281620	tool used by a different person.
2281620	2282700	People that are
2282700	2285660	really good at wired pen testing,
2285660	2287280	reverse engineering,
2287280	2288720	database exploitation,
2288720	2290500	web exploitation,
2290500	2292560	general networking stuff, or
2292560	2294760	anything that,
2294760	2297060	God love him, Dave Kennedy has written,
2297060	2298660	or his team has written,
2299820	2300420	works
2301080	2302800	amazingly in Kali.
2302800	2304680	So if that's your gig, and that's what you're
2304680	2307220	doing, Kali is a great operating system.
2308240	2308780	Try
2308780	2310600	and do wireless work
2310600	2312640	and be really effective
2312640	2314120	using Kali.
2314680	2316780	The difference between, and again, we're going
2316780	2318760	back to logs, empirical data,
2318760	2321120	the difference and the loss
2321120	2322580	in packets with Kali to
2322580	2325080	Pentoo are enormous.
2325340	2326940	So many, many times
2326940	2328920	we will disparage Kali. We have built
2328920	2330880	stickers and written stickers that say
2330880	2333080	hey, ha ha ha, you used Kali,
2333080	2334320	ha, you suck.
2335460	2336480	But because
2336480	2338940	they're doing the capture the flag, and we
2339680	2341020	absolutely, 100%
2341020	2342680	of the time, denote
2342680	2344920	that on the sticker or the discussion
2344920	2346960	that we're having. If you're doing wireless work,
2346960	2349000	these are going to be your problems.
2349760	2350840	We could have a flame war
2350840	2352600	in Linux on Debian
2352600	2354780	versus Slack versus Gen2
2354780	2355460	versus
2356840	2358840	BSD. Immediately following this talk,
2358840	2360840	we can meet over there. Yeah, we can meet over there. We'll have
2360840	2362800	an absolute flame war. But
2362800	2364820	until you can tell me in this
2364820	2367440	instance, using this device,
2367440	2369300	using this type of test,
2369300	2371440	I hate this operating system,
2371440	2372820	I still am going to call bullshit
2372820	2374880	on you. Because until you've done that,
2374880	2377500	Windows is the right tool for certain things.
2377800	2378840	Mac is the
2378840	2380860	right tool for certain things. Alright, you've gone too
2380860	2383180	far. Don't we have another slide? Nope.
2383580	2385180	I'm pretty sure we do. Nope.
2385180	2386900	This is it. This is the last slide.
2387560	2388680	Please. So,
2388680	2390560	I want you to talk about
2390560	2392200	Pen2. So...
2392880	2395360	Yeah, go ahead. I like Pen2.
2395860	2397380	It's a lot of fun.
2397960	2398980	So, the truth is,
2399500	2401200	when you're using a live CD...
2401200	2403240	And the next slide. The only thing that matters
2403240	2405360	is, does the tool I'm trying to run
2405360	2407380	work? Does the device I'm plugging in
2407380	2409200	work? It doesn't matter what the OS
2409200	2411100	base is. It doesn't matter what
2411100	2413160	schmuck put it together. It only matters
2413160	2415260	does this work right now, this second.
2415380	2417260	And if you're trying to install with Pen2, the answer
2417260	2419380	is probably 80% it doesn't.
2419380	2421100	But if you're trying to use any of the tools, it
2421100	2423180	absolutely does work. And we spend
2423180	2425160	an enormous amount of time testing our
2425160	2427220	own stuff. And we use Pen2 to
2427220	2429320	test it. Which means that we know for a fact
2429320	2431140	that you can break the challenges with the hardware
2431140	2432380	using Pen2.
2433140	2435300	When you choose what operating system
2435300	2437280	to install, I always suggest that
2437280	2439400	you install the one that you ask the least stupid
2439400	2441560	questions about. If that happens
2441560	2443340	to be Pen2, that's great. And I would love
2443340	2445060	to support you. But the truth is,
2445060	2447240	using Pen2, which is based on
2447240	2449600	Gen2, is enormously painful
2449600	2451600	for new Linux users.
2451600	2453280	The learning curve is straight
2453280	2454480	backwards.
2454620	2457700	If this is a normal learning curve,
2457700	2459200	Pen2 is this way.
2459440	2460520	No joke.
2461980	2463680	Learning to use Linux...
2463680	2465000	I started on Red Hat.
2465320	2467620	I spent two years on Red Hat. And then I'm like,
2467620	2469560	oh my god, why does this never do what I
2469560	2471660	want it to do? And the guy I was working
2471660	2473380	with on the InterCAP project is like, oh, I use
2473380	2475220	Gen2. It's the only way I can make it work.
2476200	2477660	And then I just... now I'm
2477660	2479960	on Gen2 forever.
2480060	2481680	Go Gen2. But the truth
2481680	2483640	is, it is painful to
2483640	2485420	use sometimes when you are trying to do
2485420	2487440	updates and reconfiguring the
2487440	2489320	system and learning how to make
2489320	2491360	Linux work. So if you have no idea how
2491360	2493320	Linux works and you want the pain, by all
2493320	2495420	means, I will help you. If you want
2495420	2497780	to start with something a little gentler, honestly,
2497780	2499680	using Debian or Ubuntu,
2499680	2501420	learning how Linux works, or
2501420	2503300	something based on said operating systems,
2503300	2505420	even Kali, you can learn how Linux
2505420	2507800	works. And when you're a little more comfortable with that,
2507800	2509280	something that's a lot more
2509280	2511340	complex is worth it
2511340	2512220	sometimes.
2512220	2514340	So, the next slide,
2515460	2516260	please do
2516260	2518680	not go out and buy these tools.
2518920	2520220	We've had this talk
2520220	2522240	before, and the next thing I know,
2522240	2524400	three days later, I went to Hacker Warehouse,
2524400	2526100	which, by the way, is phenomenal
2526100	2528440	and they've got everything. But I went to Hacker Warehouse
2528440	2530440	and I bought all these things. I'm a pen tester
2530440	2531440	now, right?
2532620	2534380	I went to Home Depot. I bought a
2534380	2536340	saw, a hammer, a jigsaw,
2536340	2538500	and some nails. Can I build a house?
2538500	2540780	Hell no. I bought a monocle now. I'm a millionaire.
2540780	2542860	Yes. Yes. Monopoly boy.
2542860	2544820	So, the Ubertooth
2544820	2546800	is a great tool for
2546800	2548900	portions of Bluetooth that you need
2548900	2550080	it for.
2550620	2552960	Alpha radios are phenomenal
2552960	2555000	if they have the right chipset.
2555360	2556980	If you can find
2556980	2557840	the TP-Link
2560100	2560900	TLWN722N
2560900	2562880	version 1,
2562880	2564880	it's golden. It's about $13
2564880	2566740	and it will last
2566740	2568320	for years.
2568320	2569600	It's a $13
2569600	2572440	Wi-Fi radio that, in 2.4
2572440	2574260	gigahertz, will do everything you needed
2574260	2576600	to do. And I see you all taking pictures.
2576600	2578220	Don't go buy all this because you can't buy
2578220	2579160	some of it.
2581300	2582500	But version 1
2583320	2584720	is amazing.
2584720	2586180	Version 2, they change the chipset.
2586180	2587920	It doesn't inject. It's worthless.
2588860	2590200	HackRF, Mike Ospin,
2590200	2592280	makes an amazing, capable
2592280	2594020	software-defined radio.
2594160	2596620	There are better, but they're more expensive.
2596620	2598720	There are worse, and they're cheaper,
2598720	2600700	but they may do exactly what
2600700	2602080	you want them to do.
2602540	2604620	The Globalstat BU353
2605280	2607480	GPS is amazing.
2607800	2608700	We're not even
2608700	2610640	using them. We're using the Block 7s because
2610640	2612700	they do a better job, they're
2612700	2615460	smaller, and they make better connections.
2615880	2616620	Crazy Radio
2616620	2618400	PA, who knows what that does?
2618740	2620680	By the end of this talk, you're going to love these
2620680	2622180	and you're going to go buy them.
2622220	2624800	The Crazy Radio PA is the mouse jack attack.
2624800	2625740	Who's heard of that?
2626780	2628760	Oh, okay, we have to talk about mouse jack
2629000	2631020	a little bit. So for those of you who know it,
2631020	2632900	just sit back and laugh at everybody else.
2633500	2634380	The Senna UD100
2634380	2637080	is an amazing Bluetooth radio.
2637360	2638740	But one of our guys who does
2638880	2640880	a ton of work, and I'm going to plug
2640880	2642540	him real quick. Woody, are you over there?
2643400	2644500	He can't hear low
2644500	2647360	frequency stuff because he's been blown up too many times.
2647400	2648980	Woody! Hey, Woody!
2648980	2650740	Hey, Woody! It worked, see?
2651020	2652920	We have a high frequency, we can hear him.
2652920	2654740	Woody has done a crap ton
2654740	2656680	of Bluetooth testing and has pointed us
2656680	2658600	in some directions on Bluetooth radios
2658600	2660400	that are different from the UD100.
2660620	2662680	He says he sees like 10 times more things
2662680	2664600	in the same room. So, hey, cool,
2664600	2665840	let's work with this.
2666140	2668540	USB-powered hubs. You'd think this
2668540	2670420	was a really just easy,
2670420	2672440	simple, no worries, I'm going to
2672440	2674480	go buy a USB hub. How many have we
2674480	2675300	burned up?
2677560	2678740	I mean, like, literally
2678740	2680700	melted? Only a few, but most of them
2680700	2682600	break really quick. The ones that don't
2682600	2684720	break usually don't actually fill all
2684720	2686820	the ports. So I've got a 7
2686820	2688700	port at home that's got 3 of those 2
2688860	2690720	e-links in it because you can't
2690720	2693020	actually fit them next to each other.
2693240	2695100	Most USB hubs are awful.
2695100	2696700	Both in throughput and in
2696700	2698700	latency and in heat
2698700	2700600	and in the fact that they just generally
2700600	2702600	break. So, for instance,
2702600	2704700	if you look in our box, which we encourage you
2704700	2706640	to look but not touch, you'll see 2
2706640	2708540	different kinds of hubs. We've got
2708540	2710400	one where they're really, really close
2710400	2712380	to each other and we've got the new
2712380	2714220	model of same said hub
2714220	2716340	where they're actually spaced out enough that you can put
2716340	2718440	devices in every friggin' port.
2718440	2720460	If you're taking notes, the VanTech
2720460	2722480	10 port USB 3 hub
2722480	2725000	is absolutely amazing.
2725000	2726500	It's aluminum. It is the size of your forearm
2726500	2729000	but... It's not that big.
2729040	2730560	It's all aluminum.
2730560	2732780	It's made for bit miners and it disperses
2732780	2734160	heat phenomenally.
2734160	2736540	And it's got full bandwidth.
2736540	2738360	So, even something
2738360	2740420	as simple as going to Fry's or on
2740420	2742360	Amazon or Micro Center
2742360	2744400	and finding a USB hub,
2744400	2746300	even that is something we test.
2746300	2748380	And we're going to talk through some of this testing as
2748380	2750440	we go through this. Again, we're at 48 minutes
2750440	2752360	of a 2 hour talk. Can we talk for
2752360	2754320	2 hours? I think we can talk for like 6.
2754320	2756260	I think you can probably talk for 2 hours. I probably could
2756260	2758400	talk for 2 hours. I'm going to close though.
2758620	2760240	It might be now. I don't know.
2760240	2761380	I haven't decided yet.
2762040	2763860	USB to Ethernet controller.
2763860	2765640	If you've bought a new
2765640	2768000	generation laptop, that is
2768000	2769200	decent.
2770040	2771900	How many USB ports do you
2771900	2773640	have? 1? 2?
2773640	2776300	All USB-C? None? Love it.
2776300	2778680	Yeah, that shit sucks.
2778800	2779980	But you have to be able
2779980	2782420	to plug other things into it because, you know,
2782420	2784060	we talk about how secure
2784060	2785720	WiFi is, but if you're not using
2785720	2788120	client certs and server certs,
2788120	2790060	validating both and having no wildcards
2790060	2791880	and having everything signed, and
2791880	2793800	having your IT department write a GPO
2793800	2795540	that gives you WPA2 only
2795540	2797840	insert form,
2797840	2800180	you're not really secure using WiFi.
2800300	2802080	How many years has Defcon's
2802080	2804460	WiFi gone down because of us?
2805120	2805980	I mean all the way
2805980	2808220	down or just we stole all the passwords?
2808320	2809280	Both.
2809540	2811820	Most of the time they don't even notice.
2811960	2814040	The NOC hates us and we love them
2814040	2816320	and they hate us and we love them.
2816360	2818020	I want it on record that we love
2818020	2820040	them. And we try and help.
2820040	2822220	But essentially every time
2822220	2824080	they create a network, they implement it
2824080	2826720	properly. Who's a sysadmin in the room?
2826720	2828760	It's okay to raise your hand if you are.
2829080	2830260	Who's implemented WiFi
2830260	2832160	and done it correctly and
2832160	2834140	dealt with the absolute hell
2834140	2836220	of dealing with mutual cert authentication
2836220	2837740	and validation
2837740	2840060	and the cert chain and all
2840060	2842040	of everything that goes with that?
2842040	2844120	I connect my GPD to my
2844120	2846180	phone's hotspot at work so I don't
2846180	2847420	have to do that.
2847420	2850080	Because people go around it.
2850080	2851680	So again, if you're not
2851680	2853600	going with the full compliance
2853600	2855380	of what... wow, this is going
2855380	2857720	flat quick... the full compliance
2857720	2859200	of what your enterprise is doing,
2859200	2861560	you're not secure any other
2861560	2864280	time if you're still following the same rules.
2864300	2865520	So, USB
2865520	2867580	to Ethernet controller. If you don't use WiFi,
2867580	2869380	you gotta use Ethernet. We were
2869380	2871440	testing radios in the room before this to get
2871440	2873700	ready for this talk and the CTF
2873700	2875420	and you guys because, you know,
2875420	2878240	Defcon's a bunch of assholes that try and break everything.
2878380	2879540	And the end
2879540	2881440	goal was Rick had at least
2881440	2883540	one gigabit Ethernet
2883540	2885500	over USB 3 device that's cut
2885500	2887340	in half with his flyers because
2887340	2889360	I was de-authing him with my handheld
2889360	2891500	radio. Does anybody
2891500	2893400	know what frequency USB
2893400	2894820	works on?
2895280	2897140	USB 2 transfers at
2897140	2899360	480 megahertz?
2900400	2901320	Does anybody
2901320	2903720	know what frequency handband is?
2903720	2905440	Like 430?
2905620	2907420	Business band's even worse, like in the
2907420	2908720	460s.
2908720	2911580	If you use any of the
2911580	2913600	radios that have the TTY
2913600	2915400	inside the radio,
2915400	2917260	they actually pop up a warning in this
2917260	2919360	radio config software of,
2919360	2921360	for the love of God, don't transmit while you're
2921360	2923320	trying to upload to the radio because
2923320	2925360	it picks up right into the radio
2925360	2927560	and feeds into it and I have bricked a radio
2927560	2929300	that way before. You can
2929640	2931180	de-auth someone's
2931180	2933760	dongle, you know, we're in dongle gate now,
2933760	2935100	you can de-auth somebody's
2935100	2936960	ethernet connection with a handheld
2936960	2939840	radio regularly.
2939840	2941460	You can move a mouse
2941460	2943120	because, what bus does
2943120	2944460	the mouse sit on?
2946040	2947120	U...S...come on...
2948320	2948980	U...S...
2948980	2949820	B...
2949820	2952980	The USB bus is really
2952980	2955440	vulnerable to RF attacks.
2955500	2957120	Those that are Wi-Fi pen
2957120	2958980	testers, how often do you do
2959860	2960980	USB based
2960980	2962860	frequency RF attacks?
2962880	2964560	I can move your mouse,
2964560	2966860	I can make your computer do things it's not
2966860	2968800	supposed to do, literally by
2968800	2970660	keying up a 5 watt handheld
2970660	2972840	near you. Yeah, who's tried to sniff
2972840	2974880	Wi-Fi on a USB 3
2974880	2977260	hub that is really, really cheap?
2977440	2978640	Yeah, it leaks
2978640	2980980	energy all over the place and completely
2980980	2982620	ruins your signal.
2982740	2984860	Like, those big, thick cables
2984860	2986880	that nobody likes, those are the good
2986880	2988640	ones for a reason. They're good.
2989760	2991160	Headphones are up here.
2991220	2992100	Why?
2992920	2994780	A, because I don't want to listen to other
2994780	2996640	people talk while I'm trying to work.
2996780	2999080	When you get on a train, headphones,
2999080	3001000	the really big ones,
3001000	3002740	are like the universal, don't
3002740	3004720	talk to me, signal.
3005540	3006880	But headphones are important if you're
3006880	3008820	trying to listen to RF signals. So, as
3008820	3010780	you're listening to these RF signals, you're
3010780	3012900	going to hear voices, you're going to get video,
3012900	3015060	you're going to get things that you want to hear.
3015060	3017080	I had an assessment that we were on
3017080	3019580	in the middle of Trafalgar Square in England.
3019900	3021060	Well, if you've ever
3021060	3023060	been there, there's a few other embassies
3023060	3025140	around there. They will be
3025140	3027120	named, unnamed? Unnamed at
3027120	3029420	this point? Unnamed. We were doing an assessment,
3029420	3031180	we found some stuff, and the next
3031180	3033160	thing I know, we're hearing chatter, and I
3033160	3035080	didn't recognize the language, so I called in somebody
3035080	3037500	that might, and he's like, oh,
3037500	3038840	that's not good.
3039180	3041160	I was like, okay. So, we,
3041160	3043400	you know, as an intelligent assessor does,
3043400	3045360	we go to the ground, took
3045540	3047380	a Surface that's running Linux because it
3047380	3049640	looks like I'm walking around as a tourist with a tablet,
3049760	3051180	a bunch of shit in my backpack.
3051460	3053500	Next thing I know, I've got a group
3053500	3054840	of people with earwigs
3055400	3057240	and flags on their chest following
3057240	3059500	me and the guy that I'm working with
3059500	3061460	because they realized that
3061460	3063400	we intercepted their communications and we
3063400	3065400	were down the road trying to triangulate where
3065400	3067540	they were. Well, this isn't
3067540	3069540	an abnormal situation if you're doing
3069540	3071520	red teaming in America or other
3071520	3073480	countries. It really doesn't matter where you are.
3073760	3075580	That happening allowed me
3075580	3077520	to realize that, you know, people
3077520	3080660	see what you're doing, your opsec matters,
3080660	3081580	radios have to be
3081580	3083540	down when you're doing this stuff because they can
3083540	3085040	fingerprint me digitally.
3085320	3087400	So as we're going through, the headphones were what
3087400	3089580	allowed me to at least look semi
3090360	3091480	touristy and get
3091480	3093380	the work done that I needed to get done.
3093600	3096000	It also helps in personal relationships.
3096160	3097440	My wife refers to my radio
3097440	3099400	as Mr. Crackly, and I
3099400	3101400	am only allowed to use it if
3101400	3103040	I have my earbuds in.
3103740	3105460	Who has a scanner?
3105700	3107720	You ever listen to a scanner?
3107860	3109380	They're not, not
3109380	3111300	quiet. In fact, they're
3111300	3113480	very loud, and they're usually not well
3113480	3115360	tuned because you're getting a signal from like
3115360	3117020	60 miles away.
3117360	3119400	The key to all this is, know what your
3119400	3121540	gear does, know what your signatures
3121540	3123440	look like, and know what other people
3123440	3125360	can see of you as you're walking around.
3125440	3127180	And then antennas assorted.
3127180	3129160	How many antennas are you carrying right
3129160	3130040	now?
3131460	3133040	Me? Yeah.
3134020	3135500	About 200.
3135500	3137120	Just in my pocket?
3137120	3139140	Yeah, I was going to say, I've got two in my pocket right now.
3139140	3141260	Here, like, 45 or
3141260	3143240	50. Antennas matter, and frequency
3143240	3145160	matters. And some of the talks you've heard today
3145160	3147140	talk to the frequencies that go on
3147140	3149080	and how they work. A 2.4
3149080	3151380	gigahertz antenna on a
3152800	3154040	433 megahertz
3154040	3155240	transmitter or transceiver isn't
3155240	3157000	going to give you a whole lot of anything
3157000	3159020	good. It's going to give you a lot of dirty signal.
3159280	3161100	Understanding what you're doing with antennas is super
3161100	3161880	important.
3163220	3165180	These are two tools that we live in
3165180	3167700	quite a bit in the WiFi world.
3168500	3169540	One on the left
3169540	3171200	has pretty colors.
3171340	3173400	One on the right has more pretty colors.
3174080	3175260	Which one are you presenting to
3175400	3176160	a CEO?
3177580	3179160	I hope neither, and I hope you're
3179160	3181460	writing up an assessment of actually what they say
3181460	3183440	and not what that's showing.
3183440	3185460	But AeroDump and Kismet are pretty much
3185460	3187600	the defect. Yes? What, Chris?
3188060	3189180	He's saying hi.
3189180	3191020	Are you just saying hi? Hi, Chris.
3191020	3192440	Can you say hi to everybody, Chris?
3192440	3195780	If you don't have enough to share, don't give anything out.
3196500	3197220	Okay.
3197440	3199380	He does have enough to share. Everybody go share
3199380	3201260	with Chris. Start with hugs.
3201260	3203240	He's a very nice guy. He loves
3203240	3204200	hugs.
3204900	3206800	Bear looking for a twink in the back.
3206800	3209080	If everybody's getting up to give him a hug, sit back down.
3209440	3211180	Or don't. He might punch you.
3211180	3212800	Or hug you. I'm not sure.
3213060	3215220	So Kismet and AeroDump are the two kind of go-to
3215220	3217020	tools. AeroDump
3217020	3218840	for Wi-Fi specific.
3219060	3221120	Kismet, as you see, if you come over and look
3221120	3223120	at some of the work we're doing, Kismet gives
3223120	3224960	you a lot more information.
3224960	3226940	It gives it to you in a much better form.
3227300	3229160	And then, Mike, if you could just
3229160	3231120	give us packet captures back
3231120	3233240	and not make us script it, that would be great.
3233760	3235180	It totally doesn't always
3235180	3237260	crash on the PCAP-NG output.
3237820	3239280	But these are two really good tools
3239280	3241780	to use these capabilities we're talking about.
3241920	3243340	So to get to where
3243340	3245460	you're going, you're going to have
3245460	3247600	to pack it out some way.
3247600	3249380	So you can pack it covert.
3250640	3250940	The
3250940	3253200	Osprey bag on the right. You can be
3253200	3255240	totally, I'm a soft guy. I've got my
3255240	3257420	Oakleys. I've got my Levi's. I've got my Hard Rock
3257420	3259040	Cafe shirt on.
3259040	3261300	And wear your M11 backpack.
3262120	3263480	You need a Pelican.
3263480	3265300	You need something to travel with.
3265360	3267160	Having the ability to get your gear
3267160	3269480	from one place to another is super important.
3269640	3271400	That MRAP actually happens
3271400	3273680	to be a war driving vehicle.
3274300	3275600	Ha ha!
3275920	3277120	See where I went with that?
3277120	3279200	That was clever. That was fun.
3279200	3281220	So, again, if you're putting stuff
3281220	3283320	in your car, the reason that Kismet box was built
3283320	3285120	is I wanted the ability to
3285120	3287440	throw something in the car, plug it in and have it run
3287440	3288760	as opposed to
3288760	3291640	plugging a hub in, plugging things in,
3291640	3293360	getting everything set up, setting up a network
3293360	3295260	and all that other bullshit. So having
3295260	3297180	the ability to just throw it into the vehicle you're in
3297180	3299380	is very helpful. You've got to get your shit
3299380	3301020	from one place to another.
3301200	3303080	One of these will probably help.
3303100	3304700	I don't have a rental car here
3305160	3307240	because, frankly, rental cars tend
3307240	3308780	to suck. Just ask Woody.
3308980	3311080	They've got a lot of flaws to them and your data
3311080	3312740	goes to pretty much everybody.
3313840	3315740	Who has an Android phone here?
3316020	3317140	You can raise your hands proudly
3317140	3319200	on that. Even though iPhones are a better
3319200	3321080	phone, Androids are better devices.
3321280	3323260	These are devices that you can...
3323260	3325240	that you can use on Android. We've kind of
3325240	3327280	talked through this over the years as to what
3327280	3328700	works, what doesn't.
3329040	3330920	This would be something I would take a picture of
3331940	3333420	or, you know, get the video
3333420	3335560	later. But these particular
3335560	3337380	tools make your Android
3337380	3339460	device a relatively covert
3339460	3341720	device to do things with.
3341720	3343400	As long as you have the right
3343400	3344820	OTG cable.
3345480	3347360	The Nexus 5X's
3347360	3348840	are decent devices
3348840	3351340	but they only work with like three
3351340	3353340	OTG cables, which means
3353340	3355940	that they kind of suck when you're trying to do work.
3356560	3357300	Understanding how
3357300	3359040	your tools work.
3359820	3361440	If you're at DEF CON,
3361960	3363420	we used to be really concerned
3363420	3365440	over those things that killed Steve Irwin.
3365440	3367200	I'll let you Google that one. But
3367200	3369060	Open Signal and LTE Discovery
3369060	3371320	do an amazing job of telling you when
3371320	3373140	cell towers move.
3373480	3375260	Why would it be a problem when cell
3375260	3376640	towers move?
3378220	3380120	Discuss amongst yourselves.
3381640	3382080	Having
3382080	3383980	the ability to see them is very helpful and
3383980	3386140	Open Signal and LTE Discovery do a really good job
3386140	3388080	for that. Anything else
3388080	3389360	you want to talk about on there?
3390440	3392520	No, but that guy has a question.
3392520	3394000	Yes, question.
3394520	3395380	Hi!
3402480	3403360	No.
3405180	3405880	Yeah.
3406660	3407720	Apple, there is...
3407720	3409860	Real quick, the question was, are there
3409860	3411620	ways without jailbreaking your
3412180	3414120	iDevice, I'll leave it at iDevice
3414120	3415300	instead of phone,
3415960	3418000	to detect moving
3418000	3420200	signals over LTE,
3420200	3422180	GSM, or 4G, or 5G?
3422260	3423980	I'm going to uncharacteristically
3423980	3426220	say something kind of pro-Apple here.
3426220	3427940	They are really, really,
3427940	3430280	really bad to the app developers
3430280	3432280	by preserving the user's
3432280	3434080	privacy. They do things like
3434080	3436500	not allowing you to read the MAC address of the device,
3436500	3438200	not allowing you to read the information of the
3438200	3440520	device, basically at all.
3440520	3442280	Whereas Android makes all of their money
3442280	3444320	from app developers who are basically
3444320	3446560	stealing all of your private information.
3446560	3448280	So they give you everything. If you're
3448280	3450320	an app on Android, you can access
3450320	3452260	the GPS, you can access
3452260	3454320	Wi-Fi's nearby, you can get all the MAC
3454320	3456320	addresses of everything anywhere near you,
3456320	3458120	and things like NRF Connect do
3458120	3460380	exactly that to track the
3460380	3462340	local Bluetooth devices and show them to
3462340	3464260	you. But Apple locks all of that
3464260	3466380	down, doesn't even make it optionally available
3466380	3468200	to protect you from
3468200	3470720	those companies being evil with your data.
3471640	3472520	Apple may
3472520	3475100	in fact be secure in that way.
3475100	3476700	Android may in fact be useful
3476700	3478580	in that way. And unfortunately
3478580	3480620	your choices are one or the other.
3480840	3483100	So, you know, whatever.
3483180	3484740	Personally, I carry two phones. I
3484740	3486740	carry a device and I carry a phone. I like
3486740	3488660	Apples as phones. I like
3488660	3490720	Androids as devices. Both of
3490720	3492800	which fit in my pockets and they both work really well
3492800	3494740	but you gotta figure out what it is that you're trying
3494740	3496080	to do when you're doing it.
3496700	3499140	Any questions about those tools?
3500900	3501960	Excuse me?
3505020	3506500	Which Android phone do you recommend?
3506680	3508940	I use a
3508940	3510820	Note because they're bigger screens
3510820	3512820	and if I'm using it as a device I want to be able to see
3512820	3514840	a little bit bigger screen.
3514840	3517100	You use Pixels, right? I use whatever
3517100	3519060	Google is selling because they're the only ones that actually
3519060	3521440	get security updates in a timely manner
3521440	3522960	and as it turns out that's very important
3522960	3525080	to me personally.
3525080	3525780	I know, right?
3525780	3527340	Good.
3530580	3531720	Do OTG cables work
3531720	3533720	with every phone? Maybe? No,
3533720	3535680	definitely not. They do work with a lot of
3535680	3537660	phones and USB-C is
3537820	3539440	a lot better about that but
3539440	3541700	you also have to realize that there's
3541700	3543840	not like drivers in these phones
3543840	3545400	for whatever you plug in. So
3545400	3547860	for example, almost every
3547860	3549600	Android phone, including
3549600	3551660	like the Chromecast
3551660	3553900	sticks, can take a USB
3553900	3555680	Ethernet and will use that as their
3555680	3557380	primary Ethernet but
3557380	3559500	only like two or three
3559500	3561560	chipsets actually work. It's the
3561560	3563520	most common ones so it feels like
3563520	3565460	oh yeah, like every one of them works
3565460	3567740	but I've got a stack of them that just don't
3567740	3569580	work. So there's a very
3569580	3571720	limited driver set. You're not going to plug a
3571720	3573880	Wi-Fi card into your OTG cable
3573880	3575800	and use it on stock Android.
3575800	3577860	There are products like NetHunter
3577860	3579960	and the Pony Express products that have
3580600	3581860	completely customized the
3581860	3583560	kernel, the operating system to give
3583560	3585740	you those extra drivers that are not
3585740	3587900	available on like stock Android.
3587900	3589680	But you can get like, you can plug
3589680	3591620	an RTL-SDR into your phone and
3591620	3593720	you can use RF analyzer and
3593720	3595480	that absolutely works because it's a nice
3595480	3597740	user space driver and somebody ported the RTL
3597740	3599660	libs to Android. So there
3599660	3601380	is a lot of capabilities but don't
3601380	3604040	think it's a Linux computer. It's not.
3605360	3607560	Alright, so the sweet spot
3607560	3609260	of where most people do their work.
3609260	3611640	Wi-Fi 2.4 and 5 GHz.
3611640	3613440	Who here,
3613440	3615700	especially you people over there,
3615700	3617880	only has 2.4 GHz
3617880	3619240	stuff with them?
3620440	3621740	It's okay.
3621740	3623760	Yeah, it's okay. You don't have to admit it
3623760	3625600	because we all know. The truth is
3625600	3627440	nobody only has
3627440	3629380	2.4 GHz stuff with them. Your
3629380	3631560	phone, your laptop,
3631560	3633540	everything that you're not using for
3633540	3635660	hacking is dual band.
3635800	3637560	All of the stuff that people are using for
3637560	3639720	hacking, like the sweet deauthing
3639720	3641800	wristband on one of our contestants over there
3641800	3643680	is 2.4 GHz
3643680	3646020	only garbage.
3646480	3647340	And the truth is
3647340	3649580	5 GHz is very, very
3649580	3651760	well utilized here at DEF CON because every
3651760	3653720	schmuck with 50 cents is deauthing
3653720	3655780	Wi-Fi right now but all their stuff
3655780	3658000	is 2.4 GHz only.
3659420	3661600	It's shocking that people are actually
3661600	3663600	going around and not sniffing
3663600	3664920	5 GHz.
3665480	3667760	This has been a big complaint of mine
3667760	3670420	for years, especially with AC.
3670420	3671520	AC is only
3671520	3673740	5 GHz. There wasn't any
3673740	3675740	enhancement to 2.4 for AC
3675740	3677940	so all of these laptops for several
3677940	3679840	years are predominantly
3679840	3681820	using 5 GHz. Even the
3681820	3683640	cheaper devices are now mostly
3683640	3685820	dual band. And truthfully, if it's not
3685820	3688260	dual band, stop buying it.
3688660	3689960	It's garbage.
3689960	3691780	It is the most overused spectrum
3691780	3693620	we have in the world
3693620	3695780	and it's overlapping
3695780	3697500	with your microwave.
3698160	3699820	It's the worst spectrum on the
3699820	3701640	planet. Stop using it. 5 GHz is
3701640	3702960	great. Oh my god.
3703300	3705760	Talk about Wi-Fi testing for now.
3706280	3707620	Talk about Wi-Fi testing?
3707620	3709360	What kind of Wi-Fi testing should we talk about?
3709360	3710420	Oh boy.
3711700	3713960	So, Ted, you still here?
3713960	3715780	Teddy? Ted, no last
3715780	3717700	name? Ted!
3717980	3719340	Ted, wave hi.
3719540	3721960	Thanks. So Ted gave a talk earlier called
3721960	3723860	Are You Interested in
3723860	3725940	Kismet? It was a great pun. But the truth
3725940	3727980	is, Kismet has a wonderful API
3727980	3729960	that gives you all of its information
3729960	3731940	and allows you to kind of poke at it.
3732000	3734060	So we used Kismet,
3734060	3735960	mostly him. I had the idea and begged
3735960	3737720	for somebody else to write it for me.
3738040	3739680	He rewrote my Kismet
3739680	3742000	shootout into a
3742000	3744340	REST API call to the new
3744340	3746700	Kismet and it allows you to
3746700	3748740	test competitively those cards against each other.
3748740	3750800	And that is, again, one of my
3750800	3752380	primary ways of testing Wi-Fi cards.
3752380	3754420	In addition, testing
3754420	3757140	things very fairly is almost impossible.
3757140	3758460	I have a large baggie
3758460	3760500	of really, really crappy antennas.
3760500	3762460	Not because I use crappy antennas,
3762460	3764400	but because they're all exactly
3764400	3766440	the same crappy antennas.
3766440	3768360	Mostly, I use the little
3768360	3770140	zero DBI ones that come off the
3770140	3772760	Centidongles because I have a bag of like 20 of them.
3772760	3774600	And that allows me to test like 10 or 15
3774600	3776620	cards with exactly identical antennas
3776620	3778320	at once to see
3778320	3780440	what really is what.
3780440	3783120	So we spend a lot of time testing with things like that.
3785180	3787980	I just feel like this slide is inappropriate.
3787980	3790500	I want this one. It feels better.
3790500	3791800	Talk about Wi-Fi.
3792420	3794200	So yeah, testing with things like
3794200	3796220	the new Kismet shootout and testing
3796220	3798720	with especially AirReplayNG.
3799180	3800580	AirReplayNG is the primary
3800580	3802420	tool that everyone uses to inject
3802420	3804240	packets. It's also the best
3804240	3806280	tested because people complain
3806280	3808540	immediately if something doesn't work
3808540	3810340	with AirCrack because it is kind of the
3810340	3812360	gold standard. So the AirCrack guys
3812360	3814440	get all of these bugs, they fix all of these
3814440	3816300	bugs, and they generally have a nice
3816300	3818500	working product. So if you test it with
3818500	3820360	Kismet Shootout and it looks like
3820360	3822520	it receives more packets than most of your other cards
3822520	3824220	and you test it with AirReplayNG
3824220	3826360	and it looks like it reasonably high
3826360	3828280	percentage of successful transmissions,
3828280	3830980	that is a damn fine Wi-Fi card.
3831060	3832480	If you run one of those
3832480	3834440	tests and it doesn't work out for you,
3834440	3835680	that sucks.
3836320	3837640	Also run a lot of
3837640	3839820	connected tests. I know it sounds
3839820	3841700	weird because, you know, what does a hacker need
3841700	3843460	to connect to a Wi-Fi network from?
3843460	3845700	But the number one thing I used to see, which was
3845700	3847260	the funniest thing on the planet,
3847260	3849620	we were running a Capture the Flag and everybody had
3849620	3851800	those 802.11g only
3851800	3853780	alpha cards that were so popular for so
3853780	3855700	long, the 036H's
3855700	3857460	that everyone loved so much, the
3857460	3859360	1 watt alphas.
3859720	3861600	And they would buy these things
3861600	3863800	and they would crack the web and it would be two minutes later
3863800	3865600	because the thing has great injection support
3865600	3867780	and then they'd try to connect to the network and they
3867780	3869860	couldn't do it because that
3869860	3872380	card's firmware was so light.
3872520	3873720	You could do basically anything
3873720	3875680	you wanted with it. You could eject
3875680	3877900	raw frames, you could capture raw frames, but man
3877900	3879620	if you tried to connect to the Wi-Fi network, the thing
3879620	3881860	sucked. You had to be within like
3881860	3884100	six inches of the access point for them to reliably
3884100	3886200	connect. One watt,
3886200	3888000	it was not. Successful
3888000	3889620	at connecting, it was not.
3889620	3891960	I love the Realtek ones for connecting to be quite honest
3891960	3894060	because they actually have enough firmware on them
3894060	3895860	to do the job correctly. So
3895860	3897940	testing things when you're connecting is actually
3898100	3898880	a big deal.
3899820	3902300	Do you have any Wi-Fi testing stuff you want to talk about?
3902300	3903920	I talked about Shootout, Air Replay
3903920	3906140	and just actually using it as a Wi-Fi
3906140	3908340	card. Oh wow, that's crazy.
3908340	3910140	I know, right? That is absolutely crazy.
3910140	3911080	No, I think
3911680	3913800	the biggest thing you've got to look at is what are you
3913800	3915800	trying to do when you're trying to do it?
3915800	3917920	If you're trying to hit channels 1, 6,
3917920	3920080	11 and A-band,
3920080	3922180	you can do that with one radio.
3922260	3924060	But you're going to miss handshakes, you're going to miss
3924060	3925560	data, you're going to miss packets.
3925860	3927720	Data loss on these radios
3927720	3930060	added to the fact that it's channel hopping is going to give
3930060	3932120	you a hard time. So again, testing
3932840	3934380	the best you can
3934380	3936300	to do what you're trying to do.
3936300	3937900	Who's ever war driven?
3938360	3939980	Who? Wiggle's
3939980	3942160	back in the back usually, they left for the day
3942160	3944200	but Wiggle's been here. Wiggle's been doing
3944200	3946160	this stuff for like 20...
3946160	3947880	17 years? 18 years?
3947880	3949920	As long as like
3949920	3951920	the IPAC and the Proxmark
3951920	3953940	Gold existed, Wiggle's
3953940	3956760	been capturing data all over the world.
3957120	3958000	If you've war driven
3958000	3959960	before, or if you just
3959960	3962180	want to guess, what's the optimal speed
3962180	3964360	to drive while war driving?
3964760	3965960	90.
3966920	3968060	With your rig?
3968060	3969780	Yes. What is the optimal
3969780	3971160	speed? Yeah.
3973040	3974740	Zero, park outside.
3974740	3976080	Your GPS is going to
3976080	3978140	suck. And you'll get
3978140	3979820	like, you know, a couple.
3979840	3981960	Seriously, if you're war driving, if you're driving around
3981960	3984040	trying to get access points, you want to be as efficient as
3984040	3985820	possible, what's the speed you drive?
3985960	3987780	How many Wi-Fi cards do I have?
3987780	3989040	What's the speed?
3989220	3991920	5. Okay, that's a thing.
3992520	3993560	Anyone else?
3993820	3995980	Can you drive 10 on most roads? Can you drive 5
3995980	3996760	on most roads?
3997340	3999820	5 minutes over the speed limit.
4000300	4001140	So,
4001140	4004000	what you read if you Google
4004000	4006040	it, and I've done this before, is 35 miles
4006040	4008120	per hour is the optimal speed to war drive.
4009180	4010040	How many
4010040	4012140	channels are you getting in that 35
4012140	4014460	miles per hour as you're passing?
4014920	4016220	If you don't test
4016220	4018120	your equipment, Rick said 90. With some
4018120	4020140	of the rigs he uses, he could drive 90 miles
4020140	4021820	an hour. There's
4021820	4023900	1, 2, 3, 4, 5, 6, 7, 14
4023900	4026000	plus 37...
4026600	4027980	220 if you unlock the
4027980	4028600	firmware.
4030220	4032120	There's what, 60 channels
4032120	4033820	roughly right now?
4033820	4035940	In the U.S., like 44. 44, okay.
4035940	4038120	44 channels. If you're driving
4038120	4039980	35 miles an hour down the road,
4039980	4042520	this is not the algebra train question,
4042520	4043960	if you're driving 35 miles
4043960	4045860	per hour down the road and you have 44
4045860	4047960	channels to hit, and you don't know how many
4047960	4050060	channels you're going to hit as you're driving,
4050060	4052020	did you get all the Wi-Fi?
4052280	4053580	No, you didn't.
4053580	4056140	But if you know that you can drive this fast
4056140	4058380	with these 12 radios, 6 radios,
4058380	4060140	5 radios, and they're
4060140	4062260	locked on channels and not channel hopping,
4062260	4064080	then you can come up with an optimal
4064080	4066020	speed. So when you're trying to do the
4066020	4068160	collection and you're trying to do your testing,
4068160	4069780	do that testing.
4069960	4072220	Keep this kind of theme coming
4072220	4074300	back, test your stuff before
4074300	4076080	you go out. If you just
4076080	4077900	want to collect data, I mean,
4077900	4080320	Aardvark gave a talk on a panel,
4080320	4082220	semi-sober, well, he gave a talk
4082220	4084480	for about 10 minutes and then he just started, you know,
4084480	4085560	being Aardvark.
4086520	4087920	He runs around with like
4087920	4090080	15 Android devices, he drops
4090080	4092080	them onto Ubers, he does all kinds of work
4092080	4094260	to get things up to wiggle,
4094260	4096020	and he does a good job of it because he's
4096020	4098000	dispersed what he's trying to do.
4098040	4099640	But if he was trying to drive around with
4099640	4101820	Ellen, Jimmy, Johnny, Jen,
4101820	4104040	and, I don't know, whatever other names
4104040	4105800	he's named his access points,
4105800	4108040	he's not getting the same amount of data that he's trying to
4108040	4108700	get.
4109600	4111820	Does anybody here know how many Wi-Fi cards
4111820	4113980	you can channel hop with in Linux at once?
4114200	4115840	I found this one out.
4115840	4117600	No one? Got any guesses?
4117780	4119820	How many can you channel hop at once? Two?
4119820	4122000	That's a guess. That's a good guess.
4122320	4123740	She's got eight fingers up,
4123740	4125000	I couldn't even tell.
4125620	4126580	One.
4127720	4129660	One card at a time
4129660	4131900	can channel hop. You can only
4131900	4133540	issue a command to
4133540	4136060	one Wi-Fi card at a time in Linux.
4136060	4138400	So if you have 30 of them, you have to queue.
4138700	4139820	The queuing system is
4139820	4141840	not even fair. It's just
4141840	4143560	whoever takes the lock first
4143560	4145620	wins. So when you put a bunch
4145620	4147780	of stuff together and you say, well, you know, there's
4148400	4149600	44 channels and I'm just going
4149600	4151580	to channel hop at five a second and I'm
4151580	4153860	going to put nine cards in there and I'll be great.
4153960	4155740	Except you can't actually do that.
4155880	4157440	You end up with wonderful setups like
4157440	4159340	my Kismet box where the load average is 12
4159340	4161540	because all of the cards are stuck in
4161540	4163520	D state waiting to channel change one
4163520	4164660	at a time.
4165760	4167380	It's a really interesting feature of Linux
4167380	4169300	that we're currently working on fixing.
4169640	4171160	Well, by we, I mean
4171160	4172980	Johannes Burke, who's actually a god
4172980	4175140	and writes most of the Linux stuff, but he's
4175140	4177320	been helping me through fixing this problem
4177320	4178940	and I've been testing for him to
4178940	4181080	actually allow you to channel hop with more than one
4181080	4182760	card at a time because welcome to 2019
4182760	4185700	people have more than one Wi-Fi card now.
4186160	4187620	So testing's important.
4187920	4188400	So
4189260	4191360	understanding how your stuff works matters
4191740	4193100	a lot. And if you
4193100	4195300	don't understand it, you can't use it properly,
4195300	4197480	you shouldn't be getting paid to do what you're doing.
4197480	4199160	And I am calling everyone out that's
4199160	4200960	getting paid to do this type of work.
4200980	4203180	If you don't know how... we don't normally give
4203180	4205240	two hour talks. We can talk for like eight or ten
4205240	4206280	hours at a time, but
4207480	4208840	we're never closing.
4209680	4211200	But we run the village so we can keep it
4211200	4213200	open as long as we want. So you guys
4213200	4215120	can ask as many questions as you feel
4215120	4216240	free to ask.
4217160	4219040	With this testing though, understanding
4219040	4221240	where your devices work and how they work
4221240	4222340	is going to be critical.
4222900	4225340	The best way that I've found to do testing
4225340	4227140	and it's really, really stupid and it's really
4227140	4229260	basic, get an access
4229260	4231280	point. Whether it's your phone, your device,
4231280	4232960	your laptop, whatever it is.
4232960	4235300	And go out to a soccer field or a football field
4235300	4237200	or somewhere outside where that big yellow
4237200	4238880	thing is in the sky that burns you
4239420	4241240	and set up that access point
4241240	4243840	at like the zero yard line.
4243840	4245060	For those that are, you know,
4245060	4247100	happy with sports ball, that's where the big
4247100	4248240	lines are.
4248940	4251140	Put that access point there and walk
4251140	4253180	out a hundred yards. And it's nice
4253180	4255480	on a football field because it's already marked for you.
4255480	4257220	And stand there and
4257220	4259420	get a reading from your device
4259420	4261280	and see what reading that is.
4261280	4263380	Then move to 90, 80,
4263380	4266100	70, I don't think I have to go all the way down for you.
4266100	4267460	And write down
4267460	4269300	what those ranges are.
4269300	4271400	At that point, you know that at
4271400	4273280	this distance on a perfect
4273280	4275440	day, my radio works at
4275440	4277380	this efficiency. And when you have
4277380	4279180	that ability to have that knowledge,
4279180	4281320	you can move forward with the way you're working
4281320	4283460	because you know exactly what your devices
4283460	4285700	are going to do. Now,
4285700	4287500	caveat that with, we're manipulating
4287500	4289340	physics when we're dealing with wireless
4289340	4291220	devices, whether they're RF
4291220	4292820	of any sort.
4293260	4295240	It's not going to be perfect.
4295240	4297160	But if you compare two or three devices
4297160	4299480	to each other, you have the ability
4299480	4301360	to say, my empirical
4301360	4303480	data says this device is
4303480	4305600	better than this because of this.
4305940	4307460	Understanding how that works is
4307460	4309680	critical when you're doing your testing.
4309680	4311440	If you're standing, please feel free to sit
4311440	4313140	down. We've got lots of seats.
4314340	4315420	Bluetooth.
4315620	4317660	Some of you said you work with Bluetooth.
4318720	4319380	Who has the
4319380	4321300	ability to de-auth Bluetooth?
4321300	4323420	Anyone? Because if you do,
4323420	4325740	I want to talk to you. Bluetooth is a
4325740	4327780	really, really cool capability
4327780	4330820	within the 2.4 GHz spectrum.
4330820	4331980	Bluetooth,
4331980	4333700	by design,
4333700	4335440	frequency hops as it goes from
4336000	4337420	connection to connection.
4337420	4339400	As it frequency hops, in order to
4339560	4341540	de-auth Bluetooth, you have to
4341540	4343660	jam the 2.4 GHz
4344340	4345540	frequency.
4346100	4347720	Who's allowed to jam
4347720	4349380	in any country
4349380	4351260	in the world the entire
4351260	4353320	2.4 GHz frequency?
4354260	4355640	Oh, no Feds here.
4355640	4356760	Okay, cool.
4357800	4359780	When you have that ability,
4359780	4361280	the reason that they've stopped it,
4361280	4363460	the reason the FCC has gone really strong on it is
4363460	4365560	2.4 GHz is what
4365560	4367360	also allows you to make cell phone
4367360	4369380	calls over Wi-Fi. Who's ever
4369380	4371460	seen, you know, do you want to call over Wi-Fi instead
4371460	4373540	of using cellular? If you block
4373540	4375280	2.4 GHz and you block
4375280	4377600	the ability to get across those signals,
4377600	4379780	you can't call E911,
4379780	4381340	which means you are doing
4381540	4383380	a public safety disservice, and
4383380	4385100	therefore you're breaking rules.
4385740	4387500	That being said, Bluetooth will
4388480	4389240	de-auth, it will
4389240	4391620	disconnect, if you jam the entire
4391620	4394140	2.4 GHz frequency set.
4394180	4395400	But it's smart enough
4395400	4397260	to not do that. So a lot of the work
4397260	4399340	that we do in Bluetooth has
4399340	4401020	changed over the years.
4401240	4402020	Yes?
4421150	4422950	Yup. Those black
4422950	4425110	helicopters do not joke.
4425110	4427410	They are 100% legit
4427830	4429630	100% of the time.
4430090	4431050	Messing with this stuff
4431050	4433230	is really bad. It's bad for reasons. Yeah?
4435410	4437090	Oh, I'm sorry. So what he said
4437090	4438990	was, and I'm going to paraphrase a little bit, but there was
4439130	4440970	a guy in California that
4440970	4441670	was taking
4441670	4444850	I-70, I-71, the
4444850	4447850	71, right? The 71 in California.
4447930	4448870	And he was
4448870	4450970	jamming Bluetooth because
4450970	4452770	he was sick of people talking on their...
4452770	4454690	Oh, GSM.
4454690	4456950	He was jamming cell phones from working because
4456950	4458750	he didn't want them to function while they were
4458750	4460670	going forward.
4460830	4462650	That being said,
4462650	4464450	he got fined $30,000
4464450	4466930	and had jail time simply because
4466930	4468690	he was jamming. The FCC eventually
4468690	4469710	found him.
4470550	4472570	They don't mess around. They don't.
4472570	4474210	And they don't for a lot of reasons.
4474210	4477170	Hey, hack the planet. Rock on.
4477630	4478610	Some of this stuff is
4478610	4480310	for our own good. I mean, it's not
4480310	4482550	all bad. Some of it really sucks.
4482930	4484650	Legally, in this district,
4484650	4486490	within the United States, because of Google,
4486490	4488430	thank you Google, we can't sniff
4488430	4490350	Wi-Fi outside of a place where you have
4490350	4492570	rules of engagement. Which, by the way, because
4492570	4494370	this is on record, we've given a rule of engagement
4494370	4496190	for our wireless capture of the flag.
4496190	4498190	Feel free, if it says WCTF
4498190	4499810	in all caps, to beat the living
4499810	4501430	poo out of it.
4502390	4504050	But other than that, you're not supposed to do
4504050	4505770	any sniffing within the state of...
4506930	4508070	Rick, is it the 9th
4508070	4510490	district? Where are we?
4510930	4512130	What district are we in
4512130	4514530	in California? 9th, yeah.
4514690	4515950	Within the 9th district,
4515950	4518650	not a...
4520170	4521910	not to say that you can't do it
4521910	4524070	with rules, but by legal
4524070	4525770	you are not allowed to sniff traffic
4525770	4528070	within that space because Google did all their
4528070	4529790	Google driving and everything else. Yeah.
4532900	4533960	How would you catch
4533960	4536400	somebody driving down the highway with a jammer?
4536400	4537840	We're going to move on to SDR
4537840	4540160	for a second, which is later in this.
4541040	4542360	To jam.
4542720	4543800	In order to do broad
4543800	4545860	spectrum jamming, you have to
4546660	4547900	send... let him run,
4547900	4550120	Piero, it's okay. That's not Piero.
4550120	4551380	Wow, he looks like Piero.
4552920	4553880	In order to do
4553880	4555820	broad spectrum jamming or wideband
4555820	4558300	jamming, you have to send out a
4558300	4560220	ton of energy. The
4560220	4562240	emission of that energy is
4568660	4569540	a very specific...
4569620	4570000	There's a word
4570000	4572380	I'm trying to come up with. Signature. Signature, thank you.
4572480	4574360	It's a very specific signature
4574360	4576200	that is very, very easy
4576200	4578620	to find. I've done some
4578620	4580000	FCC fox hunting before where we go out
4580000	4581760	and look for jammers. Two years
4581760	4583760	ago, we actually put out a
4584600	4586220	request to our wireless people
4586220	4588140	over radio and a bunch of other
4588140	4590320	communications. There was a group that was
4590320	4592940	jamming out the ham radio
4592940	4594480	devices that Teleprig was trying to
4594480	4596200	run. And we went out into the hotels
4596200	4598820	and found the jammers. But we put out
4598820	4599960	enough information that they got scared that
4599960	4602760	we were looking for them that they stopped.
4602760	4604860	Finding jammers is really,
4605040	4606240	really easy. We're going to get
4606240	4608340	into SDR in a second. Thank you
4608340	4609720	to those of you that have walked through
4609720	4611720	this marathon with us. That
4611720	4613840	type of testing is really important because
4613840	4615720	you have to find those rogue signals that
4615720	4617760	are giving you a problem. And you have to find
4617760	4619960	those devices that are talking too loud.
4619960	4621760	And that's how you start to look for them. Yeah, we actually
4621760	4623600	got a report of somebody jamming our ham radio
4623600	4625420	repeater just yesterday.
4625680	4627820	And we spent a little bit of time looking for the jammer
4627820	4629720	and it turns out that my $40 amplifier
4630420	4631620	had shorted itself
4631620	4633680	and really, really needed a reboot.
4633880	4635440	We were jamming ourselves
4635440	4637120	very effectively.
4638360	4639780	Pack yourself!
4639780	4641240	Did you know that 5 watts reaches
4641240	4643840	the flamingo clearly? I didn't.
4643840	4645280	But it turns out it does
4645280	4647420	and the amps heatsink works great.
4647420	4649700	Yeah, it was really hot.
4650700	4651140	Yeah,
4651140	4652760	question in the back.
4673280	4674480	Alright, so the
4674480	4676700	question is, what about jammers?
4677300	4678440	Yeah, what do we
4678440	4680640	do about jammers for like a
4680640	4682620	home alarm system or whatnot? And the truth is
4682620	4684440	if it's wireless, it's not an alarm
4684440	4686600	system, it's not a security system.
4686600	4688520	If your cameras are wireless, especially
4688520	4690500	if they're WiFi, if your door sensors
4690500	4692500	are wireless, if your only way
4692500	4694860	to get out is cellular, it's not a security system.
4694860	4696280	So I'm not giving up my
4696280	4697860	personal protection, but
4698240	4700720	to be fair, I use one of those devices
4700720	4703020	and they will remain nameless.
4703180	4704460	The one I chose
4704460	4706320	has Zigbee, WiFi
4706320	4708860	and hardwired Ethernet.
4709420	4710500	If you're that
4710500	4712560	good, you're throwing something through my
4712560	4714460	window or cutting the glass and coming in
4714460	4716720	and then you've got to deal with my dog and guns
4716720	4718600	and a whole lot of other things.
4718740	4720840	But your personal protection
4720840	4722620	and how you deal with that, you have
4722620	4724540	to understand what those risks are and you
4724540	4726460	have to be comfortable with them. So if you don't
4726460	4728340	want to get jammed in 2.4
4728340	4730900	and then you jump 2.4
4730900	4732520	and 9 GHz, cool.
4732580	4734460	Then you've got something that's hard-lined in
4734460	4736560	over coax and then
4736560	4738600	you've got Cat5 or Cat6 or whatever
4738600	4740520	it is, you
4740520	4742260	can't do a lot more.
4742260	4744100	To be fair, there's probably
4744100	4746480	microwave or satellite technology you
4746480	4748760	could use, but if you've got a
4748760	4750820	triple backup on three different frequencies
4750820	4752720	or four different frequencies,
4752720	4754640	I don't know how much better you can do.
4754640	4756720	The truth is, if I cut your phone line and
4756720	4758680	jam cellular, your alarm system
4758680	4761260	is not going to alert nobody.
4761260	4763020	But yeah, there's always a risk.
4763020	4764940	You have to decide what the risk is.
4764940	4766740	But truthfully, the really
4767600	4768540	garbage door sensors
4768540	4770860	are really, really garbage.
4771320	4772740	RTL433 decodes a few of them.
4772740	4774600	It's pretty funny. You watch your neighbor's door
4774600	4776520	bell get rang or their doors open and close
4776520	4778160	or their windows open and close.
4779000	4780700	At one of the companies I formerly
4780700	4782980	worked for, they told me everything was wired.
4783380	4784340	They were wrong.
4784340	4786020	So I wrote a little script that
4786480	4788540	replays door open, door closed, door open, door
4788540	4790360	closed, just in a loop.
4790480	4791740	And it turns out you can't arm the security system like that.
4791740	4794060	But you're an asshole. I am.
4794060	4796580	But it turns out you can't arm the security system like that.
4796580	4798500	But it does blink like it's party mode.
4798500	4799920	So it was fun for one of us.
4800560	4802840	So within Bluetooth, there's a couple different things.
4802840	4804760	You can have your internal Bluetooth radio.
4804800	4806700	If you've got a laptop, this is what
4806700	4808680	it looks like. It's the first one on the left.
4808920	4810480	We look at, currently,
4810480	4812620	the one that we're using is the Sena UD100.
4812620	4814160	It does a really good job for
4814160	4816140	decent distance Bluetooth.
4816380	4817920	And then we've got an Ubertooth One.
4817960	4820460	Ubertooth One is not a Bluetooth radio at all.
4820460	4822900	It's a 2.4 GHz spectrum analyzer.
4822900	4824600	But it does an amazing job
4824600	4826320	decoding Bluetooth data.
4826400	4828120	So when you start to pair these together
4828120	4830720	and use specific tools that give you
4830720	4832500	the ability to change these,
4832500	4834960	you get good data. Now, that being said,
4834960	4836600	that first radio,
4836600	4838600	who takes the radio
4838600	4840440	out of their laptop as soon as they buy it
4840440	4842680	and replaces it with something else that they buy online
4842680	4844300	because they've researched them?
4844780	4846560	Man, those new Intels,
4846560	4848500	and the answer is not which model. It's literally
4848500	4850260	all of them. Like, you can buy
4850260	4852420	new Intel WiFi chips for like
4852420	4854360	$30 usually on Amazon
4854360	4856460	or eBay. And you can get the latest
4856460	4858680	wireless card that everybody wants to support.
4858740	4861000	And they're really cheap.
4861000	4862520	Like, I remember buying $200
4862520	4864600	WiFi cards, and now I buy stacks
4864600	4866500	of $30 WiFi cards that are way
4866500	4867220	better.
4872140	4874360	Could you clear the door, sir?
4874360	4876280	You've got to keep the door clear for fire code.
4876280	4878480	Thank you, janitor. For those that have not been to
4878480	4880460	any con ever before, janitor is
4880460	4882400	usually the loudest voice in the room.
4882400	4884480	So the fact that I have 2400
4884480	4886260	watts to speak into...
4887100	4888700	Sorry. Yeah, you're a
4888700	4890920	delicate flower and so is Quad. Delicate flower,
4890920	4892600	yes, yes. Why don't the two of you
4892600	4894400	talk to each other? I think he's in Paris right now.
4894400	4896480	Just point and talk. So, I'm
4896480	4898640	going to jump over a couple slides
4898640	4900440	so we can come back to Bluetooth, but
4900440	4902380	is Iceman still here?
4902380	4905940	Is Iceman still here?
4905940	4906520	No.
4906520	4908740	No, he literally a second ago was here.
4910140	4911020	Nope.
4911360	4912760	No. Okay, we're not going to
4912760	4914780	jump. I was going to jump over to RFID, but I think
4914780	4916620	he walked out because we've been talking
4916620	4918660	too long. That's fine. Let's talk about mouse jacking.
4918820	4920400	Mouse jacking is funny as hell.
4920400	4922400	Who knows about mouse jacking or
4922400	4923740	lodge attacking?
4924220	4926600	Yep. No? Yes?
4926600	4928840	Some? Maybe? Okay, we're going to
4928840	4930540	give a little bit of teaching
4930540	4933240	here, not a lot, because we are talking about testing.
4933420	4934800	Mouse jack, they even have
4934960	4936640	a really cool logo. Thank you,
4936640	4939140	Castile. Cool logo.
4939200	4940620	There is a device that you can buy
4940620	4942640	called a Crazy PA Radio.
4943180	4944580	Crazy Radio PA.
4944580	4946780	Crazy Radio PA. Whatever.
4946780	4949140	If you Google it, you'll find it.
4949140	4950580	The Crazy Radio has
4950580	4952240	the ability to find
4952240	4954660	and inject into
4955400	4956480	Logitech, Dell,
4956480	4958480	Microsoft, and Amazon
4958480	4960480	wireless mouse and keyboards.
4960480	4962640	If somebody can come up off the top of their head
4962640	4964580	with another company that does wireless
4964580	4967500	mice and keyboards, I'd be happy to hear it.
4967880	4968580	Anyone?
4968580	4970520	It's pretty much every 2.4
4970520	4972520	gigahertz receiver.
4972520	4974420	They're encrypted receivers,
4974420	4977100	which is nice, because they're safe.
4977160	4978360	By the way, we gave this talk at
4978360	4980680	B-Sides DC, and Osaka was still running
4980680	4981980	her wireless mouse
4982580	4984660	and may or may not have had her laptop
4984660	4986360	rebooted during a CTF
4986360	4988400	while she's gabbing at the mouth over there
4988400	4990400	and not paying any attention yet again.
4990880	4992260	Hi, Osaka.
4993280	4994400	Wow.
4994440	4995860	It's funny, she's right in front of us.
4995860	4998160	She really is. Anyway, we tell
4998160	5000260	people this and they still don't listen. What I can
5000260	5002140	tell you 100% is
5002140	5003840	this attack
5003840	5006280	allows key injection,
5006280	5008900	code injection, redirection,
5008900	5009520	manipulation
5010260	5012100	into devices that are running
5012100	5014100	these mouse and keyboards.
5014540	5015960	For $20,
5015960	5018500	you can check to see if you're a problem
5018500	5020260	or anybody you work with is a problem
5020260	5022680	or anybody you're working for is a problem.
5022780	5024480	Forget $20. Who here follows
5024480	5026700	Mame82 on Twitter?
5027360	5028340	Yeah, I'm pretty sure
5028340	5030400	it's Mame82. And if you
5030400	5032720	follow this guy, he's come out with the Logitacker
5032720	5034200	attacks. He's been
5034200	5036180	teasing about it for weeks and just
5036180	5038160	really killing all of us.
5038160	5040220	He found a way to extract the keys
5040220	5042080	by plugging the receiver in.
5042080	5044440	He found a way to inject keystrokes
5044440	5046260	past the whitelisting feature of
5046260	5048120	the clickers. So clickers normally
5048120	5050200	can't have keys.
5050220	5052080	And he found a way to bypass that and actually
5052080	5054660	inject keys into the new clickers that have the protection.
5054660	5056040	He found ways to force
5056040	5057880	pair to the dongle
5057880	5060180	so even if you don't have the keys for
5060180	5062080	something that they're actually using, you can
5062080	5064700	add your own keys and use those.
5064700	5066080	I mean, literally every
5066080	5068320	way you could break it, dude found a
5068320	5070350	way to break it. And then he released
5070760	5072120	what's called the Logitech
5073320	5075320	unifying... Unifying dongle.
5075320	5076180	Unifying stuff. And he's got
5076180	5078300	another dongle of which he lists
5078460	5080560	a number that he likes that have a
5080560	5083160	newer chipset than the Crazy Radio PA.
5083160	5084400	And those are
5084400	5086240	as low as like $9
5086240	5088460	on Alibaba. So you just have to wait
5088460	5090440	six weeks to play with them. I was really
5090440	5092520	mad because mine showed up three hours
5092520	5094300	after my flight to Las Vegas.
5094300	5096660	But yeah, these things are really
5096660	5098900	awesome. The attacks are really legitimate.
5098900	5100300	We like this one because
5100300	5102920	it is supported by Kismet and it will
5102920	5104880	find all of the vulnerable devices.
5104880	5106980	The newer attacks do require the newer
5106980	5109060	dongles to run some of the stuff.
5109060	5110740	Not all of it. You can actually run some of the
5110740	5112720	attacks with the Crazy Radio.
5112720	5114880	But this one works with Kismet which means I can just walk
5114880	5116440	around and find vulnerable devices
5116440	5118700	or, you know, park in your parking lot
5118700	5121080	and find vulnerable devices and then go to town.
5121080	5123000	So funny story, I was working with a client
5123940	5124820	which obviously
5124820	5126320	is going to remain nameless.
5126800	5127760	They had
5128500	5131120	pretty decent security. They had
5131120	5132860	triple authentication. Somehow
5132860	5134740	I don't know how they did triple, but triple authentication
5134740	5136720	to the Amazon cloud. They were jumping
5136720	5138780	through VMs. They weren't working off their main
5138780	5140660	desktop. They were using VDI.
5140760	5142700	If you have a buzzword that exists
5142700	5144620	over at Black Hat, they were using it
5144620	5146720	to get into the Amazon cloud.
5147080	5148940	They were using GovCloud.
5148940	5150860	Even though they weren't a government agency, they were able
5150860	5152760	to get in. So literally
5152760	5155260	as secure as they could possibly be.
5155700	5156680	Well, except
5156680	5158940	for the fact that they were using a Logitech mouse
5158940	5160700	and keyboard to do all the work
5160700	5162920	that they were doing. From the parking
5162920	5164660	lot, and we measured because they
5164660	5167180	really wanted to know in the op brief how far it was,
5167180	5168920	it was 126
5168920	5170820	meters away from where
5170820	5172980	the keyboard and mouse were sitting.
5173240	5174800	The rated distance on
5174800	5176740	the Logitech mouse and keyboard is
5176740	5178220	10 meters.
5178460	5180440	I was injecting keystrokes
5180440	5182480	into their development cycle
5182480	5184420	into the Amazon cloud
5184420	5186280	from the parking lot
5186280	5188360	well over standard.
5188360	5190960	Wasn't it through three VMs?
5190960	5192440	Yeah, it was a ridiculous
5192440	5194300	set of connections. All kinds of dual
5194300	5196380	authentication. The basic
5196380	5198060	bottom line here is whatever
5198060	5200340	your mouse and keyboard have contacts with
5200340	5202380	on your screen is where this will
5202380	5204340	start injecting. So when I
5204340	5206260	pulled back my reverse shell,
5206260	5208320	my reverse shell was not within the
5208320	5210180	rules of engagement, was not within the client
5210180	5212220	site, was not even an IP
5212220	5214680	address I recognized. So I stopped everything,
5214680	5216360	called them up and said, hey, what's
5216360	5218360	this? And they're like, um,
5218940	5220560	um, that's
5220560	5222940	our cloud instance on our secure side.
5223020	5224220	Huh. So
5224220	5226340	just wanted to let you know, if you look
5226340	5228280	at the netstat on that box, you'll
5228280	5230340	see this IP address. And they're like,
5230340	5232480	yeah, what's that? I said,
5232480	5234360	okay, watch your screen for a second.
5234360	5236860	Click, click, click, click. Oh, shit.
5238080	5240520	So this attack, even though it's a localized
5240520	5242300	attack, is
5242300	5244440	mitigatable. You can actually do
5244580	5246420	a really good job of updating
5246420	5248640	the firmware and making a whole bunch of changes.
5248640	5250540	But this attack isn't just an RF
5250540	5252680	attack. This is bordering
5252680	5254480	and going across boundaries that
5254480	5256540	should not be crossed with RF.
5259100	5260220	Questions?
5262000	5262560	So
5262560	5264540	the guys at Simple
5264540	5266500	Wi-Fi, Wireless World,
5266500	5268860	and whatever else they're going to be going by this week,
5268860	5270320	Raul, who's an amazing
5270320	5272420	dude, created antennas a couple
5272420	5274540	years ago that we really, really like. It's a
5274540	5276620	12 dB, dual
5277220	5278520	polarized, four port
5279060	5280520	antenna that's dual band.
5280520	5283360	So it's 2.4 and 5 GHz dual polarized.
5283360	5285100	Four inputs.
5285100	5287180	I've never not been able to get
5287180	5289940	onto a client site with that antenna.
5289940	5291720	It's absolutely phenomenal.
5291720	5293420	But it gives you a lot of distance.
5293420	5295520	12 dB, so it's 12
5295520	5297120	dBi increase off of
5297120	5298800	this little radio because it's 2.4.
5298800	5300320	No, no, it's...
5300320	5302060	We call it the Ukrainian EasyPass
5302060	5304260	because that's pretty much what it looks like. It's just like
5304260	5306160	it's like this big and white.
5306700	5308200	We had one of those amplified log
5308200	5310220	periodics with like a pistol
5310220	5312240	grip. Would that have been convenient? That might have
5312240	5313800	been convenient. You know anybody that makes them?
5313840	5316180	I don't know anyone who makes them, but I think
5316180	5317560	Alex might. So
5318140	5320180	there's a lot of antennas you can use, but from that
5320180	5322300	distance I was able to hit it really clearly.
5322680	5324160	Really cleanly.
5324740	5326220	So, alright.
5326220	5328300	Software defined radio. So we've talked
5328300	5330660	about hardware defined radios.
5331440	5332240	Software defined
5332240	5334340	radios give you the ability to, if you
5334340	5337060	can program it, you are that radio.
5337120	5338660	So if I want to be a
5338660	5340840	133 MHz radio, I'm a 133
5340840	5342720	MHz radio. If I want to be
5342720	5344700	a repeater, I'm going to be a repeater.
5344700	5346840	If I want to be a GSM cell tower, I'm
5347080	5349020	going to break a billion laws, but I can
5349020	5351560	be a GSM cell repeater.
5351560	5353540	And there's all kinds of
5353540	5355140	YouTube videos on... Oh, what's
5354300	5356300	he doing?
5355140	5357000	Oh, okay.
5357000	5359060	On Raspberry Pi with
5359060	5361060	Blade RF becoming a cell
5361060	5363260	repeater. Software defined
5363260	5364860	radios are absolutely
5364860	5366980	amazing and game changing.
5367020	5369280	Years ago there was a discussion that we had
5369280	5371100	in Wireless Village that we talked about why
5371100	5373280	Bluetooth was not economical to break into
5373280	5375160	because to do the type
5375160	5377060	of work we needed to do, it
5377060	5378960	was way too expensive.
5379180	5381080	Well now we can break into anything with
5381080	5383320	an RF signature that is within the oscillating
5383320	5384500	power of that radio
5385480	5387320	just by making some GNU radio
5387320	5389680	blocks and making it do what we want it to do.
5390500	5391420	So, if you
5391420	5393480	guys look up front, up on this screen
5393480	5395480	that's been behind us the entire time.
5396040	5397500	Do you want to play with the knob?
5397760	5399960	Oh yeah, I want to play with the knob.
5399960	5401360	So, that is an
5401360	5403140	Edis I don't even know what
5403140	5405120	because none of us can afford it except for people
5405120	5407380	that are buying it with major... How much does that
5407380	5408200	cost?
5409780	5411180	How much does the Edis
5411180	5412180	cost?
5412960	5415280	To the muggles in the room, how much does
5415280	5417020	the Edis radio that we're using cost?
5417020	5418220	How much does this thing cost?
5419020	5421520	How much does this cost? Can I afford it?
5422680	5423560	$10,000.
5423560	5424780	So, that $10,000
5424780	5427000	software-defined radio...
5427000	5429120	He's a nice guy. Everybody clap for Nate
5429120	5430440	for letting us borrow this.
5430680	5432920	He even set it up to print our logo
5432920	5434600	in the screen. It's awesome.
5434660	5437040	That is pushing... Is it 200 MHz
5437040	5438060	of bandwidth?
5438060	5438800	What?
5439560	5442320	Oh, it's only 100 today? Oh, you cut it in half.
5442320	5444180	Nice man, you came back. Thank you.
5444180	5445500	We're almost there.
5445820	5448280	So, that is pushing across
5448280	5449880	100 MHz of bandwidth
5450480	5452100	simultaneously, allowing
5452100	5454020	us to see everything going on
5454020	5455960	in the space that that screen is showing
5455960	5456860	us.
5458440	5459780	If we wanted to
5459780	5461860	program that radio to then inject
5461860	5464140	into those streams using those protocols,
5464140	5465500	we can do that.
5465500	5467960	So, this can be a Wi-Fi radio,
5467960	5469280	this can be a Bluetooth radio,
5469340	5471940	a Zigbee radio, this can be all kinds of stuff.
5471940	5473560	Nate's going to play with his radio a little bit.
5473560	5474700	You want to show us Wi-Fi?
5475120	5476920	How about if you show us all of Wi-Fi?
5476920	5477940	Oh, you did already.
5478840	5481220	So, remember when we were talking about jamming Bluetooth?
5481720	5483400	Don't do it, but he could.
5483700	5484900	Please don't do it.
5485660	5487040	But we have the ability to get
5487040	5489620	all of that spectrum in one spot.
5489820	5491380	Software-defined radios,
5491380	5493600	even, I'll be honest, $10,000 is cheap
5493600	5495520	for what this is capable of doing.
5495520	5497460	Give us the ability to manipulate
5497460	5500300	RF in a way that we've never been able to in the past.
5500300	5501640	Yeah, I really can't stress it enough
5501640	5503880	that, like, most of these software-defined radios
5503880	5505660	we love, the answer is
5505660	5508180	only what makes sense for what you're doing.
5508180	5509520	Like I said earlier, we're using
5509520	5511900	the tiny little cheap Wi-Fi dongles
5511900	5513980	that don't go 25 feet
5513980	5515920	because we only need them to go 20 feet
5515920	5517320	and that was the best thing
5517320	5519380	for us, right?
5519660	5521540	Edis owns the entire
5521540	5523700	top end of the SDR market.
5523700	5525560	There is not a competitor, there is not anything
5525560	5527600	else you want to buy. They make
5527600	5529540	all of the good stuff. As far as I'm
5529540	5531580	concerned, I'm not you, you don't have to
5531580	5533640	worry, you're not going to get in trouble for this.
5533640	5535480	Edis makes all of the good shit.
5535480	5537560	Okay, I'll make him feel better. So there are other
5537560	5539940	companies out there that are spectrum analyzers
5539940	5541540	that do a really good job, like
5541540	5543440	in Ritsu and others, but they are not
5543440	5545520	software-defined radios and they do not do what this
5545520	5547060	stuff does. There, is that good?
5548620	5549640	And they go for
5549640	5551760	like $100,000. Edis
5551760	5554120	doesn't go for... I'm sorry, what are we calling you now?
5556480	5556960	Edis...
5556960	5557780	Edis...
5557780	5560020	Does that
5560020	5561580	sound familiar to anyone? Yeah, that sounds right.
5561580	5563640	The point is, if you have never done
5563640	5565420	software-defined radio stuff,
5565420	5568200	go over to the vendor area, buy a
5568200	5569740	$12 RTL-SDR.
5569740	5573600	So, that radio in the middle, the one that
5573600	5575180	says NexSmart,
5575180	5577520	I think. N-E, that's
5577520	5578180	Nolac, S-D-U-L-A-C
5578180	5580640	S-M-A, that's the connector.
5580640	5582540	R-T, that's the Realtek chipset.
5582540	5584220	They made a pun. They did,
5584220	5586260	they're punny. That goes for like
5586260	5587360	$15-$20.
5587760	5590060	It does not transmit, it receives
5590060	5592100	only. It receives from,
5592100	5593820	if I remember correctly,
5595160	5595980	$300 to
5595980	5598080	$1.1? No, I think it's like
5598080	5600480	$50 to $1.7.
5600480	5602220	They also have new ones, but the point
5602220	5604160	is, I have like 15 of them,
5604160	5606160	because they are cheap and they are great, and you can
5606160	5608180	always find an excuse to buy one more.
5608180	5610120	I only have the one Edis board.
5610560	5612440	If you burn it up, it's not a big deal.
5612440	5614700	You can test things, you can receive things.
5614840	5616380	Most of what we're talking about
5616380	5618720	that's not 2.4 or 5 GHz,
5618720	5620120	you can see with this. You can see
5620120	5622180	GSM, you can see ADSP,
5622180	5624220	you can see airplanes flying in the air,
5624220	5626200	you can see seafaring objects
5626200	5627960	going out into the water. You can decode
5627960	5630500	the P-25 radios the goons are using right now.
5630500	5631920	Yes, you can.
5631920	5634180	We tried to help them, too. Anyway,
5634180	5637020	moving on to the left is the Edis P-205.
5637080	5638100	That is another software
5638100	5640420	defined radio that we use very heavily.
5640600	5642520	It's about that big,
5642520	5643920	if you can see that.
5644080	5646200	Very small, easy portable,
5646200	5648480	extremely powerful, great fidelity.
5648480	5650300	But again, I don't know, what are they,
5650300	5651160	$700-$800
5652160	5653740	set more? Yeah.
5654080	5656140	One more time with
5656140	5657880	real fingers. Oh, nine,
5657880	5660620	eight, two, really two fours?
5661560	5662220	Here,
5662220	5664400	I think that was $11.
5664400	5665280	He said it was $11.
5665820	5668520	Buy them all now. I saw two fingers,
5668520	5670200	that's what I saw. So they're like $800.
5670480	5672120	Coming down from there,
5672120	5674040	you've got the Nuon Blade RF,
5674040	5675660	Blade RF Micro.
5675760	5678140	Does an amazing job for about
5678140	5679760	$500 or $600.
5679780	5682140	It does dual band, it does transmit
5682140	5684400	and receive, it has transceive capabilities.
5684980	5686720	It's another good radio.
5686720	5687980	Below that's the Hack RF.
5687980	5690280	It's about, what, $200, $300?
5690280	5692220	Hack RFs are a little less than $300,
5692220	5694800	and they have our favorite add-on on the planet,
5694800	5695800	which is the Portapak.
5695960	5698100	It's a software-defined radio with basically
5698460	5700240	a Game Boy on it, and you can
5700240	5702300	decode all kinds of things, you can send
5702300	5704660	all kinds of things. It's just a
5704660	5707120	really, really useful thing. Truthfully,
5707120	5708460	it is one of the lower end of
5708460	5710880	the software-defined radios. It's one of the older
5710880	5712400	models of software-defined radios,
5712400	5714500	but the usefulness of an add-on like
5714500	5716280	the Portapak is absolutely
5717100	5718280	groundbreakingly amazing still.
5718280	5720060	And of all of these, I mean, Nuon
5720060	5722520	and Great Scott Gadgets do an amazing
5722520	5724640	job working with the open-source community.
5725000	5726360	Thank God we know the guys
5726360	5728080	that we know at Edist, because they work amazing
5728080	5729960	with the open-source community, too.
5729960	5731700	They happen to all be standing over there.
5732080	5734280	But, if they're in a green shirt, say hi
5734280	5736400	to them. Hi, guys.
5738840	5740280	You've got to find something that's
5740280	5742260	not only supportive, but also
5742260	5744200	easy to use, and has the drivers
5744200	5746180	that you want to work with. So, depending
5746180	5748820	on your need, all three of those might be good.
5748820	5750240	Some of the work we do, we have
5750240	5752360	no problem using yardsticks and other
5752360	5754220	devices that work for
5754220	5756260	specific frequencies. If you're trying to
5756260	5758300	scan this much data, then you're
5758300	5760200	looking at a much different
5760200	5761360	form factor, much different
5762080	5764340	product. I'm going
5764340	5766500	to jump over the next one real quick,
5766500	5768660	because I really want to talk about these.
5768660	5770420	And we're going to talk about some RFID stuff.
5770480	5772300	Here you go. You can talk.
5772300	5774100	Who has a badge at work
5774100	5775840	Don't raise your hand if you don't feel like it.
5775840	5777920	That lets you into the building you're going into.
5777920	5779360	It's pretty common, right?
5779460	5782160	Most of them have these three weird letters on them.
5782160	5784020	H, then I, then D.
5784840	5786160	So, HID has some
5786160	5788140	very strict rules on
5788140	5790040	what we can talk about out loud, versus
5790040	5791940	what we can't talk about out loud.
5791960	5794180	So, we'll be happy to talk to you about things
5794180	5795920	that can be done. But,
5795920	5798040	there's a really cool tool called Approxmark
5798040	5800200	3. There's a branch
5800200	5802160	of development called the Iceman
5802160	5803720	branch, which has been
5803720	5805860	just completely abominated
5805860	5807900	and gotten rid of.
5807960	5810260	And now there's an Iceman RRG,
5810260	5811680	correct? Oh, yeah.
5811680	5814180	Well, guys, this is Iceman.
5814180	5815280	Say hi, Iceman.
5815840	5817980	Hi! So, we figured
5817980	5820120	we would bring up our Swedish friend to
5820120	5821800	help us with this talk, because
5821800	5824300	when it comes to dealing with RFID stuff,
5824300	5826040	this is the guy that's writing the software that you
5826040	5827460	hate right now.
5828200	5829140	For sure.
5829140	5831360	What are some thoughts you have on
5832060	5833640	product testing,
5833640	5835420	software testing... I'm doing a panel
5835420	5836780	of one. This is really fun.
5837120	5839180	Product testing and product development
5839180	5841200	when it comes to RFID,
5841200	5843100	as well as access control.
5843360	5845000	Oh. Wow.
5845000	5846460	You weren't prepared for that one, were you?
5846460	5848020	No, no. I wasn't prepared for that one.
5848140	5850880	What I think about that would say that
5850880	5853040	people who are doing that, those
5853040	5856060	companies are doing it quite well,
5856060	5857200	but they do not have
5857400	5858740	a hacker mindset.
5858740	5861860	They don't see it in a
5861860	5864780	cloner's way of wanting to do it.
5864780	5865980	So they would
5865980	5868100	like to say that, oh, we have a safe
5868100	5869880	cryptology, and they
5869880	5871900	build up the readers and
5871900	5877100	source for it, and then they will have
5877100	5877640	someone to
5877640	5878280	try to
5878280	5880100	hack with crypto, and oh no,
5880100	5881840	we use AS, we use
5881840	5883680	triple DES, and that's safe.
5883680	5885120	And they all feel good about it.
5885120	5886800	And then comes little people around
5886800	5888880	and goes like, oh yeah, I put your
5888880	5890960	reader in acetone, and I melted out
5890960	5892760	the PCB, and I extracted
5892760	5894180	the firmware from your
5894920	5897100	PIC, and then we decompiled
5897100	5898820	that, and we analyzed that, and we
5898820	5901360	found all your key generation algorithms,
5901720	5902820	and then we took
5902820	5904620	that idea and implemented it in the
5904620	5906780	Proxmox source code, and
5906780	5909160	boom goes your cards.
5909680	5911360	They don't think like that.
5911860	5913560	And that's what I think about that.
5913560	5916000	So, the Proxmox
5916000	5917660	is pretty much, if you're doing
5917660	5919740	this professionally, the defacto standard
5919740	5921180	device that you're going to buy
5921180	5923820	to start doing this testing. It handles
5923820	5926160	most devices pretty well.
5926260	5927400	It does
5927400	5930380	receive and transmit pretty well.
5930380	5931760	It's got a really
5931760	5933640	cool new sexy super,
5933640	5935400	which I still need one, Bluetooth
5935400	5937600	add-on with a battery that allows us to go in your
5937600	5940520	pocket and pick up stuff in an elevator,
5940520	5941800	and being realistic, what,
5941800	5944100	from three to five inches?
5944120	5944700	Oh, yeah.
5945700	5947640	Imperial system, we got that.
5948440	5949400	I'm sorry.
5949740	5951920	17 to 20 centimeters?
5951920	5953740	Oh, no. Now, let's see.
5953740	5956560	With a large antenna, you would go 14 centimeters.
5956560	5957340	14? Okay.
5957340	5959200	So I think I was within that superset.
5959600	5961760	Yeah, you have better antennas, I guess.
5962880	5963740	That's not the
5963740	5965760	biggest issue, because if you
5966540	5967760	see it as a part of
5967760	5969720	things, if you... other people
5969720	5971620	who do RFID hacking used to
5971620	5973840	combine things, so hardware hackers
5973840	5975820	combine things with other hardware and make
5975820	5977760	something even more worse,
5977760	5979700	or more effective. So we take
5979700	5981700	one of those HID readers you see
5981700	5984060	there, and we put a
5984060	5986320	Proxmark in behind of it, so
5986320	5988860	all of a sudden we're reading. Because these companies
5988860	5991080	who do these products does a really good
5991080	5992560	well of making a coupling and antenna
5992700	5995040	design, so we have a really long reading range,
5995040	5997740	because that's in the natural
5995720	5997720	habitat of their systems
5997740	5999700	should do. But if a weaponizer
5999700	6001660	has a Proxmark in the behind of it,
6001660	6003680	you do that, and
6003680	6005620	you give a possibility of a Proxmark even
6005620	6007620	further, which makes it kind of
6007620	6009860	nasty. So that HID reader
6009860	6011700	isn't the one you're used to seeing.
6011700	6013840	It's about this size, and it's what you typically
6013840	6015560	see when you're going through like a parking
6015560	6017580	garage, or an easy
6017580	6019420	pass, or something like that. It's a big
6019420	6022220	energizing unit. If you ever open one of those up,
6022220	6023740	there's like, I don't even, I've
6023740	6025360	never actually measured it, but I'm thinking like
6025360	6027200	40 feet of copper wrapped
6027200	6029240	around that thing, with a decent
6029240	6031160	power supply that enables
6031160	6033540	that RFID card to get
6033540	6035520	energized, and hand
6035520	6037360	out it's Wigan data, which is these ones and
6037360	6039360	zeros that make it all work, which is
6039520	6041160	a different talk that's going to happen tomorrow
6041160	6043260	by Babic, talking about how that Wigan
6043260	6045500	data actually gets translated. But
6045500	6047780	when you take something like the Prox,
6047780	6049440	or the ESP keys,
6049440	6051780	or something behind that big reader,
6051780	6053400	again, we're getting into antennas
6053400	6056120	now. If you're testing your equipment,
6056120	6057360	if I only need to be this
6057360	6058860	far from zero,
6060100	6061260	that's fine.
6061340	6063300	But if I need to be from me to Iceman,
6063300	6065720	I need something that's going to give me that distance.
6065720	6067360	The tool itself might do
6067360	6069460	the hardware or the work you need,
6069460	6071380	but it may not have that reach that you need.
6071380	6073960	So again, when you're getting into testing,
6073960	6076220	you need to verify your distances,
6076220	6077420	and if you're
6077420	6079540	doing a pen test, or you're trying to steal credentials,
6079540	6081440	or if you're just a really bad guy and you're here to learn how to
6081440	6083520	break into buildings, if you can get
6083520	6085460	onto an elevator and get all the credentials
6085460	6087520	in the elevator, versus walking
6087520	6090100	into the elevator, and I've done this, unfortunately,
6090100	6091500	and walk up to each person...
6091500	6093560	Oh, excuse me. Oh, oh, excuse me.
6093560	6095120	Oh, sorry. Let me stand over...
6095120	6097120	No, I must stand over here. Okay.
6097120	6099500	Now I've hit everybody, but I look like an absolute
6099500	6101520	fool, and it makes you look
6101520	6103880	like, you know, you start to become a little more obvious.
6103880	6105460	Versus sitting there with that big reader
6105460	6107880	inside of a backpack or a side satchel,
6107880	6109260	which is the typical
6109260	6111980	Tiger Team way of doing it, with a satchel,
6111980	6113280	to get that data.
6113360	6116140	European carry-all, not a perk.
6116140	6117700	Isn't it a fanny pack?
6118340	6119440	It's a fanny pack.
6119440	6121200	C'est très bien, ma mère.
6121780	6123280	It's very beautiful.
6123280	6125740	Hey, Babik. Come here.
6126480	6127540	So, the other
6127540	6129500	person that we were going to bring up on stage
6129500	6131320	for RFID, and I think they went to dinner,
6131320	6133060	because, you know, they've been working like 600
6133060	6134900	hours straight in all this.
6137300	6138160	I'm here, bro.
6138160	6140640	Give him a round of applause.
6143980	6146140	So, I'm going to be honest about this,
6146140	6148500	and I said this the other night, and I'll repeat it again.
6148560	6150900	When it comes to RFID work,
6150900	6151960	the world would end
6151960	6154340	if this stage collapsed right now.
6154640	6155920	Or that half of it collapsed.
6155920	6156880	Right, right, that half.
6158400	6160080	You've got the developer of the tool
6160080	6162200	that almost everybody uses, and one of the
6162200	6164040	best operators
6164040	6166680	and instructors in the business of RFID,
6166680	6168960	when you put those two together,
6168960	6170780	this is why we do testing,
6170780	6172720	because we're trying to beat, as the good
6172720	6174580	guy, them from breaking
6174580	6176800	into our shit. If we're the bad guy
6176800	6178760	or being the adversary or putting on the hat of being
6178760	6180680	the adversary, we're using
6180680	6182780	standing on their shoulders to do the shit
6182780	6185060	that we're trying to do. Can I add on?
6185060	6186840	Yeah, go ahead. I brought you on stage
6186840	6188600	for a reason. So, spoiler,
6188600	6190480	I don't do testing for
6191660	6192840	the... I have
6192960	6194760	a philosophy thing that I rant on sometimes,
6194760	6196480	but I'm going to keep it really short. Go ahead and rant.
6196480	6199020	It's okay. This is a two-hour talk. They've got time.
6199020	6200640	In my opinion, DEF CON
6200640	6203100	is not a security conference.
6203100	6204860	This is a hacker conference.
6204960	6206560	We hack because it's fucking fun
6206560	6207940	and it's fucking cool.
6208620	6210740	If we can do it in a way that
6210740	6213040	doesn't harm and creates good,
6213040	6214540	then that's really wonderful,
6214540	6217200	but I don't do it for that. I do it for the hack.
6217200	6218480	Right? That's why
6218480	6219640	I really enjoy it.
6220600	6221520	I do it
6222740	6223460	because... for the sake
6223460	6225560	of the hack, for the love of the hack. If I can
6225560	6227760	do it in a way that benefits security in a
6227760	6229900	positive way, then that's really wonderful,
6230480	6231620	but I found
6231620	6234240	years ago that if I focused...
6235920	6236540	It's a
6236540	6237860	little white lie that we came up
6237860	6239640	with. That's okay. This is the fifth soapbox
6239640	6241680	of the night, so this is awesome. It's a little white lie
6241680	6244480	that we came up with to make
6244480	6245760	it easier to talk to other people
6245760	6248140	who don't get us. Like, oh my god, why do you
6248140	6249400	do that stuff? Why are you on computers? Why are you
6249400	6251420	picking locks? And just to get
6251420	6253140	them to shut up, you're like, oh, it's
6253140	6255500	for security. We find security problems, and that's
6255500	6257600	why I do it. No, you do it because it's fun.
6258300	6259420	Like, they don't get
6259420	6261520	it. They don't get it, but you do it
6261520	6263180	because it's fun.
6263400	6264000	Right?
6268380	6269180	So that's
6269180	6270760	it. I wasn't going to
6270760	6272840	speak for you, but that's pretty much what we've been saying
6272840	6274760	all night. I enjoy it because it's
6274760	6276580	fun. I enjoy teaching.
6276680	6278700	I enjoy the process of learning that
6278700	6280720	that moment where things
6280720	6282660	begin to click in your brain is really
6282660	6284640	addictive. So I like to
6284640	6286600	inspire that and create that as much as
6286600	6288320	possible for other people.
6288680	6290680	And that's one of the reasons why we've trained
6290680	6292580	for so many years is because I like doing that
6292580	6294360	and if I can get paid to do it, then
6294820	6296260	yay, right?
6296980	6298460	But yeah, that's it.
6298520	6300260	So when it comes to...
6300260	6302640	I don't do this for security. Security is a byproduct.
6302640	6304580	I do it for the hack. So we'll get back to
6304580	6306420	real then. So when you're breaking shit
6306420	6308460	and you're doing
6308460	6310640	your testing, what process
6310640	6312640	do you use? Same question
6312640	6314580	I posed to Iceman. What process do you
6314580	6316740	use to test that this is better than that
6316740	6318600	and I make this new hardware and this
6318600	6321120	is better than that? What am I testing?
6321420	6322800	Breaking into a
6322800	6324740	building. RFID testing. Okay.
6324740	6326700	And so the question is, how do I know
6326700	6328660	what type of platform is better?
6328660	6331600	What is your process on testing?
6331600	6332660	Oh, shit. I don't
6332660	6334320	want to buy just because somebody
6334320	6336520	said to buy it. I'm going to buy three or four
6336520	6338140	and test them and see which one works best.
6338140	6339180	Oh, I look for
6341980	6342340	little
6343180	6344540	hallmarks of how something
6344540	6346080	might be designed, right?
6346360	6348320	Like, for example, if I'm
6349840	6350520	comparing... if I'm
6350520	6352400	looking for a box to
6352400	6354260	put stuff in, right? I'm like, man, I need something
6354260	6356700	to carry things around. I need to buy a box.
6356700	6358800	How do I know? I don't know a lot about boxes.
6358800	6360680	How do I know if one is better than another?
6360880	6362360	I'm going to grab
6362540	6364500	a box and I'm going to start looking at it.
6364520	6366240	And I'm going to be like, oh, interesting.
6366240	6368400	How do they attach the sides
6368400	6370700	together? Oh, look, they used adhesive.
6371100	6372520	Well, they probably did it this way
6372520	6373860	because it's a little bit cheaper.
6374000	6375740	And this looks kind of sloppy.
6375960	6378980	So, like, they made a box, but they don't care about boxes.
6379280	6379880	Right?
6380060	6382180	So now I haven't... I don't know
6382180	6384240	everything that went into it, but I have an
6384240	6386440	idea of the design intent, right?
6386480	6388980	But I might look at something else and I go,
6388980	6390360	like, oh, man,
6390360	6392040	look at this. This edge is rounded
6392500	6394400	and they, like, did this thing over
6394400	6396340	here that's so interesting. Like, look at
6396340	6398000	all the extra work they went through
6398000	6400440	on stuff that doesn't matter to anyone
6400440	6402340	else. That tells me that this is
6402500	6404240	a passionate design and engineering
6404240	6406500	team and there was a lot more thought behind
6406500	6408360	it. And I applied that same basic
6408360	6410400	idea... I don't know what he's looking
6410400	6412400	at anymore. Oh, I applied
6412400	6413820	that same basic idea to
6414380	6416080	evaluating things for security. So
6416080	6418220	I don't have to understand how everything
6418220	6420100	is designed. I pick the things that I do
6420100	6422240	understand and that I can compare to
6422240	6424240	other things and I go, okay, how well did you
6424240	6426240	do this thing? And
6426940	6428300	that, while it's not
6428300	6430200	100%, there is
6430200	6432140	generally a correlation.
6432460	6434360	People who care about one part
6434540	6436260	a lot tend to care about all the
6436260	6438200	other parts as well. Because you don't make something
6438200	6440700	beautiful and then put it inside something ugly.
6440900	6442140	Like, you want the whole
6442140	6444220	thing to be really holistic and
6444220	6446360	work well together. I don't know if that's a good
6446360	6447340	answer. No, that's great.
6447740	6450380	Because, frankly, a lot of us
6450380	6452300	buy a lot of stuff because people say, hey, go
6452300	6454280	buy this. But if you don't have
6454420	6456280	a methodology or a process, whether
6456280	6458060	it's good or bad, it's your process
6458060	6460320	to test what it is you're trying to
6460320	6463060	fix or test what it is you're trying to break,
6463060	6464340	you're just throwing
6464340	6466460	shit at the wall until it sticks.
6466740	6468200	I would love it if this industry
6468200	6469560	started to actually
6471180	6472520	take on the corporate
6472520	6474020	mindset of just this,
6474020	6476720	I promise I'm not going to say corporate mindset,
6476720	6477980	but of having
6478240	6480180	a way of doing things that repeats
6480180	6482300	so that you know that you're not wasting
6482300	6484060	your time when you're doing your research.
6484060	6486020	Oh, this radio sucks. Oh, wait a minute,
6486020	6488060	I'm not using the right driver, the right kernel, or
6488060	6489700	the right tool.
6490500	6492000	Versus, oh shit, this
6492000	6494140	works really well because I'm doing what I need to do.
6494240	6495800	I'm going to give you a for instance.
6495800	6498120	Go ahead. For instance,
6498120	6500020	I was looking at recently
6500440	6501200	Cookies?
6501600	6502000	A
6503580	6505360	physical token management
6506120	6506920	device.
6507620	6509380	Commonly referred to as a key box.
6509380	6511380	I was about to say, can you be a little more English?
6511380	6512040	Yes, yes.
6512100	6514860	I was looking at a key box
6514860	6517560	and I'm like, okay, how do they set this up?
6517920	6519080	How do I know
6519080	6521080	how much thought and effort went
6521080	6523360	into the overall architecture
6523360	6525080	behind everything, all the guts
6525080	6527500	inside? And I start looking at the instructions
6528460	6528860	and
6528860	6530820	within the first three pages
6530820	6533140	it's talking about how
6533820	6535000	you need to know how to
6535000	6536800	use Telnet because everything is configured
6536800	6538220	using Telnet.
6539940	6540760	And so that
6540760	6543080	for me was kind of a
6543080	6544860	red flag because
6545740	6547100	Telnet as a basis for
6547580	6550060	configuring a security device,
6550960	6551080	is that
6551080	6553740	a good best practice?
6553740	6555880	Is that what you start with?
6555880	6557020	No. Thank you, Ross.
6557020	6558280	So the fact that
6558280	6561440	even before I looked at anything else,
6561440	6562980	the fact that they started with that
6562980	6564760	was a red flag to me. I knew
6564760	6566840	that immediately my
6566840	6568820	level of trust for that product has
6568820	6570280	gone down.
6570580	6572940	I was doing an evaluation for something completely
6572940	6575100	different at another project.
6575140	6576540	There was some,
6576540	6578820	there was a physical locking device
6578820	6581160	that had an electronic element to it
6581160	6583100	and they were talking about how wonderful
6583100	6585380	and secure it was. They were really, really proud of it
6585380	6587180	and how it revoked
6587180	6589160	credentials and how if someone lost
6589160	6591340	the fob, then it would die after a certain
6591340	6593340	amount of time. And we started looking
6593340	6595420	at the communication between this very special
6595420	6597400	fob and some
6597400	6599380	thing that it talked to. And I have to be
6599380	6601280	vague, unfortunately. I apologize.
6601660	6603460	And immediately it was
6604000	6604960	unencrypted serial
6604960	6607520	with no
6607520	6609380	replay protection. You sound
6609380	6611340	very security-minded right now and not
6611340	6613240	hacker-minded. How would you break that?
6616100	6617320	How would you break
6617320	6619380	into that? Let's break into
6619380	6621380	that device that you saw that you thought was really
6621380	6622120	cool.
6623500	6625400	Which device? I don't know. The one
6625400	6627680	with serial and unencrypted
6627680	6629360	reads. What would you do
6629360	6631480	to break that? Because this is all part of our testing
6631480	6632920	as a security hacker.
6633440	6635060	Wow, we're now security hackers.
6635060	6636200	I just made that up.
6636200	6639560	I would start recording
6639560	6641400	things and playing them back and see what
6641400	6643380	happens. That's it. You just start
6644000	6645560	trying things. Most of the stuff
6645560	6646360	that I do is
6647300	6649680	just seeing what sticks. It's the same stuff that you guys
6649680	6651480	do. There's no special sauce.
6651480	6653180	I can't stress that enough.
6653260	6655500	The whole lot of us are up here and we're clearly
6655680	6657860	a bunch of incompetent jackasses.
6657960	6659660	Yet, for some reason, people look up to us
6659660	6661340	and the reason is because we decided
6661340	6663460	we don't know what to do. I'm just going to start
6663460	6665380	trying shit. And that's
6665380	6667560	literally the entire thing about being
6667740	6669640	a hacker. You can't get distracted
6669640	6671600	by the fact that you have no clue what you're doing.
6671600	6673580	You just need to start grabbing data that you
6673580	6675900	can read and replaying it to see what happens.
6675900	6677720	I didn't hack a security system
6677720	6679720	at my office. I replayed
6679720	6681520	the packets that I captured in the air
6681520	6683560	and made a light blink. I
6683560	6685700	am a monkey. I am a very
6685700	6687620	easily entertained monkey and that
6687620	6689440	was fun. It happened
6689440	6691460	to break the security system but
6691460	6693560	I did it for the blinking light
6693560	6695700	and that's what's important. You gotta
6695700	6697640	just do it. Just jump in
6697640	6699620	and have fun and learn.
6700240	6701520	Yeah, I wanted to just
6701520	6702800	flick in, you know.
6703340	6705220	Wow, you got...
6705220	6708020	My soapbox is the best soapbox.
6708900	6709460	Well,
6709460	6711520	I come from the land of IKEA, so
6711520	6713600	when you're assembling things, it's like
6713600	6715260	everything is one page.
6715260	6717640	65 pages and some little pieces
6717640	6719380	of wood. And then a picture of saying
6719380	6720740	you're missing or something.
6721020	6723400	But it comes down to hacking things
6723400	6725300	and the mindset of solving
6725300	6727360	bugs or finding a bug. I can just
6727360	6729400	mention as a quick anecdote
6730660	6731180	that...
6731180	6733700	You know about the Mifer Darkside
6733700	6734460	attack?
6735520	6737300	You know that one where you
6737300	6738420	find the key for
6739660	6741640	Mifer Classic cards?
6742120	6743360	Called Darkside?
6743360	6744460	Okay, whatever.
6745080	6747100	No, if you know the Darkside attack.
6747960	6749460	The Darkside attack.
6749460	6751440	Does anybody know the Darkside attack? I will be
6751440	6753600	the interpreter. Yep, let's
6753600	6755200	try another. Use your British accent.
6755200	6757140	When most people talk about cracking
6757140	6759200	the Mifer key, they're actually referring to
6759200	6761480	the Darkside attack. It refers to a very specific
6761480	6762940	type of brute forcing.
6763000	6764920	It was the original oldest attack.
6764920	6766840	It was kind of a big fucking deal when it came out.
6766840	6768300	About 10 years ago.
6768760	6770440	We have RFID.
6770440	6772820	There is a box of cookies between them too.
6772820	6775000	Come to the Darkside, we have cookies.
6775040	6776100	Yes, we do.
6776520	6778940	And the thing is,
6778940	6781320	on the box market,
6781320	6782740	it triggered...
6782740	6784480	You could run an attack,
6784480	6786320	it's in two parts.
6786320	6788520	You have a nonce collecting part
6788520	6790640	on the device, and then you have an offline
6790640	6792660	brute force attack on the client.
6793260	6794940	And somewhere, sometimes,
6794940	6796380	there was a problem on the device
6796380	6798320	when you're trying to collect the right nonces
6798320	6800040	and trigger the knack bug,
6800040	6802680	and it reset the device.
6802680	6804660	You trigger the VTF,
6804660	6806220	the watchdog trigger, and it goes like...
6806740	6808640	all the time. So people were running an attack
6808640	6810100	and it was like...
6810100	6810800	And people were going,
6810800	6813960	I can't hack that key,
6813960	6816080	I can't crack it, I can't run my
6816080	6817440	scripts, whatever.
6818500	6820040	So we've hit just about
6820040	6821680	every device type
6821680	6823960	that we're talking about, and we finished
6823960	6825760	each one with...
6825760	6827680	What questions do you guys have?
6827680	6830300	If you have specific questions about this,
6830300	6832160	and I'm cutting it because I'm a little bit
6832160	6833980	worried about your guys' time, I really don't care that much
6833980	6835700	because we can keep this place open all night.
6836040	6837920	But what questions do you have
6837920	6840260	about RFID hacking and testing
6840260	6840980	that
6841800	6844520	basically the heads of state can answer for you?
6848600	6851160	The question is, how easy is it to replicate
6851160	6852440	RFID?
6853000	6854660	Very easy.
6855640	6856240	laughter
6857640	6859240	That is an incomplete
6859240	6860480	answer.
6862540	6863140	Homework
6863140	6864360	and stuff. So
6864920	6866840	RFID really just refers to
6867080	6868620	a couple of things. It refers to
6868620	6870500	the idea of
6870500	6872720	using a very specific
6872720	6874080	physical kind of token
6874500	6876660	that traditionally uses coils
6876660	6877700	for communication
6878440	6880600	as a means of identification.
6880600	6882460	That's it, right? But there is
6883140	6884640	a billion and one ways that you
6884640	6886940	can create such a platform.
6886940	6888700	So the second
6888700	6889960	part of that answer is
6889960	6892940	it depends on what type of RFID
6892940	6894180	you're talking about
6894180	6897100	and how that system was designed.
6897100	6899440	The most popular one in the world
6899440	6901040	which is currently
6901040	6903040	referred to as HIDprox
6904000	6904820	that is
6904820	6906980	extremely easy because of the tools
6906980	6908480	that exist today.
6909060	6909400	But
6916510	6918590	is it one swipe for accessing
6918590	6919670	doors?
6921990	6923190	Right?
6926760	6929120	Yeah, you're asking me
6929120	6931500	about credentials that you use to get through a door.
6931540	6933120	Right, but there's many different
6933120	6935140	kinds of those credentials is what I'm talking
6935140	6936440	about. So
6936980	6939440	it is... I can understand
6939440	6941020	why how easy is it to clone
6941020	6943900	RFID sounds like a very simple question.
6944140	6945320	And on its face
6945320	6946880	it is, but
6946880	6949160	it doesn't cover
6949160	6951160	all the different possibilities. If you were
6951160	6953320	to ask me how easy is it to clone a
6953320	6956120	prox card, I would say very, very easy.
6956120	6957780	But if you were to ask me
6957780	6959720	how easy is it to clone a
6959720	6961320	Desfire Evolution 2 credential,
6961320	6962420	I would say
6963260	6965060	I don't know of any publicly known
6965060	6967120	defeat. If you have a method for
6967120	6969160	doing so, let me know because I have some people
6969160	6970980	who will pay you lots and lots of dollars
6971480	6973000	to learn that method. So you
6973000	6975720	haven't heard about the attack against them yet, have you?
6975800	6977320	It's called a sledgehammer on the
6977320	6978840	window. Oh yes.
6979800	6981000	Yeah, there you go.
6982020	6983260	Another thing about this major
6983840	6985380	RFID brands, people know about
6985380	6987300	HID or MyFair, it's the two
6987300	6989340	largest. But we have
6989440	6991380	a list on the forum, I think it's an Excel
6991380	6992440	sheet of
6993060	6995400	all the brands and different kinds of tags
6995400	6996680	that's out there in RFID
6997200	6999300	and that list is about 4,000
6999300	7001140	items. So
7001140	7003480	we cover about 20 to 30
7003480	7004780	of them in the Proxmod
7005340	7006660	source code.
7007120	7009580	But there's a lot of
7009580	7011600	different systems out there.
7012140	7012220	And
7013240	7015440	many of them haven't been researched.
7016000	7016840	Many of them,
7016840	7018900	not anyone has been looking into it.
7018900	7020960	That's why the future of SDR is
7020960	7022880	for this ultra-high frequency cards
7022880	7024720	and tags because there's no really
7024720	7026960	genuine interesting research
7026960	7028740	going on onto it because there's
7028740	7030140	no tool for it.
7030760	7032240	And that's something to look forward to.
7032240	7034700	The future of hacking is people like you
7034700	7036160	listen to this and go like, oh yeah,
7036160	7039180	nobody did this yet. Interesting.
7040380	7041000	Was there
7041000	7043000	one more question? We're going to take one more RFID
7043000	7044740	and then we're going to move on.
7044740	7046760	And I'm only moving on because I know
7046760	7048800	the Encore guys are like, I think they're falling
7048800	7050560	asleep because they've been here longer than they should be.
7050560	7051540	Yeah, go ahead.
7062510	7064690	Repeat the question. The question
7064690	7066790	was if I want to learn more about RFID
7066790	7068890	when I go home, what's a
7068890	7070890	good place to start?
7070890	7073050	I'll tell you where I started. I don't know if it's
7073050	7076630	the best place. It's a place.
7076630	7076890	I started
7076890	7078970	at the Proxmod forums.
7078970	7079350	Me too.
7079350	7080990	Like many
7082050	7083550	hacker forums,
7084430	7085570	the signal to noise ratio
7086730	7087630	is less
7087630	7089170	than ideal, but
7089170	7091510	if you are willing to put in the hours
7091510	7093510	and the time, the information
7093510	7095550	is there. Your two best
7095550	7097430	friends are the forums
7097430	7099470	and eBay. So
7099470	7101410	if you're like, cool,
7101410	7104990	I don't know what that post is talking about,
7104990	7105250	this
7105250	7107410	Prox or Indala reader.
7107410	7109490	I've never seen that. It looks easy.
7109490	7111450	I wonder if it's easy. You know how you can
7111450	7113510	do it without screwing with a real building? You go on
7113510	7115370	eBay, you type in Indala, and you start buying
7115370	7117370	some stuff. And it'll take
7117370	7119410	some time and a few more dollars, but you will
7119410	7121790	get there. That's how most of us started.
7122190	7123350	And it will take a little bit
7123350	7125790	of a longer time, but that's your best shot.
7125890	7127430	Hey, real quick, let me jump in
7127430	7129270	here. At this point,
7129270	7131550	we're going to cut the recording, but because
7131550	7133350	we run the village, we can keep it open as late
7133350	7135310	as we want, and we'll just ask the goons to be
7135310	7137630	really kind to us and not lock the doors yet.
7137810	7139290	We're going to cut the recording. We're
7139290	7141230	not leaving. We'll answer a billion
7141230	7143430	questions. We're still going to talk about Hammond, Zigbee,
7143430	7145290	and a couple other things. If you want
7145290	7147670	to stay, awesome. If you want to go,
7147670	7148830	feel free as well.
7149150	7151230	We're going to keep going, but we're going to cut
7151230	7153290	the recording at this point, so if you want
7153290	7155290	to take notes, take better notes. Is that
7155290	7157250	cool? All right.
7157550	7159410	Thank you. Any more questions?
7162240	7162860	Come on, guys.
7162860	7164800	You all have access control
7164800	7166860	somewhere. Some of you have
7166860	7168840	questions about something. Maybe
7168840	7171020	they don't. They might not.
7171280	7173080	Maybe they don't have the right tools.
7173080	7174860	I have a question. If I
7174860	7176760	was trying to set up an access
7176760	7178900	control system that made
7178900	7181200	sense for my organization,
7181200	7182940	what would I do to test it
7182940	7184960	against what could
7184960	7186400	possibly happen?
7188160	7188880	That's a good
7188880	7190440	question. I know.
7190840	7192940	I came up with it. You just made it
7192940	7194880	up, did you? Yeah, you're right.
7194880	7196020	You've done this before.
7196700	7198300	Let's see. The question was...
7198300	7201120	I just said the question. We're good.
7202080	7202940	Yeah.
7202940	7203600	All right.
7204720	7205200	You
7206840	7208720	think, and I'll start
7208720	7210520	doing some talking.
7212980	7213460	That...
7215440	7216280	How do you feel
7216280	7217360	about this?
7218160	7220080	They're Argentinian cookies. They're really good.
7220080	7221520	They're really good. They're alfajores.
7221520	7222280	They're really good.
7223140	7225840	The testing piece is a difficult one.
7225840	7227600	It's one that everyone is curious
7227600	7228420	about.
7229120	7231560	The first thing is...
7232000	7233480	How much do you understand
7233480	7235500	about how that system is designed?
7235560	7235980	Right?
7238360	7239760	It's good, right?
7239760	7241220	One of the things that we teach
7241220	7243640	is how every component works
7243640	7245400	and how they're all connected. That's one of the things
7245400	7247060	that I'm going to be talking about tomorrow.
7247480	7249720	This will be an easier question to answer
7249720	7251960	tomorrow if you come to my talk
7251960	7253860	at 4pm. I'm going to give
7253860	7255540	you a very abridged,
7255540	7257920	but I feel somewhat comprehensive, overview
7257920	7259840	of how a modern access
7259840	7262220	control system is designed and installed.
7262240	7263880	But you're going to... the short answer
7263880	7265900	is you're going to take a look at every link
7265900	7267780	in the chain. From the point that you
7267780	7269760	have your card, you start
7269760	7271780	with the card and say, okay, what kind of credential
7271780	7274220	is that? What is the means of communication
7274220	7275960	and authentication to the reader?
7276000	7277800	Once the reader gets that information, what
7277800	7279840	happens? Does the reader send it into
7279840	7281980	Clear? Does it send it encrypted?
7282120	7283940	Where does it go? Okay, it goes to this
7283940	7285800	little door controller. That's what
7285800	7287840	you see, the blinky green board
7287840	7289280	in the middle of the
7289800	7291680	bright red readers for the CTF.
7291680	7293820	That's called a door controller. You're going to learn about
7293820	7295820	that tomorrow. The door controller is
7295820	7297900	an embedded Linux computer. Usually that's
7297900	7299920	really, really out of date because no one ever updates
7299920	7301740	their firmware. So then
7301740	7303840	my question is, how well
7303840	7305700	is that door controller segmented
7305700	7307660	from other parts of the network? Had
7307660	7309700	they done something stupid like put it directly
7309700	7311640	on the internet? Yes, that happens.
7311640	7313660	Yes, you could Google for door controllers that
7313660	7315520	are on the internet directly.
7315920	7317720	Show Dan, my friend.
7317720	7319620	Show Dan. You can find door controllers
7319620	7321660	online today that you
7321660	7324840	can log into with Admin Admin.
7325400	7326000	So,
7326000	7327640	and then, you know,
7327640	7329620	that door controller has to be connected
7329620	7332000	to a database of users, right?
7332000	7333820	Your users live in an SQL database
7333820	7336140	of some kind. So then,
7336140	7337720	how is that database secure?
7337720	7340260	Has anyone changed the database credentials?
7340380	7342400	Is that database on its own segment?
7342400	7343960	Like, all of these things are really,
7343960	7345440	really important. And it's
7345540	7347960	a more complex issue
7347960	7349160	to look at.
7349900	7351780	So, let me just roll back
7351780	7353780	real quick. Because I was listening
7353780	7355340	to Bhavik's process.
7355620	7357980	And Bhavik has been doing this
7357980	7360320	probably about as long as I have.
7361020	7361600	He just
7361600	7364400	described the process of how he would test that.
7364440	7365640	What is different
7365640	7367820	about testing door controller
7367820	7369000	to connection
7369540	7371640	to server to outbound
7371640	7373640	connection to internet connection?
7373640	7376040	Sounds a lot like network pen testing,
7376040	7377120	doesn't it?
7377160	7380080	Sounds a lot like web app pen testing.
7380080	7382500	Sounds a lot like RF pen testing.
7382560	7383840	Everything we do
7383840	7385280	is a process.
7385460	7387620	So if we're a bad guy, and we want to
7387620	7389660	break into shit, we're going
7389660	7391500	to go through and say, huh,
7391500	7393660	front door's locked, let's look at the side door.
7393660	7395380	Side door's locked, that sucks.
7395380	7397840	Let's look at a window. Huh, window's open.
7397840	7399740	Let's go through the window. We'll go in the window
7399740	7401320	and we'll unlock the front door.
7401320	7403160	Take that front door, now, oh,
7403160	7405960	we've got the car keys, we've got the garage keys.
7405960	7407980	Now we've got all the keys.
7408140	7409640	It's exactly the
7409640	7411480	same. The media
7411480	7413300	that we are going after,
7413300	7415640	whether it's prox,
7415640	7417140	does anybody here build
7417140	7418600	prox marks?
7419580	7420620	Hey!
7422060	7422840	Guys,
7422840	7425100	now if the room explodes, we're
7425100	7425920	done.
7427340	7429080	But it's the exact same
7429080	7431220	process and the exact same testing
7431220	7433080	methodology. And I hate
7433080	7435160	using big words that have a whole lot of syllables
7435160	7437140	in a hacker con, and I don't have blue
7437140	7439680	hair and most of it's starting to go away.
7439700	7441040	But we do the same
7441040	7443080	shit, whether it's RFID,
7443080	7444960	ZigBee, Z-Wave,
7444960	7446880	SDR, Wi-Fi, Bluetooth,
7446880	7449040	or ham, we're looking for that
7449040	7450980	side window that's open that we can
7450980	7452980	break into and come back through
7452980	7454940	and attack. Did I
7454940	7456280	say anything wrong?
7458200	7459180	I kind
7459180	7460380	of tuned out a little bit.
7461460	7462920	So did I.
7463860	7465040	But it generally
7465040	7467040	sounded correct. I mean,
7467720	7469020	regardless of what you
7469020	7470980	do, test your shit
7470980	7473000	and make sure it works. If you
7473000	7475140	don't test your shit and make sure it works,
7475140	7476920	you're an amateur throwing data
7476920	7479120	bits at a problem.
7479240	7481120	If you're a professional,
7481120	7482920	you may or may not have gotten paid
7482920	7485420	to do this. I hope you're getting paid if you're a pro.
7485420	7487100	But you're throwing shit at
7487240	7488820	a block in sequential
7488820	7491120	order waiting for an answer to come back
7491120	7493000	and answering every one of
7493000	7495140	those negative stimuluses with something
7495140	7497660	that's meaningful to that network.
7497760	7498960	The negative stimulus
7498960	7500980	is what makes you better.
7500980	7502780	Hey, Woody. Come here.
7506440	7508500	So, Woody
7508500	7509900	has a different
7510960	7513300	non-IT background.
7513300	7515280	Am I wrong so far?
7516720	7518580	Woody is a redneck
7518580	7520580	hacker that does
7520580	7522700	some shit really cool.
7522960	7524140	And I'm not
7524980	7526320	pimping out talks.
7526320	7528440	Woody's the dude that took over all the Fords
7528440	7530500	from like 2012 till now
7530500	7532420	and is giving a talk tomorrow on how
7532420	7533880	Fords get taken over and
7534440	7536200	all the key codes get rolled and
7536420	7539120	a whole bunch of other shit that he's going to discuss in depth.
7539420	7540580	But Woody finds this shit
7540580	7542420	by going, huh, that's
7542420	7544540	different. Huh.
7544600	7546480	That doesn't work that way. Let me try
7546480	7548640	this. Oh, that failed. Shit.
7549160	7551080	Am I wrong? Is that pretty close?
7551080	7552060	Is that your process?
7552280	7554280	Pretty much. And I just try to use
7554280	7556380	simple tools that make it easy and fast
7556380	7558900	so if it doesn't work, I know and then I move forward.
7558900	7560500	So, I guess what
7560500	7562440	we're all boiling down to is, you know, this
7562440	7564400	was starting off as a gear talk and we've got a bunch of
7564400	7566380	other shit to cover if we want to.
7566480	7568320	But, every single
7568320	7570380	one of us, whether it's classically trained
7570380	7572480	CS, computer science,
7572480	7574220	security people, versus
7574220	7576500	people that literally came out of another
7577380	7578300	completely other
7578300	7580300	world, like a medic
7580820	7582380	and became a fucking
7583260	7584220	published hacker
7584220	7586200	to do shit that breaks every
7586200	7588660	major device. It's like 10,000
7588660	7590620	10 million devices right now.
7590620	7592240	How many did you break?
7593320	7594340	There's quite a few
7594340	7596420	right now. It's millions, right?
7596820	7598460	Lots of millions?
7598640	7600140	Ford's pretty big. We're not being
7600140	7601160	recorded anymore.
7603260	7604300	Every Ford
7604300	7606040	I can lock, unlock,
7606040	7608500	denial of service to the key fob,
7608500	7610140	and then I can get in,
7610140	7612660	plug in and pull the door access code.
7612660	7614500	So, that
7614500	7616140	being said,
7617600	7618600	hacking is
7618600	7620760	not hard. Hacking
7620760	7622440	does require some
7622440	7624520	sort of process that you can repeat
7624520	7626540	that you can make do
7626540	7628560	what you want it to do. This
7628560	7629820	was a gear talk.
7629820	7632360	So, just one thing I wanted to say with that,
7632360	7634140	I'll hear me say it again, is
7634880	7636600	because I wasn't formally
7636600	7638440	or traditionally trained,
7638440	7640540	I have friends that are really amazing
7640540	7642440	who teach me how to do stuff, and when I find
7642440	7644160	new stuff, they'll be like, hey, look what I found.
7644160	7646180	Why would you even run down that road?
7646420	7648540	So, one of the things is this. I found my
7648540	7650500	first zero day because someone said, oh,
7650500	7652440	yeah, that attack doesn't work against
7652860	7654460	that kind of equipment. So, I was like, well,
7654460	7656420	I should probably figure out what not
7656420	7658680	working looks like because I have no idea.
7658860	7660260	And all of a sudden, it did work.
7660260	7662460	And they were like, wow, it's not supposed to.
7662460	7664860	So, because I'm not formally trained,
7664860	7666660	I try stuff that most guys would be like,
7666660	7668640	I'm not going to waste my time looking at that.
7669240	7670840	You'd be amazed how many people
7670840	7672620	use that as a security platform
7672620	7675160	to put those flaws in a system.
7676240	7677240	But all of it
7677240	7678660	comes back to doing
7678660	7680280	something that's repeatable.
7680320	7682800	I don't give a shit if you're the 500 pound
7682800	7684240	dude in your mother's basement
7684240	7686100	that never sees the light of day that
7686640	7688660	types on computers. If anybody
7688660	7690760	saw the tweets like two years
7690760	7692900	ago, that was the big joke. 400 pounds?
7692900	7694920	400 pounds, okay. 400 pound
7694920	7696720	hackers. We're all getting
7696720	7698320	there eventually. But, you know,
7698320	7700720	hopefully we can cut it like half of that.
7700720	7703460	So try to close it out with something gear-related.
7703740	7704760	Gear?
7704780	7705820	Yes.
7706200	7708480	Your iWatch that's connected
7708480	7709860	not to your phone?
7709880	7710920	Maybe.
7711580	7713300	We'll check that tomorrow.
7714620	7715540	Is there
7717560	7718520	a device that someone
7718520	7720540	has in their mind right now that they saw
7720540	7722620	either on a building or online
7722620	7724540	somewhere where they're like, huh, that looks
7724540	7726500	really interesting. I wonder how hard it is to
7726500	7728540	hack that. Okay.
7728540	7730400	What are you thinking of in your head?
7731380	7732600	I'm sorry?
7737600	7738560	Okay.
7739660	7740780	For emergencies?
7740780	7742620	So the emergency sirens that make
7742620	7744460	everybody leave a building very quickly
7744460	7746040	if they go off.
7746100	7747780	Yes? No?
7749000	7750820	Yeah, so emergency sirens.
7750820	7752480	Alright, so that's actually a pretty cool
7752480	7753980	example. They're serial.
7753980	7756700	So my question
7756700	7758620	is, okay, I wonder how hard
7758620	7760920	it would be to mess with that emergency siren.
7760920	7762900	So the first thing I would do is I would
7762900	7764640	identify manufacturers who make
7764640	7766660	emergency sirens. And I would start reading
7766660	7768520	product pages. Would you find
7768520	7771120	maybe the physical rooms that they might hold?
7771200	7772760	What's that? Would you find the room
7772760	7773960	Really?
7774800	7776700	Would you find the
7776700	7778700	rooms that those devices might be
7778700	7780800	in, like something that says electrical data
7780800	7782800	or facilities closet?
7783220	7784740	Yes, but I'm talking about
7784740	7786840	as a, like, I just want
7786840	7788400	to learn more, right?
7788400	7790240	Are we learning more or are we hacking?
7790460	7792360	Well, we're getting to the hacking.
7792580	7794100	I'll let you go. Go ahead, Babak.
7794200	7796740	They're connected, right? So I would
7796740	7798660	identify who makes them.
7798660	7800760	Then I would say, okay, like, how much
7800760	7802440	information can I find about them?
7802440	7804720	Do they post wiring diagrams? Do they post
7804720	7806600	information about how this device
7807220	7808880	communicates with other things?
7808920	7810880	Are there any part numbers that I can look up
7810880	7812840	and buy used on eBay?
7812840	7814820	Can I buy a sample from the manufacturer?
7814820	7816360	And then I would just start playing with it
7816360	7818580	and trying to set it up the same way
7818580	7820120	that a building would have it set up.
7820120	7822820	And then I would start breaking it or messing with it.
7822820	7824500	And that's true for anything.
7824800	7826420	You know, same thing for RFID.
7826420	7828680	When I started with RFID, I just
7828680	7830680	started buying stuff and trying to get it
7830680	7832460	set up the same way that
7832660	7834160	a manufacturer would have it set up
7834160	7836040	or a company would have it set up.
7836120	7838520	And then I'd start looking for things that
7838520	7840380	don't make sense to me, things that I can
7840380	7842340	try to manipulate or have
7842340	7843360	weaknesses in.
7844680	7846360	That's really what it comes down to.
