start	end	text
0	3900	You can bet you're behind that I am here for this talk.
4040	10260	I actually have known a little bit more about this talk for a long time while Wes was working on this.
10560	16220	Wes is a wonderful friend of everybody's here.
16720	24780	Wes and I work in similar fields in digital forensics and are fairly casual about things.
24780	33520	And I think this is gonna be a casual and fun talk that is just gonna be a blast that you bet your ass I'm gonna stay around for.
33520	38120	So everybody give Wes a big round of applause and let's have a good time.
38420	39180	Thank you.
39660	41500	Thank you so much.
41680	42920	Thank you everybody.
42920	43680	I appreciate it.
43680	45420	We're just gonna hop right into this.
45420	47160	So this is Amber64.
47220	51580	We're mining hacker history from over half a million Commodore 64 disks.
51580	53560	It's all the ones I could find.
53920	61080	I'm a senior cyber fellow at Martin Fed and they're very confused about why I'm giving this talk.
61500	73900	So our agenda for this, what we're gonna talk about, we're gonna give a little background on 80s computing though it seemed like the majority of y'all raised your hands when I asked if you grew up with those things so I might not even have to do much of that.
74020	77660	I'm gonna talk about this corpus of disks that I've collected up.
77660	79800	This is by hash unique.
79800	87400	And so if there is one bit difference in these disks, then it's a different disk, it goes into the data set.
87400	93080	I don't care how many copies of Commando I have, it's a lot of copies of Commando.
93240	102520	We're gonna talk about why you would want to do forensics across 20,000 different versions of Commando and we're gonna talk about the deep dive details of this.
102520	105420	How many of you just played games on your Commodore 64?
105420	108300	Okay, how many of you coded on the thing?
108580	112340	Okay, you're gonna really love some of this deep dive stuff here.
112800	114740	I'm gonna talk about Elasticsearch.
114740	116380	How many of you used that?
116380	119220	I had to get chat GPT to help me out with that part.
119220	136620	But anyways, we're gonna push this stuff into Elasticsearch so that we can do essentially order one searches across this data set really quickly and get data back on our searches so we can continue the analysis.
136620	140720	We're gonna talk about some weird stuff we found and what you could do from here.
141160	145900	Computing in the 80s, this is what you did with your Commodore 64 back in the day.
145900	152760	Hacking, freaking, gaming, pirating software, nobody had legitimate copies of any games, right?
152760	156280	Somebody bought it, but I sure didn't.
156580	164720	The games that we have today that have been preserved are preserved due to piracy, right?
164820	173600	Software pirates cracked the protection on them so that it could be copied and the copies that we have today are largely those pirated copies.
173760	181740	Hackers and freakers, people who hacked into the phone networks, it's been a while since we've had a freaking talk here, I guess.
181840	188960	The hacking and freaking that happened on this, you could actually use your Commodore 64 for freaking.
188960	191960	You could generate the tones that you needed to on that.
191960	196100	We're going to talk about bulletin boards which are sort of your proto forum mailing list.
196100	207120	You dialed into it with a modem, you had message boards, you had file trading, there were cross platforms so you could talk to all the nerds that were stuck on their TRS-80s.
207560	216320	And we're going to talk and there was motivation there for the freaking and hacking because you wanted to be able to dial long distance into those bulletin board systems.
216780	218960	And there's also the demo scene here.
218960	229380	This is hacking in the sense of pushing the system to do more and more and more artistically which was a really cool beginning of that scene which continues to this day.
229420	233760	The piracy, lots of different cracks for different software.
233900	250720	There was a distribution mechanism by trading, by taking the software you downloaded from one bulletin board system, say you had a calling card code that you used to dial into a BBS overseas, you downloaded the latest game that got released in the UK,
250720	262520	you uploaded it to your local BBS in the U.S., you're a distributor at that point and you got special access to other things people downloaded.
262520	268600	There's groups surrounding the cracking and distribution of pirated software and it was mostly for bragging rights.
268600	272760	This is not largely a for profit endeavor.
273080	281700	And this piracy of games and software was the motivation for a lot of this other activity, this hacking and BBSs and demo scene.
281700	282380	That's it.
282380	289180	Because after this, pornography became what defined new technology.
289180	295580	The internet becomes faster, new technology and video codecs and everything is meant for distributing pornography.
295580	297820	The pornography wasn't very good yet.
297820	300320	And so it was all pirated games.
301320	306240	The Commodore 64 itself, you're looking at it, you used one most of y'all it seems.
306240	310660	It held the Guinness Book World Record for the highest selling single computer model.
310660	316880	Good old Jack Tramiel, owner of Commodore, lied his ass off about how many they sold.
316880	318520	They were saying like 30 million.
318520	321600	But even the conservative estimates break the record.
321940	325780	We can figure about 12 and a half to 17 million.
325940	329220	The production run of this, you're going to be surprised by this.
329220	333660	August of 1982 to April of 1994.
334380	342600	That is a huge production run for an 8 bit microprocessor computer and it's ended when Commodore ended.
342640	346940	And that outlived every single other model a computer ever made.
346940	351740	It lasted right up to the end, right alongside the Commodore Amiga.
351960	355480	Keyboards built into the computer, you're looking at the computer right here.
355700	366200	The output of it is composite video so you can hook it up to a TV, you can hook it up to a nicer Commodore branded monitor that did a good job on no color bleed and stuff.
366400	368620	And a huge library of games.
368700	377260	It's not like a console gaming system where you can just go download every ROM for the NES and there's an itemized list of every NES ROM.
377260	380120	For the Commodore 64, you could write your own software.
381740	391220	It's an uncountable number of games because some kid, like I, wrote a video game at home and traded it among five friends and it's lost forever, right?
391220	395620	And there's a lot of lost software out there and we're going to find some of it here.
395620	410540	It's the first computer for hackers about my age and older and it was your first opportunity to connect to modern BBS, to connect via modem to BBS's online services.
410540	413840	Q-Link, that's the predecessor to AOL.
414260	417460	And if you don't know what AOL is, we don't have time for that.
417460	420620	I'll do another talk on the AOL scene sometime.
421680	433180	The most common disk drive for this is the Commodore 1541, which is a five and a quarter inch floppy and a very interesting drive indeed.
433180	435720	And if you're in the U.S., this is a very common thing.
435720	438100	You probably had this disk drive.
438100	443800	If you were overseas, in Europe, it was actually probably more common to have the tape drive.
444180	451780	But there's a lot of work between converting tape games over to run off of single load disks and stuff like that.
453340	461340	What you had if you had a Commodore 64 and a 1541 disk drive, you had two computers and you probably didn't even realize it.
461560	465760	The first computer was your computer, your C64.
465940	475820	It ran MOS 6510, which is a variant of the Commodore 64 with just some very simple memory bank add‑ins.
476640	479460	It had 64 kilobytes of memory space.
479460	487600	So it had a 16‑bit address bus and each address can hold a byte.
487600	489600	So that means 64 kilobytes of memory.
489600	493300	So they basically maxed out without paging RAM.
493300	496480	So if you had an address, it could be mapped to RAM.
496660	506460	You also had 20 kilobytes of ROM and you're thinking, wait, if you filled up that 64K address space with RAM, where's the ROM?
506460	509640	It gets shadowed in on top of RAM.
509640	515000	So there's portions of RAM you don't access normally because the kernel ‑‑ and I did not misspell that.
515000	519440	That's how Commodore misspelled it in their original documentation.
519700	521540	They misspelled it.
521540	522800	They were called out on it.
522800	525540	They're like, we meant to do that.
525700	532800	So they committed to it and called it the kernel with an A for the rest of the existence of Commodore.
532800	537220	They actually came out with an acronym for it just to try to cover for themselves.
537520	541640	You had the kernel, which is sort of support routines, input, output.
541640	552140	You had the basic interpreter and you had the ability to switch those in and out of memory so that you could take the basic interpreter out of memory and use it as RAM.
552400	563380	And neat things, like if you wanted to write ‑‑ if you wrote to kernel memory or you wrote to basic memory, it wouldn't change the ROM, of course, but it would write to the RAM underneath it.
563380	565720	So you could do some really clever stuff with that.
566880	571520	This is one of the first personal computers that had coprocessors in it.
572020	573960	The VIC‑II was for graphics.
573960	578760	It had very good graphics for a computer, much better than any other home computer at the time.
578760	585240	And for a while until your IBM PCs and Amigas ‑‑ like your IBM PCs start getting EGA and VGA graphics.
585240	589780	Your Commodore Amigas, of course, came out of the gate smashing with great graphics.
590740	600880	The real standout here is the SID chip, which if you're a synthesizer nerd, you already know what this chip is and you've probably pulled one out of a Commodore to put into a synthesizer.
600980	603820	It's a digitally controlled analog sound.
603820	613120	So memory mapped registers to control an analog synthesizer in a computer that's a keyboard, right?
613120	616320	So people made guitars out of these keyboards, right?
616900	623200	The way we communicate with other drives and stuff is over a serial IEC bus.
623200	625120	So it's a serial bus.
626440	632640	Instead of having multiple lines like a normal IEC bus, it only has one.
632640	635880	So it's sending single bits at a time.
636180	638120	And then you have your floppy drive.
638120	641600	Your floppy drive was also a computer.
641600	644160	It had a compatible processor.
644160	654980	It had a 6502, which is the 6510 with some of that paging taken out of it, running at one megahertz, two kilobytes of RAM, 16 kilobytes of ROM.
654980	659880	They didn't have to map on top of each other because it had that whole address space out across.
660020	662140	And in ROM was Commodore DOS.
662160	673920	That 1541 drive, when you turn it on, it's a computer, it boots up, it's doing its own thing independently, parallel of the main computer, and it talks to that main computer over a serial IEC bus.
674380	682720	The five and a quarter inch floppies were formatted to have 170 kilobytes worth of data per floppy disk, and it was slow.
684020	694100	And so there's a whole market of fast loaders that replaced elements of Commodore DOS, firmware replacements like Jiffy DOS and things like that.
694100	699140	But ultimately, they were all more or less compatible and had the same sort of disk format.
700240	704980	What happened when you bought a box of floppies for your Commodore 64?
704980	707240	You copied stuff to them.
707460	711200	And so you formatted the disk, and there's a cycle.
711220	722520	You download some software from a BBS, or you copy it from a friend, and you do that until the disk fills up, or you've got a game on there that doesn't like being on there of other games, right?
722720	730100	There wasn't any folders on these disks, and so you just kept dumping game files into the same directory until they complained, right?
730220	732140	Or you filled up the disk.
732620	736600	You started playing the and, you know, there's like 20,000 games.
736600	738940	Most of them are pretty shit, honestly.
739200	740740	And you delete the bad ones.
740740	741720	You keep the good ones.
741720	747120	You keep, you know, your mini golf and your Commando and everything, and you throw away the rest of them.
747960	752320	And then when you fill up the disk, you put it in the box.
752320	755700	You give it a name, or you don't label it at all.
756200	759640	And you just keep on trucking with the next disk, right?
759940	761980	But you might also have other data.
761980	767700	You might have text files in there if you're interested in hacking and downloading text files from public BBSs.
767700	771440	Those text files may or may not be written for the Commodore 64.
771860	775040	You will record your BBS sessions.
775040	778800	Remember this for the future slides in here.
778980	787360	Because you're trying to cut down on long distance time, you will record your BBS sessions so that you'd go through them fast.
787360	798380	You read all the messages all at once that you haven't read on that BBS since the last time you logged in, and then disconnect so you can sit there and read it and figure out what you're going to respond back in that flame war.
798440	804900	Or you're going to get the list of files and figure out which thing you're going to download next, because you're committing to something.
804900	807060	These are slow modems, right?
807240	814520	And so you have these BBS logs, but then you slide back up to the top of this cycle and you download more.
814560	819820	And you don't need that BBS log anymore, so you delete it to get the space back.
819820	827740	And if you're into digital forensics, you're sitting here thinking, oh man, I'm really sort of leaving artifacts all over this disk, ain't I?
829400	833820	If we start talking about disk images, here's where you get them.
834020	838680	None of these that I acquired are anything that I imaged personally.
838780	841000	These are all from different projects on the internet.
841000	842840	You can get these as well.
842880	846980	I will not be publishing the disk image set publicly.
846980	856220	I'll provide it to researchers and such, because it's a bit of a mess and I don't want to contribute to the already included mess of stuff that's out there.
856220	864220	But you can piece it together yourself and I can help you out with individual files or if you've got a research interest in a larger set, I can manage to get it to you.
864220	865680	It's about 70 gigs.
866280	870620	But the TOSEC, they're focused on games and applications.
870620	882380	They will ‑‑ they'll get disks of every single game and every single application that's known to exist for the Commodore 64 and collect them and label them.
882380	885660	The C64 preservation project does the same thing.
885660	888100	Internet archive has collections.
888120	905440	The Commodore scene database is really cool because they have like a release number, but in their forums, there's a bunch of old software piracy guys, a bunch of old software copy protection crackers there that have their old disk sets from back in the day.
905520	913820	And they will sit around and after they pass away, it will be passed on to somebody who will do this.
913820	916860	They will image their entire collections.
916860	919680	So it will be thousands of disks from one person.
919680	922060	You'll see some of these collections in TOSEC.
922060	923560	You'll see them elsewhere.
923560	930120	But in that thread on CSDB, you can find an FTP site that has all of these things.
930120	933240	And so there's lots of unlabeled disks in that set.
933240	941600	FTP sites that are just ‑‑ have always been around since the Commodore days, Zimmers, Arnold, Padua that collect disk images.
941740	946680	There's the Lodestar magazine which I grew up reading on my Commodore 64.
946680	949180	Learned a lot of programming from that magazine.
949180	951100	Disk‑based magazine.
951100	955620	About 250 issues, 260 issues, something like that.
955760	965080	And each issue was four sides of floppy ‑‑ like two double‑sided floppy disks with articles and games and programs and things like that.
965080	967220	It was so much fun to go through.
967220	967900	Right?
967900	969200	And so that's in this set.
969200	971000	I won't provide that to you.
971000	974920	You need to give 15 bucks to Fender Tucker who has the rights to that.
974920	975900	He's awesome.
976600	979060	And then just other stuff I've done.
979060	980580	I shot 256 of them all.
980580	982280	I deduplicate them.
982680	986040	And it's just an overwhelming quantity of a mess of disks.
987260	990720	And so for each disk, we got to think of it as a collection of artifacts.
990720	995440	You have the apparent things that are on it which is the label printed on the disk, right?
995440	998060	This disk has Frogger on it, right?
998360	1002320	This disk has a Commando on it.
1002320	1004020	What's on there?
1004020	1007180	Then there's what's ‑‑ the first program on the disk.
1007720	1013360	The Commodore 64, your command for loading the first program off the disk is what most people know.
1013360	1015000	It's like a cultural thing now.
1015000	1017880	Load star comma eight comma one.
1017880	1020720	Loads the first game up so that you can run it .
1021880	1025960	But what you might not know is there's other files on the disk more than likely.
1026320	1038420	And if you don't know any other commands for your Commodore 64 than that, you might miss that there's a directory that you can get with other mixed programs mixed into that same directory.
1039200	1040640	Then there's hidden stuff.
1040640	1041920	There's unlabeled disks.
1041920	1048500	There's such a mass of unique unlabeled disks out there that you can't really be sure what's on them.
1048760	1052580	There's extra files that have nothing to do with the games that are on the disks.
1052580	1055240	And some of them are docs that people have written.
1055340	1056900	There's deleted files.
1056900	1060840	We know from in a modern context, if you delete a file, it's not really gone.
1060840	1062120	It's just marked as deleted.
1062120	1064320	It's the same thing on here.
1065640	1069460	Unallocated and orphaned space where programs will just write stuff.
1069460	1071340	And then general shenanigans.
1071980	1078340	You could rewrite the way the drive treated disks for copy protection purposes.
1078340	1083960	You could do strange things and just write things to sectors because it's not going to stop you from doing that.
1083960	1088660	And so there are things that sort of violate the rules of file systems on here.
1088980	1096840	If you have half a million disk images, if you think of something weird you could do of a Commodore disk, one of those disk images has.
1096840	1101020	And because I had to do that when I was writing this code, I had to handle all those edge cases.
1101020	1111800	And so I'd write my code, I'd run it across the entire corpus, find a disk that broke my code, and then figure out what the hell are they doing with a Commodore disk that makes my code break.
1111960	1113640	Iterate, iterate, iterate.
1114580	1116400	Why do I want to do this?
1116400	1119280	Because it just called to me, right?
1119280	1123040	Like, you know, I grew up with this system.
1123040	1125360	I love tinkering around with it.
1125360	1128240	And I just love playing around with this stuff.
1128240	1130860	But really, there's lost media out there.
1130860	1138720	There's games that are just kind of you see advertised in scans of old magazines that aren't in Tosec, right?
1138720	1140360	Where did that game go?
1140360	1141160	Maybe it's crap.
1141160	1142600	It's probably crap.
1142600	1145460	But it would be good to preserve it.
1145460	1147300	There's all this work that people have done.
1147300	1153000	I don't know, millions and millions of man hours of work in all of this code and everything.
1153760	1156280	You know, it's a shame nobody is looking at it.
1156580	1162380	There's hidden text in games that developers put there to taunt people cracking copy protection.
1162560	1163600	That's fun.
1164340	1166560	Cutting room floor documents a lot of that.
1166560	1168800	So in a lot of known games, that stuff is known.
1169300	1172880	There's multiple versions of software, some of which aren't documented.
1173120	1177080	And then there's the ephemera, the communications, user generated files.
1177260	1180540	And then what I like to call hacker history, which is interesting here.
1180540	1184760	Things related to BBSs, freaking codes, piracy, cracks.
1184900	1187760	So pirating calling card codes.
1187880	1198160	Back in the day, you would get a calling card code so that if you were at a pay phone, you could charge a call to your calling card account and so you can make a long distance call from any pay phone you found.
1198160	1203280	Or you could charge long distance calls to this thing or to a corporate code or something like that.
1203280	1206800	You could write, you could scan for those codes and do them.
1208300	1211120	So what can we apply from our modern day stuff?
1211120	1216060	File system forensic analysis, parsing metadata, recovering deleted files.
1216160	1225240	And what we really want to do is it takes a long time to search through half a million disks and so we want very fast search.
1225240	1229660	So we needed to build an index of printable text inside of these disks.
1230280	1232660	And that's complicated in this environment.
1234480	1240580	Here's a little tutorial on how the 1541 lays out data onto a disk .
1240580	1246700	This book, Inside Commodore DOS by Emmers and Newfield is really the source for this.
1246700	1251060	And this section is called why can't I just use strings and grep on these disk images?
1251060	1252900	You can a little bit.
1252940	1256780	The proof of concept was strings and grep, right?
1256780	1259980	But there's reasons why this won't work in the general sense.
1260380	1266200	If we look at a Commodore 64 disk, it's 35 concentric tracks on a disk .
1266260	1271600	Each concentric track contains a set of 256 bytes sectors.
1271900	1277940	And the number of sectors per track varies per which track it's on, right?
1277940	1286380	And so the inner more tracks have fewer sectors than the outer ones because there's more space on the disk on the outer tracks, right?
1286700	1294360	If you were to look at the magnetic fields, and you can, there are disk images that do record all the magnetic data.
1294360	1303300	You'll see like weird skewing of this and everything, but generally you have them sort of evenly spaced around like this.
1303300	1312960	You have four zones, so your outer tracks have 21 sectors per track.
1312960	1315800	Your innermost one has 17.
1316780	1320540	And so if you're parsing these, you kind of have to pick this up.
1320960	1324340	Here's what it looks like magnetically on the disk.
1324380	1338920	If you were to take a magnetic flux reading of the disk, which some people have done, we're not super interested in this level because the data is in that data block.
1339340	1352300	Shenanigans are made in this kind of layer here where you have a header block ahead of that data, sync marks to make sure that the disk knows where it's at, where the head knows where it's at on the disk and so on and so forth.
1352360	1359880	There's information in there, but it's usually things that people have done weirdly to disks to keep them from being copied easily.
1360200	1362680	And so we're not super interested in that.
1362680	1374400	What I would do if I had G64 or nib files for this magnetic flux imaging, I just had a script convert them over to D64s and just have the sector data for my processing.
1374500	1377900	If you really wanted to dig in, there might be some more data in this.
1378520	1382120	So we're looking at this 256 data bytes.
1383080	1385460	The directory track is where you start.
1385460	1386920	That's track 18.
1386920	1391920	Track 18 sector 0 is what we see diagrammed out here.
1391920	1400840	And when we look at file systems, you go back to Brian Carrier's file system forensic analysis with the concepts of essential data and non-essential data.
1401120	1407320	Something that's required to be accurate for you to parse the disk correctly and stuff that could be different, right?
1407320	1411440	Stuff that can change and not required to be accurate and just still work.
1414220	1422540	You have a block availability map, which is like the FAT on a FAT file system where you're basically marking sectors as used or unused.
1422540	1427380	And so you can keep the operating system from using a sector that's marked as used.
1427940	1431600	And this is the first example of what we call sector chaining.
1431600	1442880	On each of these 256-byte sectors, the first two bytes of that sector identify the next track and sector that continues the chain, right?
1442880	1450240	And so you can't just go from sector or from track 18.0 to track 18.1.
1450240	1459220	You follow the sector chains to go track 18.0 and it's probably going to be track 18.4 or 6 or something like that.
1459220	1464900	And there's an algorithm for this and the reason why they're not contiguous is because the disk is spinning.
1464900	1476320	The disk is spinning, the head is reading it as it's spinning and so as that head is spinning, you're reading a sector, you're processing it and then you're reading another sector.
1476320	1482860	If it has to wait for that next sector to come back around to read it, then that's slow.
1482860	1494740	If we can say the next sector is going to be four or five sectors down the road, basically by the time you finish processing this sector, the head's already five sectors ahead.
1494740	1501240	Well, the next data item that we want for this file or this directory entry is going to be there instead.
1501240	1511460	And so that's why programs spread themselves out across the disk and they have these links at the beginning of each of them pointing to each other.
1511460	1520040	That's another reason why you can't just run strings and grep because there's lots that are on those boundaries, lots of strings that are on those boundaries where it breaks it up.
1522120	1523980	Directory entry blocks.
1524180	1530340	And so the directory entry blocks have the file entries that point to the files on the disk.
1530480	1539820	That just describes where the files are on the disk, just a little bit of information on the file formats.
1540260	1543900	You had essentially a few different types of files.
1544600	1548820	You had files that are marked as deleted, which we're interested in.
1549180	1558860	You had sequential files, which are basically data files that are, as you would expect out of a normal PC file, like one byte after another.
1559700	1565240	And then you had program files, which are like, this is your program binaries.
1565240	1572560	And so your PE files in Windows involve like loading things into memory in the right places and setting up everything for execution.
1572800	1583320	Your program files on a Commodore 64 disk, the only metadata they have is an address at the beginning of where to load the program into memory and start execution.
1586280	1588440	And so that's what this diagram shows here.
1588440	1603660	It's basically showing you that the PRG has a track and sector link for the next sector of the PRG file, a load low and a load high for where we're going to load the program into memory.
1603980	1611040	And then the next sector doesn't have to have that load low and load high because it all follows from the first one.
1611260	1626280	And then the last part of it has, since your file is not necessarily an even multiple of the 254 bytes, you have whatever was in memory on the disk drive being written to disk, right?
1626280	1632340	If you didn't fill that buffer up, it had whatever was the contents of the buffer before and writes it again to disk.
1632340	1637680	And sometimes that's the previous sector's data, sometimes it's something else.
1639260	1643780	Sequential files are similar except they don't have the load low and load high.
1644780	1649300	REL files are basically static length records that can be indexed.
1649300	1652880	For our purposes, it's the same as a sequential file.
1652880	1656080	We don't worry about parsing it at the record level.
1656440	1675580	But it is sort of similar to modern, or not modern, but later on Mac OS 9 sort of resource forks are alternate data streams on NT file system where you can have a file of multiple types of contents because these have two sector chains, one for the data,
1675580	1678560	one for the pointers to the data for the records.
1678700	1686160	And each of those could hold interesting data because you could just use them in a non-standard way, and programs do.
1686840	1693320	And then there's user defined ones which nobody used because they just kind of used sequential and program files however they wanted to.
1694180	1704880	Other weirdness, there are 40 track disks, and there's some common formats for those and markings for detecting that you're in one.
1705260	1715220	There's invalid track and sector pointers, and so maybe somebody just didn't decide decided to put right data to sectors and not use that linking format.
1715220	1716400	You could do it.
1716400	1723220	It would mean that nothing would read that correctly, but maybe you wrote your own code to do it and you know what you were doing.
1723540	1729020	There's nothing to keep sector chains from looping in a badly behaved file, right?
1729020	1731500	You could alter those pointers to make them loop.
1731500	1732560	That sucks.
1732560	1739080	You could have sector chains that merge into each other, and so you could have all sorts of nonsense going on here.
1739360	1744900	Geos, which is a graphical user interface, had its own stuff.
1745540	1749280	And then the text encoding is the weirdest thing.
1750260	1753180	Commodore PETSCII isn't exactly ASCII.
1753220	1758560	It has its own fonts, and so it has two fonts that it would switch between.
1758560	1768200	It had graphical characters in one of them and then upper and lower case in the other, but the graphical could only have uppercase.
1768200	1774220	And so there's nastiness here on where they map these PETSCII characters.
1774220	1779220	Some of them are at the same sort of numbers as ASCII.
1779220	1780760	Some of them aren't.
1780760	1791240	And there's no way programmatically from reading a disk to know whether a program intended to use the shifted font or the unshifted font.
1791660	1794200	And some things use normal ASCII.
1794200	1797860	And so here we already have three different character sets that we've got to deal with.
1797860	1799580	That's not all.
1799680	1806980	Some people would encode text as just A is one, B is two, C is three.
1806980	1811300	And that's done a lot of times with screen codes.
1811300	1821200	And so if you're encoding, because the video memory, when you're blitting these characters to the screen, uses not PETSCII, not ASCII, uses screen codes.
1821200	1825260	And that's an entirely separate table with two different fonts.
1825760	1829020	And so that's another set of special cases that you have to case.
1829020	1839040	And so basically any one byte value could be some kind of character on a Commodore 64, and you don't know when you're reading a disk.
1839040	1843700	And so all I can do in my script is just parse them all.
1843700	1856780	And so for each disk, I generate a larger than 170 kilobyte data set of all possible strings that could be encoded on that disk from any number of sector chains, right?
1856780	1875660	So allocated files, deleted files, sector chains, orphaned sector chains that are not associated with files, other weirdness, and then I also do one of the entire disks just in case somebody decided to do something else that I didn't anticipate.
1875940	1880940	I process all that into a JSON data structure per a nasty one.
1881220	1886540	That's what ChatGBT helped me design so that it would be efficient in Elasticsearch.
1887220	1895120	Throw that into Elasticsearch as a table, as a data entry in a table, and that's basically it.
1895120	1901980	And so we have image name, SHA-256, the disk name, files, strings from chains.
1901980	1910580	And so I build a list of chains as I find them, and for each chain, I walk that chain and pull out the text, right?
1910580	1923120	And so that's contents, directory chains, chains that aren't associated with anything seemingly, Slack space, so at the end of sequential and relative files, sequential, relative and program files.
1923200	1930540	If there's Slack at the end, I pull that out and I do my version of strings on that as well.
1931340	1935020	I do a naive strings across the entire image just in case.
1935020	1940280	There's a couple of disks in Tosec that are not Commodore 64 disk images at all.
1940300	1945280	They're just 170 bytes, 170,000 bytes of something.
1946220	1948740	And then I SHA-256 everything.
1948740	1962340	So every file, every chain, I set a separate SHA-256, so if I see a file on one disk, I can search for that hash value and find that on every other possible disk in my data set.
1962560	1965320	That helps you in cross-referencing and research.
1966860	1971280	Load that up into, and once you start playing with this, you can dig into this.
1971280	1979060	I'm not going to get into the details of loading this into Elasticsearch, but however you like to query Elasticsearch, once you get it in there, it's fast.
1979060	1983700	This data set, this index is about 30 gigs, and that I'm happy to share with you.
1983700	1986200	I'll probably upload it to Internet Archive.
1986200	1992640	The code will be on my site, mcgrewsecurity.com, tomorrow or Monday or so.
1993980	1998180	Then you can use Dirmaster to actually go through the disk on your computer.
1998180	1999480	You can use emulation.
1999480	2000760	You can use real hardware.
2000760	2004040	You can buy a brand new Commodore 64 right now.
2004600	2009020	Perifractic, the YouTuber, bought Commodore the other day.
2009020	2017400	He bought all the trademarks, and they're coming out with an FPGA implementation that I pre-ordered, and it's going to be out in, I don't know, probably October or something.
2018520	2029540	I have a cartridge that allows me to emulate the 1541 that can load off of networks, so I can actually query and pull stuff onto my Commodore 64 from my Commodore 64.
2030760	2033060	Crazy finding times.
2033440	2036500	Be warned, this is the fun part of the talk.
2036620	2039500	Be warned, there's some weird shit in here.
2042040	2047640	So we have logs of BBS conversations that are just sort of ephemeral.
2047640	2050400	Nobody knows that this stuff was ever saved.
2051140	2058920	There is PII in here that's 40 years old that, I mean, I can't do, I can't scrub this whole data set.
2059500	2064060	All those cards are not real anymore, are not valid anymore.
2064060	2067460	If you see phone numbers in here, do not call them.
2068860	2076040	They probably, probably isn't them anymore, and if it is, they might not want to hear from you.
2077040	2078800	Lost games.
2078800	2083500	Charlotte Courtois, PhD candidate at the University of Montreal.
2083500	2087600	I got in touch with her on the Commodore 64 subreddit.
2087600	2098740	She's working on the history of pornographic video games and also modifying old pornographic video games to have more inclusive LGBT representation.
2099100	2102840	She found a text-based sex quiz game for parties.
2102840	2105520	This is the sort of thing that you didn't really do this at parties.
2105520	2107120	Nobody threw parties for this.
2107880	2122900	You just sort of sat at home and she found a copy of a pirated, she had a copy of a pirated ladies' sex quiz that she wanted to modify to be a little more sensitive about some things, right?
2123580	2133840	I helped her find a copy of that that was the same game but not obfuscated in any way, so she was able to edit the basic source code and make those changes.
2134660	2138260	There is a lost men's sex quiz version.
2138260	2147700	There is a one that somebody hacked back in the day from the ladies' version that's even worse, that is not the official one.
2147700	2151140	And this ad right here is from Compute Gazette right here.
2151140	2164220	This same company, in the process of looking up stuff from this company and following the threads of all this, I was able to find Asteroid Miner which is not in any TOSEC or anything like that.
2164220	2169040	It's a really crappy text adventure of mining asteroids.
2169740	2175820	And it's crappy but somebody worked their tail off on it for a while and I think it deserves to be preserved, right?
2176960	2179080	Codes and cards.
2179080	2190660	And so they're scanning for these valid calling card codes so they can charge their BBS calls overseas to them or their long distance BBS calls to these things.
2191020	2196100	And they scan for these codes using Commodore 64 software that I'll talk to you about.
2196100	2198160	And they share them with each other.
2199680	2201500	They talk about how to use them.
2201500	2204720	They have handles, they have dates, all that sort of stuff.
2205800	2214420	Here's a freaking program here where it had a war dialer which you use to scan ranges of phone numbers to find modems.
2214960	2217340	It had lists of BBSs.
2217340	2222160	It had the ability to scan for different codes for different long distance providers.
2224080	2228200	And had documentation on how to use it so I wanted to show you that.
2228200	2231580	These are screenshots from an emulator of that software.
2231580	2239980	Phone freaking software generating blue box tones for simulating the hang up signal on older telephone networks.
2239980	2245780	Red boxing, you know, playing the tones for inserting coins into pay phones.
2245780	2246460	That sort of thing.
2246460	2253320	If you want to drag your Commodore 64 out to a pay phone, I guess.
2255400	2257060	But all these are in here.
2257060	2261460	And the reason why this is all possible on a Commodore 64 was that SID chip.
2261460	2264520	You know, I told you it was an analog synthesizer, right?
2264520	2271760	You could do DTMF tones through that SID chip that were really clean and appropriate for use in freaking.
2272020	2274160	And there's wiring diagrams.
2274160	2291060	So if you take an old Commodore 64 modem, where do you tap into that modem such that you can send the output of your sound device on your Commodore 64, the SID chip, directly to the modem to send that sound down the line to use it for freaking purposes.
2292000	2294840	And so there's instructions for how to do that on there.
2297920	2300500	Probably more than I should have put in the slides.
2301240	2309940	There's demos where people would do magazines of the happenings of the freaking and hacking scene back then.
2309940	2311920	And these are fun to read.
2311920	2331840	And this completely horrid font here, they're talking about people getting busted over hacking out MCI calling card codes, so-and-so is busted, so-and-so had a system crash, this BBS is back up, a temporary number for this BBS is this.
2331840	2346800	And all these things, like if you see a handle for somebody you knew back in the day or somebody that you were back in the day, you can search this data set or I can help you search that data set for that handle and we can start cross-referencing and walking all over this data set finding stuff.
2348240	2357320	All that's way past any time that you're going to get busted for anything now, probably.
2357700	2360340	All right, more busted stuff.
2361360	2372420	Wizard who had been a real asshole but had inspired me to start freaking recently, he got involved in really deep shit when he sold credit card numbers to an undercover secret service agent by the name of the Countess.
2372420	2376180	The Wizard got busted and released on a 4500 jail bond.
2376180	2378080	Don't let this throw you off, folks.
2378080	2380620	He carded and that is a much different subject.
2380620	2387960	Wizard knows the life of a scared and helpless life for him that got his computer snagged when he got busted along with his lame board.
2388720	2393300	People were really nice to each other back then just as we are now on Twitter.
2397480	2400840	Applying, you had to apply to BBSs, right?
2400840	2409280	You had to say I have this software I can share, I have access to this overseas BBS and I can run that to your BBS.
2409280	2414820	So there's a lot of databases in here of people's applications to join BBSs.
2415100	2421260	And then a puzzling thing, a very obscure ad for 2600 Magazine.
2421480	2431400	This is a disc for a railroad signals game, like a video game to help you learn railroad signals, which there's a certain market for that.
2433200	2449100	Completely apart from the game as it is itself, on track 26, sector 0, as one might say 0, 0, somebody just dropped this in and it's are you a hacker or a phone freak?
2449100	2454020	If so, you'll be interested in subscribing to 2600, the journal of American Hacker.
2454020	2458960	Write to the correct address for subscribing to 2600 Magazine.
2459000	2460700	Who put that there?
2460700	2462340	At what point?
2462680	2464520	If you know, let me know.
2464520	2472120	And if anybody ever even saw this, like who was going through their disc with a sector editor and spotted this?
2472120	2476300	I would love to hear if anybody knows because I was never able to find anything else about it.
2476300	2477920	This is a very odd thing.
2478360	2480060	And it's on one disc.
2480280	2488680	There is an interview with Cheshire Catalyst, the late Cheshire Catalyst, famous in our scene, in Uptime, a disc magazine.
2488680	2492420	He's talking about history of hacking back in the day.
2492420	2498560	And I thought finding something like this that I couldn't find on the public internet now is incredible, right?
2498560	2502360	We're actually finding things about our own history here.
2503060	2509660	Text files that I haven't seen in modern archives like on textfiles.com, on phone company and phone freaking.
2510760	2523040	But essentially this allows us to query a very large data set of vintage floppy disc images comprehensively and very quickly so that you can run that investigation.
2523040	2527180	You can sort of pull the threads and find interesting things.
2527560	2533560	We do it by understanding the disc layout and not treating it as just a binary blob.
2533560	2539720	We normalize that into ASCII or rather Unicode to push into Elasticsearch.
2539860	2549120	We create those data structures and we leverage Elasticsearch to do the hard work of doing this index search for us.
2549120	2564960	And that enables us to answer interesting questions about this era of computing that by uncovering things that are not the controlled things that we chose to preserve, we can see sort of slice of life things that happened back 40 years ago.
2564960	2568280	And I think that part is very interesting to me.
2568880	2579320	For future work, you can contact me and I'll help you run queries on the data set so that you don't have to set it up for yourself and help you out with research on this.
2579320	2582100	I'm going to publish the index so that you can get that.
2582100	2593520	I don't think publishing the entire disc image set is appropriate because of polluting basically the already disorganized data that's out there and it's very large.
2593520	2598660	Happy to provide portions of it as you find things in the indexes you want.
2599120	2604700	We could search for other disc formats for the Commodore 64 and also other platforms.
2604700	2607320	Translate this to Amiga, early PC stuff.
2607320	2616840	There are discs from Microsoft that are install discs that have internal Microsoft emails stored in random sectors of them.
2616840	2618860	There's documentation of that.
2619620	2622720	And with that, here's my contact information.
2622720	2629000	All the information about this and links to download stuff will be on mcgrewsecurity.com.
2629060	2631240	And these are the other ways you can contact me.
2631240	2632260	I don't do LinkedIn.
2632260	2633420	Just hit me on X.
2633420	2634600	I'll give you a card.
2634600	2635340	You can text me.
2635340	2636340	I don't care.
2636920	2639440	But this is how you get in touch with me.
2639440	2642440	And I really appreciate you sitting through this.
2642440	2648960	And a big shout out to ST ISAC for being there for hearing me out on some of this.
2648980	2649860	Thank you.
