1 00:00:13,240 --> 00:00:19,680 for those of you who don't know me let's just say you can't hear me i'm not loud enough 2 00:00:20,300 --> 00:00:28,040 you can't hear me i'm not loud enough okay got it that's the first time in my life anybody's 3 00:00:28,040 --> 00:00:34,020 ever told me i wasn't loud um i've been screwing with computers for 23 years i started with 4 00:00:34,020 --> 00:00:38,820 hp 3000 seven column paper tape i've programmed on punch cards i've done client server i've done 5 00:00:38,820 --> 00:00:42,320 mainframes i've done assembler and mainframes i've done assembler on pcs i've been around a 6 00:00:42,320 --> 00:00:48,440 long time um the purpose of this talk which is called building a backdoor binary my animated 7 00:00:48,440 --> 00:00:55,160 slide is a step-by-step walk through through of this is going to be a lot of fun of how to 8 00:00:55,160 --> 00:00:57,800 program your way back into that box you just worked so hard to root 9 00:00:57,800 --> 00:01:04,280 um the motivation behind this being i consider hacking to have essentially five steps figuring 10 00:01:04,280 --> 00:01:08,040 out what it is you want to get into figuring out how it is you're going to get into it 11 00:01:08,040 --> 00:01:13,060 actually doing the exploit number four my most important point cleaning up after yourself 12 00:01:13,060 --> 00:01:17,540 and number five making sure that you don't have to go through steps one through four the next 13 00:01:17,540 --> 00:01:23,020 time you want to get back in this talk falls under number five namely setting yourself up a 14 00:01:23,020 --> 00:01:27,780 way to get into an allegedly secure system after you've already got back into it 15 00:01:27,800 --> 00:01:34,300 so that essentially you have access which may or may not be legitimate at this point but the end 16 00:01:34,300 --> 00:01:41,960 user base doesn't think they've been owned okay so this is featuring secure shell ssh dot two dot 17 00:01:41,960 --> 00:01:48,360 oh dot thirteen i know two dot one is out um i actually wrote this several months ago um i am 18 00:01:48,360 --> 00:01:57,080 working on a two dot one um and i'm wrangler so the point here the the first point i want to make 19 00:01:57,800 --> 00:02:03,800 is security the heightened level of security in the community has made it such that people are actually 20 00:02:03,800 --> 00:02:07,520 paying attention they may not necessarily have a clue but they're paying attention so a lot of the 21 00:02:07,520 --> 00:02:11,040 obvious stuff that you used to be able to use to get into things is gone you're not going to just 22 00:02:11,040 --> 00:02:14,720 telling it into somebody's machine with certain environment variables set and boom you're a root 23 00:02:14,720 --> 00:02:19,400 user okay uh people are actually they know what end map is they know how to download it they know 24 00:02:19,400 --> 00:02:24,700 how to run it they may not you know do much more than that but you're not going to find the obvious 25 00:02:24,700 --> 00:02:26,980 ways into a system anymore so 26 00:02:27,800 --> 00:02:32,200 if you want to get into something you actually have to pay attention and i mean other than just going 27 00:02:32,200 --> 00:02:37,840 to root shell and downloading the latest exploit and running it and seeing if it works um most of 28 00:02:37,840 --> 00:02:44,980 the time remote access has been turned off for non-essential services you know i mean you may 29 00:02:44,980 --> 00:02:50,920 find you're gonna find a lot of sun boxes with rpc turned on okay but if you know a good star 30 00:02:50,920 --> 00:02:57,000 nix box is going to have maybe ftp probably fsh 31 00:02:59,540 --> 00:03:08,320 uh definitely not telnet um maybe smtp maybe dns maybe web and that's it you know and of course 32 00:03:08,320 --> 00:03:15,620 then there's the nt world and we're not going there um so for the most part what i'm trying to 33 00:03:15,620 --> 00:03:19,720 say here is that secure shell has become the de facto remote access protocol in systems where 34 00:03:19,720 --> 00:03:23,240 people are actually paying attention and again there are exceptions to this rule there are 35 00:03:23,240 --> 00:03:27,200 telnets out there i've got a whole freaking web page of over 3 000 class c's of telnets 36 00:03:27,800 --> 00:03:33,700 out there um but if you're if you're going after a shall we say a worthy target the likelihood is 37 00:03:33,700 --> 00:03:38,540 you're going to have to actually think a little to figure out how to bust in um so this is a 38 00:03:38,540 --> 00:03:42,820 coding example this is an example of something i actually sat down and did and spent quite a long 39 00:03:42,820 --> 00:03:48,160 night doing um and i wanted to go through it in a methodical way and explain some of the pitfalls 40 00:03:48,160 --> 00:03:51,660 because essentially when you think about okay backdooring ssh you would think it's a fairly 41 00:03:51,660 --> 00:03:57,780 trivial exercise go in and find some password and then say uh if my password you know is a 42 00:03:57,800 --> 00:04:04,360 this then branch around all the validation code and let me in it's not okay so the first thing i'm 43 00:04:04,360 --> 00:04:08,400 going to cover is the design which is understanding the code and what you intend to accomplish with it 44 00:04:08,400 --> 00:04:13,260 the next thing coding the factors that you have to consider when you're modifying the source code 45 00:04:13,260 --> 00:04:18,900 namely how to do it so that you don't break it building which is emulating the original as closely 46 00:04:18,900 --> 00:04:22,420 as possible just because you can gain access doesn't mean the entire user community should 47 00:04:22,420 --> 00:04:27,340 be locked out they might notice that um installation which is actually going in there 48 00:04:27,800 --> 00:04:31,400 and it's not going to do the dirty work and that too turned out to be non-trivial and finally my 49 00:04:31,400 --> 00:04:36,980 favorite share the information which i hope is why we're all here today oops that was 50 00:04:38,020 --> 00:04:46,840 here go there we go uh plan what you want to accomplish in essence my my theory and my 51 00:04:46,840 --> 00:04:50,440 philosophy i won't like burden you with it too much but just to say that a hack is a statement 52 00:04:50,440 --> 00:04:55,220 that cannot be ignored if you're going to go to the trouble of gaining illegitimate computer access 53 00:04:57,800 --> 00:05:00,940 then you should think it through because there are repercussions that are associated with it 54 00:05:00,940 --> 00:05:05,540 um if you're going to do this kind of thing think about what exactly it is you intend to accomplish 55 00:05:05,540 --> 00:05:12,540 do you want to be able to snag those hr records or do you want to be able to read a certain person's 56 00:05:12,540 --> 00:05:15,620 email because you think that they're cheating on you or whatever the hell it is you know understand 57 00:05:15,620 --> 00:05:23,420 what your motivation is um if you're trying to just you know if you're playing what i call sport 58 00:05:23,420 --> 00:05:27,360 hacking where you're essentially trying to see how many boxes you can have root on at the same time i 59 00:05:27,360 --> 00:05:31,280 don't know what your motivation is but you need to know that up front because that is going to 60 00:05:31,280 --> 00:05:36,820 influence what you do later on down the line and what is involved in replacing the files on the 61 00:05:36,820 --> 00:05:42,380 system um unix there are a lot of different aspects of this to be considered you know the 62 00:05:42,380 --> 00:05:46,580 size the checks on the ownership the times uh the log entries that are going to be generated 63 00:05:46,580 --> 00:05:51,560 by your legitimate or illegitimate access security tools that may or may not be in 64 00:05:51,560 --> 00:05:56,160 place to monitor what it is you're doing or something that you think you might do later on 65 00:05:57,360 --> 00:06:04,020 and the fact that you want the behavior of the system to remain within expected parameters you 66 00:06:04,020 --> 00:06:10,900 don't want to give a system administrator or a user clueless or otherwise any kind of a red flag 67 00:06:10,900 --> 00:06:15,040 or even a yellow flag that might make them start to poke around and discover that actually there's 68 00:06:15,040 --> 00:06:22,980 something going on there um just to give you an idea um i did this on a lot of different platforms 69 00:06:23,540 --> 00:06:26,540 and for this this is just uh solaris 2.7 70 00:06:27,360 --> 00:06:33,800 um i did 1.2.27 and 2.0.13 i actually have a lot of comparisons for other ones uh for like bsd and 71 00:06:33,800 --> 00:06:38,440 linux and all but just the verse just the difference between the strip binary and the 72 00:06:38,440 --> 00:06:45,080 unstripped binary um you've got quite a lot of range here on this slide you've got between you 73 00:06:45,080 --> 00:06:54,480 know 600k and 2600k i've seen the binary get up to 76 760k um so there's file size is something 74 00:06:54,480 --> 00:06:56,620 i'm going to touch on a lot here because that's 75 00:06:57,360 --> 00:07:01,640 something that tools look at and something that people can eyeball i need to turn off my radio 76 00:07:02,260 --> 00:07:09,340 here we go um file check sums i've actually got this in a slide later but i think it bears 77 00:07:09,700 --> 00:07:14,240 sufficient weight that i should say it early enough now tripwire will ruin your whole day 78 00:07:15,900 --> 00:07:20,360 everybody who's not running tripwire on your system right now raise your hand please 79 00:07:22,700 --> 00:07:27,280 all the rest of you please raise your hand too come on raise your hands i want to see 80 00:07:27,360 --> 00:07:31,620 the hands that are not i'm not gonna i'm not gonna go after you later just let me get a show of hands 81 00:07:32,280 --> 00:07:39,440 yeah there's there's there's a few okay um binary check something is a really nice tool for 82 00:07:40,000 --> 00:07:44,400 tracking trojans if somebody gains illegitimate access to your system and they change the binary 83 00:07:44,400 --> 00:07:48,100 indiscriminately and unfortunately a lot of people who hack systems nowadays are indiscriminate they 84 00:07:48,100 --> 00:07:52,880 don't really pay attention to the to the fine details um a binary check summing is going to 85 00:07:52,880 --> 00:07:57,340 spot it and is going to hopefully generate the appropriate reg flag not in tomorrow morning's 86 00:07:57,360 --> 00:08:05,440 email um you know preferably on the console that's up there on the wall um the crc 32-bit 87 00:08:05,440 --> 00:08:09,340 checksum algorithm i can and will go into that but i'm not going to do it during this talk because 88 00:08:09,340 --> 00:08:13,040 quite honestly i could do a whole talk on checksumming so if you want to get into like the 89 00:08:13,040 --> 00:08:16,140 differences between the different platforms and the different binary formats and the checksums 90 00:08:16,140 --> 00:08:22,500 and stuff let's let's go drink beer um file access timestamps in unix you have three timestamps you 91 00:08:22,500 --> 00:08:26,800 have the time that the file was last accessed the time that the file was last modified and the time 92 00:08:27,360 --> 00:08:34,320 that the file attributes excluding the above were last changed last time i checked two of those 93 00:08:34,320 --> 00:08:38,380 could be modified by user commands and the third one was a programmatic challenge 94 00:08:40,300 --> 00:08:43,520 still if you're going to screw around with files and you're going to screw around with 95 00:08:43,520 --> 00:08:48,940 file attributes it's best to make note beforehand of what the original ones were 96 00:08:48,940 --> 00:08:53,780 and what the ones are going to be after you change it hopefully those two values will be the 97 00:08:53,780 --> 00:08:57,200 same and that way if somebody does decide to do something cute like diff their entire 98 00:08:57,360 --> 00:09:00,820 file system tree overnight that won't show up in the listing 99 00:09:03,220 --> 00:09:06,460 and understanding the source code and its behavior and this one's going to take two 100 00:09:06,460 --> 00:09:10,980 minutes instead of one um secure shell is a client server protocol yay 101 00:09:10,980 --> 00:09:16,280 it creates an encrypted communication channel between the hosts it performs authentication 102 00:09:16,280 --> 00:09:20,360 against the encrypted password it stores the password in the user credential for the privileged 103 00:09:20,360 --> 00:09:26,840 user only so this actually is a special case okay the encrypted hash does not get stored for anybody 104 00:09:27,360 --> 00:09:34,920 except uid0 so since we have no uid0 that's germane um you can configure this thing there 105 00:09:34,920 --> 00:09:38,640 are two configuration files there's actually the client-side configuration file and the server-side 106 00:09:38,640 --> 00:09:44,580 configuration file and the configurations actually dictate what parts of the code are traversed 107 00:09:44,580 --> 00:09:48,860 during normal execution so it's important to understand what configurations are set up for 108 00:09:48,860 --> 00:09:53,840 example you can disable root login you can do reverse mappings those things if you turn all 109 00:09:53,840 --> 00:09:57,220 that off a system administrator who's looking through the log-in doesn't 110 00:09:57,360 --> 00:10:01,120 see that for a day or two or a week or two might actually get a clue that something's not behaving 111 00:10:01,120 --> 00:10:08,300 the appropriate way um you can do debugging and event logging um the build generates a library 112 00:10:08,820 --> 00:10:16,920 well live ssh session dot a and several helpers the ssh agent uh the key generation um one point 113 00:10:16,920 --> 00:10:19,980 i'm going to make here is that i'm leaving as an exercise to the reader quote unquote 114 00:10:20,960 --> 00:10:27,160 um doing pass phrases okay i did i set this up to do pass words most of the implementations in 115 00:10:27,160 --> 00:10:31,440 fact all of the implementations of ssh i've ever seen do pass words but you can also do pass 116 00:10:31,440 --> 00:10:36,300 phrases that would involve other binaries and more coding but you know just to simplify it and keep it 117 00:10:36,300 --> 00:10:41,940 into a you know fairly narrow spectrum um and conditional compilation within the code supports 118 00:10:41,940 --> 00:10:46,820 various unix variants there's aix code there's a lot of if defs in the code so when you're actually 119 00:10:46,820 --> 00:10:50,780 physically going through the code you need to know what your platform is you need to understand 120 00:10:50,780 --> 00:10:54,940 you know where the branches are going to go and how the conditional compilation is going to work 121 00:10:57,160 --> 00:11:05,060 okay real quick animation of the protocol the server sends a public key over the wire 122 00:11:05,780 --> 00:11:10,660 and it goes to the client the client encrypts a random session key and returns it to the server 123 00:11:11,460 --> 00:11:16,300 the server decrypts the client's session key and then using that the server sends a client 124 00:11:16,300 --> 00:11:21,080 an encryption encrypted challenge which the client can decrypt and then you have your 125 00:11:21,080 --> 00:11:27,040 session established so you it's it's a three-way handshake a la tcpip but it's utilizing encrypted 126 00:11:27,160 --> 00:11:30,640 encryption and it's not sins and acts so much as it is challenging response 127 00:11:33,720 --> 00:11:40,280 and okay one more for the password validation which is going to be a little more detailed as 128 00:11:40,280 --> 00:11:44,520 far as how the code actually the logic in the code actually validates the password that the 129 00:11:44,520 --> 00:11:56,620 user enters oh i'm sorry sucks to be tall um okay the the password database uh on the system 130 00:11:57,160 --> 00:12:01,160 has the encrypted password hash uh everybody understand of course you understand encrypted 131 00:12:01,160 --> 00:12:05,900 password hash that's stored in a structure it's called ssh user rec that's the credential 132 00:12:05,900 --> 00:12:11,860 structure that gets built on the server side and that has the name of the user the directory for 133 00:12:11,860 --> 00:12:16,580 the home directory the shell they're doing it's the gcos fields and a couple of other things okay 134 00:12:18,000 --> 00:12:23,700 what happens in sshd sshd being the demon portion of ssh that runs on the target machine 135 00:12:24,820 --> 00:12:27,040 there are a couple of pieces of 136 00:12:27,040 --> 00:12:33,720 logic that get tested even before the password comparison begins the first one being the number 137 00:12:33,720 --> 00:12:37,960 of password guesses which is configurable in the configuration file the second one 138 00:12:37,960 --> 00:12:42,460 being whether or not root logins are permitted okay and we'll address that later 139 00:12:43,620 --> 00:12:48,780 the password comes in across the wire it's clear text password the password is checked for size 140 00:12:48,780 --> 00:12:55,660 to see if it's less than or equal to 64 so no buffer overruns here there's a couple of checks 141 00:12:55,660 --> 00:12:56,860 that are actually pretty 142 00:12:57,040 --> 00:13:01,120 amusing because they're for rpc and kerberos passwords and they're both empty blocks 143 00:13:01,120 --> 00:13:07,740 i think that's actually got code in it in 2.1 and then the clear text password gets encrypted and 144 00:13:07,740 --> 00:13:12,860 a stir comp happens so the password hash is compared against the encrypted password that 145 00:13:12,860 --> 00:13:17,480 the user entered and if that comes to zero if you've got a comparison that matches then you 146 00:13:17,480 --> 00:13:23,140 authenticate at that point okay so that's that's just the password validation scheme that the sshd 147 00:13:23,140 --> 00:13:23,940 itself uses 148 00:13:27,040 --> 00:13:31,960 is a piece of the configuration file the config file itself would not fit on a single slide so i 149 00:13:31,960 --> 00:13:35,560 just chopped some of it out and put it up here so we could talk about a few points 150 00:13:36,480 --> 00:13:40,940 port 22 is the default port for ssh of course if you're setting up your ssh and it doesn't 151 00:13:40,940 --> 00:13:47,820 happen to talk on port 22 they might notice forward agent and forward x11 are two things 152 00:13:47,820 --> 00:13:56,920 that allow you to do tunneled x sessions through ssh i routinely turn those off i could go into a 153 00:13:57,040 --> 00:14:00,240 i could probably do a talk on why that's a good idea to do that if you want to talk about that we 154 00:14:00,240 --> 00:14:05,240 can do that offline password guess is set to three some places set it to a smaller number 155 00:14:07,460 --> 00:14:11,860 permit root login there's a check in the code that says if your uid is zero 156 00:14:12,420 --> 00:14:17,680 and permit root login says no you get kicked out we will circumvent that 157 00:14:19,820 --> 00:14:22,460 let's see require reverse mapping that's a lot of fun that's 158 00:14:22,460 --> 00:14:27,020 basically dns lookups if you're on an added network and you have an internal dns that's 159 00:14:27,040 --> 00:14:28,680 then those DNS lookups will work. 160 00:14:28,820 --> 00:14:31,300 If not, you might find that your SSH doesn't work. 161 00:14:31,460 --> 00:14:35,340 But regardless, you need to know what these config settings are 162 00:14:36,280 --> 00:14:39,720 because, again, you want your Trojan to behave identically 163 00:14:40,980 --> 00:14:44,540 to the target code, the existing correct target code. 164 00:14:48,360 --> 00:14:49,720 Understanding the vagaries of the software, 165 00:14:49,780 --> 00:14:51,120 the flow of control within the modules, 166 00:14:51,280 --> 00:14:53,320 the scope of the variables within the source code, 167 00:14:53,400 --> 00:14:54,400 and that's actually germane. 168 00:14:54,400 --> 00:14:56,340 There's actually a very good separation of scope 169 00:14:56,340 --> 00:14:58,120 between the modules in SSH, 170 00:14:58,780 --> 00:15:01,040 the supported functionality, and the crypt function. 171 00:15:01,400 --> 00:15:03,920 I spent about two hours really late one night 172 00:15:03,920 --> 00:15:06,380 trying to figure out why crypt wasn't working. 173 00:15:08,000 --> 00:15:11,260 And with caffeine and all that, I just wasn't doing that well. 174 00:15:11,340 --> 00:15:13,100 And all of a sudden, I remembered that there's this notation 175 00:15:13,100 --> 00:15:14,800 in the man page under bugs that says, 176 00:15:14,920 --> 00:15:18,220 oh, yeah, crypt returns a pointer to a static object. 177 00:15:18,480 --> 00:15:20,900 So you call it multiple times, and you get the same hashback. 178 00:15:22,380 --> 00:15:25,220 It was good once I figured that out, 179 00:15:25,260 --> 00:15:26,220 but I really missed those. 180 00:15:26,340 --> 00:15:26,560 Two hours. 181 00:15:28,520 --> 00:15:30,140 Okay, maintaining the core functionality. 182 00:15:30,840 --> 00:15:32,640 Understand how the untainted code responds. 183 00:15:32,800 --> 00:15:35,440 Again, the point here is to have a Trojan 184 00:15:35,440 --> 00:15:38,220 that behaves identically to the accurate 185 00:15:38,220 --> 00:15:40,540 and replaced source code, 186 00:15:40,620 --> 00:15:42,680 with the one exception being that you can get in using it. 187 00:15:44,080 --> 00:15:46,200 That includes the configuration stuff 188 00:15:46,200 --> 00:15:47,500 that we just talked about, logging, 189 00:15:48,260 --> 00:15:49,660 and choosing a special case. 190 00:15:49,800 --> 00:15:51,740 In this case, I said, you know, we're choosing the passwords. 191 00:15:51,840 --> 00:15:53,880 We're not using the passphrases. 192 00:15:54,020 --> 00:15:56,320 If you can pick a special case that's less obvious, 193 00:15:56,340 --> 00:15:57,660 like logging in as root, 194 00:15:58,680 --> 00:16:01,220 and don't gut the code and expect that no one is paying attention, 195 00:16:01,380 --> 00:16:02,880 because, again, once you build your binary, 196 00:16:02,960 --> 00:16:06,120 you want your binary to be as close to the correct size as possible. 197 00:16:08,560 --> 00:16:10,780 One of the things you can do is you can modify logging 198 00:16:11,240 --> 00:16:12,420 that will give you a way. 199 00:16:14,240 --> 00:16:16,820 Your conditional compilation code for TCP wrappers, 200 00:16:16,860 --> 00:16:18,560 if they're not running wrappers, you don't need that code. 201 00:16:19,320 --> 00:16:22,920 The DNS lookups, I don't think administrators really pay that much attention 202 00:16:22,920 --> 00:16:25,300 to whether or not DNS lookup failures show up in the logs. 203 00:16:25,960 --> 00:16:26,320 And so, you know, if you're running a TCP wrapper, 204 00:16:26,340 --> 00:16:28,200 if they have fascist logging enabled, 205 00:16:28,300 --> 00:16:31,820 and fascist logging is actually an option in the config file, 206 00:16:31,940 --> 00:16:33,720 and what it is is it's verbose logging. 207 00:16:33,880 --> 00:16:36,140 It logs the entire connection of the session 208 00:16:36,140 --> 00:16:37,560 and the setup of the connection. 209 00:16:37,780 --> 00:16:40,820 You want to keep that for obvious reasons. 210 00:16:40,880 --> 00:16:42,240 Again, if people are checking the logs. 211 00:16:43,200 --> 00:16:45,340 Failed login attempts should show up. 212 00:16:45,960 --> 00:16:48,520 Administrators might get suspicion if they notice that everybody's having, 213 00:16:48,720 --> 00:16:50,480 you know, everybody's logging in, no problem whatsoever. 214 00:16:51,240 --> 00:16:52,880 And if root logins are disallowed, 215 00:16:52,920 --> 00:16:55,920 failed attempts to log in as root should show up in the logs. 216 00:16:55,920 --> 00:16:57,940 Again, otherwise it arises suspicion. 217 00:17:01,180 --> 00:17:02,720 Don't add stupid variable names. 218 00:17:03,560 --> 00:17:05,580 It's amazing how many rootkits I've run into 219 00:17:05,580 --> 00:17:08,580 where people name things hack and 31337, you know. 220 00:17:08,620 --> 00:17:11,220 That stuff will show up when people start doing forensics. 221 00:17:11,320 --> 00:17:14,780 Even just high-level forensics, like running strings on the thing, okay? 222 00:17:14,860 --> 00:17:17,780 So don't make bad choices. 223 00:17:19,000 --> 00:17:21,060 And be careful of how much code you add. 224 00:17:21,140 --> 00:17:22,880 If you want to do something really clever, 225 00:17:23,020 --> 00:17:24,380 like you want to collect a bunch of passwords 226 00:17:24,380 --> 00:17:29,120 from all the SSH users and you want to mail them to your Hotmail account or whatever, 227 00:17:29,660 --> 00:17:33,200 you're going to put a fairly significant chunk of code into this binary to do that, 228 00:17:33,260 --> 00:17:34,240 and it's going to bloat the thing. 229 00:17:34,360 --> 00:17:36,980 You can strip it, you can do all the optimization you want, 230 00:17:37,060 --> 00:17:38,340 and you're going to have this big fat thing 231 00:17:38,340 --> 00:17:40,000 and you're going to have to figure out how to shrink it down. 232 00:17:41,340 --> 00:17:43,460 So, you know, understand that there are boundaries 233 00:17:43,460 --> 00:17:46,080 within which you can work and try to stay within those boundaries. 234 00:17:46,180 --> 00:17:49,180 Because if you generate a 10 meg binary and the original one was 6 meg, 235 00:17:49,700 --> 00:17:51,300 it'll probably get noticed eventually. 236 00:17:51,700 --> 00:17:54,160 The thing you want is to not be noticed here. 237 00:17:54,160 --> 00:17:56,300 You're trying to do this in as much of a stealth mode as possible. 238 00:17:59,100 --> 00:17:59,920 Commenting your source. 239 00:18:00,420 --> 00:18:02,340 I won't even talk about it. We all know that. 240 00:18:04,520 --> 00:18:06,640 The importance of coding exceptionally well. 241 00:18:06,820 --> 00:18:10,020 If your Trojan binary crashes, they're probably going to catch you. 242 00:18:11,480 --> 00:18:14,460 So even though it's really tempting to be clever when you're doing the code, 243 00:18:14,680 --> 00:18:17,760 it's probably a good idea not to do that and just code straight 244 00:18:17,760 --> 00:18:20,240 and make sure that your functionality is real clean. 245 00:18:21,080 --> 00:18:23,300 And also, people that you pass the code onto 246 00:18:23,300 --> 00:18:26,040 are going to review your efforts and they're going to judge you on those efforts. 247 00:18:27,900 --> 00:18:33,040 And picking a password that is not hack or 31337, 248 00:18:33,340 --> 00:18:35,500 that doesn't show up as a recognizable, you know, 249 00:18:35,540 --> 00:18:40,080 root George is a bad password in any case. 250 00:18:40,120 --> 00:18:43,300 It's especially bad in this case because if they string the binary and they see George, 251 00:18:43,440 --> 00:18:44,020 they're going to notice. 252 00:18:45,440 --> 00:18:47,460 And don't use your regular password, okay? 253 00:18:47,560 --> 00:18:50,480 Because if you distribute your source and you put your regular password in the source, 254 00:18:50,620 --> 00:18:53,280 people are going to pay attention to that and they're probably going to go and try 255 00:18:53,300 --> 00:18:54,460 it on your IP, all right? 256 00:18:56,640 --> 00:18:59,160 This is my little diagram for the scoping issue. 257 00:18:59,380 --> 00:19:02,460 There actually is really... Tattoo's not here and I'm really grateful. 258 00:19:03,880 --> 00:19:07,060 The scoping between the library portion of the code 259 00:19:07,060 --> 00:19:11,380 and the daemon portion of the code is exceptionally clear cut. 260 00:19:11,660 --> 00:19:18,080 You cannot see the password in the SSHD code the way it's written. 261 00:19:18,300 --> 00:19:22,500 You can only have it within scope in the library. 262 00:19:23,300 --> 00:19:25,960 So you've got these two different components of this code 263 00:19:25,960 --> 00:19:32,380 and a complete and total schism between where the encrypted password hash is 264 00:19:32,380 --> 00:19:35,440 and where you want to access it, namely in SSHD. 265 00:19:37,520 --> 00:19:38,680 So what do you do? 266 00:19:38,760 --> 00:19:40,660 You add a new subroutine to the library, 267 00:19:40,920 --> 00:19:44,440 namely give me the password out of the user cred, okay? 268 00:19:44,540 --> 00:19:46,080 So you therefore defeat the scoping issue. 269 00:19:48,780 --> 00:19:51,920 Another logic diagram, a la the earlier one, 270 00:19:52,800 --> 00:19:54,740 are you going to change the password, yes or no? 271 00:19:54,880 --> 00:19:58,340 Is the length of the password greater than 64, yes or no? 272 00:19:58,540 --> 00:20:00,720 Is the password valid, yes or no? 273 00:20:01,120 --> 00:20:03,480 Is the user ID greater than zero, yes or no? 274 00:20:03,880 --> 00:20:06,100 And are root logins allowed, yes or no? 275 00:20:06,460 --> 00:20:10,380 That's the linear progression of the logic within the authentication module itself. 276 00:20:11,180 --> 00:20:14,880 Okay, so this is just a block diagram of the logic within the pertinent module 277 00:20:14,880 --> 00:20:16,320 where the validation actually happens. 278 00:20:18,580 --> 00:20:20,060 All that coughing's making me thirsty. 279 00:20:25,600 --> 00:20:29,040 So given that that's the logic that things are checked in, 280 00:20:29,140 --> 00:20:31,440 if it's necessary for you to reorganize the logic, 281 00:20:31,640 --> 00:20:32,960 you want to retain that functionality, 282 00:20:33,200 --> 00:20:35,140 but you might find that what it is you want to accomplish 283 00:20:35,140 --> 00:20:38,060 requires you to redesign the logic in some way, 284 00:20:38,140 --> 00:20:41,240 reorder things, don't break the functionality, 285 00:20:41,600 --> 00:20:43,580 but maybe do checks in different orders 286 00:20:43,580 --> 00:20:46,100 or maybe put some go-tos or branches in there 287 00:20:46,100 --> 00:20:47,660 so that what you can do is, 288 00:20:48,140 --> 00:20:50,320 if you don't want to check if root logins are allowed, 289 00:20:50,440 --> 00:20:51,900 and I suppose you don't if you're trying to get them, 290 00:20:51,920 --> 00:20:52,320 you don't want to get in as root, 291 00:20:52,480 --> 00:20:54,260 you can probably branch around that code, 292 00:20:54,640 --> 00:20:56,940 except you might want to keep the log there 293 00:20:56,940 --> 00:20:58,520 because there will be logging in there. 294 00:20:58,620 --> 00:21:00,840 If that check fails, it'll spit out a log entry 295 00:21:00,840 --> 00:21:02,500 that says somebody tried to get in as root 296 00:21:02,900 --> 00:21:04,720 with a valid password and that's not allowed. 297 00:21:05,560 --> 00:21:08,080 If you make the decision that you don't think that's important enough 298 00:21:08,080 --> 00:21:10,000 for it to stay in the logs and you need to gut your code 299 00:21:10,000 --> 00:21:11,980 just a little bit more to get it down to where it needs to be, 300 00:21:12,060 --> 00:21:13,480 throw it out, okay? 301 00:21:13,640 --> 00:21:15,820 But these are the kind of decisions that you're making 302 00:21:15,820 --> 00:21:18,740 while you're going through the process of changing this code. 303 00:21:21,920 --> 00:21:25,060 Configurable features will restrict the individual access attempts. 304 00:21:25,240 --> 00:21:26,480 The permit root login is one. 305 00:21:26,620 --> 00:21:27,900 The DNS lookups is another. 306 00:21:28,760 --> 00:21:31,020 This is my little DNS cloud drawing 307 00:21:31,820 --> 00:21:33,980 for those of you who, you know, 308 00:21:33,980 --> 00:21:35,700 if you do a lookup on an IP, 309 00:21:35,800 --> 00:21:37,800 you get the host name back unless it's not resolvable, 310 00:21:37,880 --> 00:21:39,060 in which case you get the IP back. 311 00:21:39,260 --> 00:21:41,600 And the code does check if IP equals host name 312 00:21:41,600 --> 00:21:43,520 and reverse lookups are set, deny. 313 00:21:45,560 --> 00:21:47,980 So you've got to circumvent that within the code. 314 00:21:48,220 --> 00:21:50,760 If you want to not be denied 315 00:21:50,760 --> 00:21:53,540 on a reverse lookup, you've got to comment that out. 316 00:21:53,600 --> 00:21:55,020 In this case, I did something really simple. 317 00:21:55,100 --> 00:21:56,980 It returns true if the lookup fails, 318 00:21:57,160 --> 00:21:58,640 so I just always have it return false, 319 00:21:58,720 --> 00:22:00,720 regardless of whether or not the lookup works. 320 00:22:01,140 --> 00:22:03,520 You won't see any of those messages in the logs anymore 321 00:22:03,520 --> 00:22:05,500 that say DNS lookup failed. 322 00:22:06,080 --> 00:22:09,140 My take on that was most sysadmins won't notice those missing. 323 00:22:12,520 --> 00:22:15,160 And again, the logging is associated with altered functionality. 324 00:22:15,200 --> 00:22:17,460 This is the same principle, essentially, 325 00:22:17,600 --> 00:22:19,860 of just saying, you know, there's your log entry 326 00:22:20,760 --> 00:22:21,880 and you're going to see if your log fails. 327 00:22:25,960 --> 00:22:28,460 The other way of doing it is just to remove the log statement. 328 00:22:28,700 --> 00:22:30,920 If you don't care whether or not the lookup fails 329 00:22:30,920 --> 00:22:33,000 and it doesn't impact what you're trying to do, 330 00:22:33,160 --> 00:22:34,780 you can just strip out the logging statement. 331 00:22:35,500 --> 00:22:39,040 Actually, stripping out the printfs gets you about a K 332 00:22:39,660 --> 00:22:42,240 off your binary for every statement that you lose 333 00:22:42,660 --> 00:22:44,640 because that printf compiles in a bunch of code. 334 00:22:45,380 --> 00:22:47,200 It goes back to the library every time. 335 00:22:49,800 --> 00:22:52,420 Elective surgery to adjust the resulting binary size. 336 00:22:52,860 --> 00:22:56,760 Again, the binary on the original target will have a size 337 00:22:56,760 --> 00:22:59,160 and your root, so you have no excuse for going 338 00:22:59,160 --> 00:23:00,740 and doing an ls on that directory 339 00:23:00,740 --> 00:23:02,500 and seeing what the size of that binary is. 340 00:23:02,580 --> 00:23:04,940 You have no excuse for not going into etsy ssh2 341 00:23:04,940 --> 00:23:06,660 and grabbing that config file. 342 00:23:06,860 --> 00:23:08,500 You need to understand your target 343 00:23:08,500 --> 00:23:10,080 before you do any of this coding. 344 00:23:10,180 --> 00:23:12,280 You want to understand what it is you're trying to replace 345 00:23:12,280 --> 00:23:15,560 so that what you replace it with is so close to 346 00:23:15,560 --> 00:23:19,080 or identical to the original that no one's going to notice. 347 00:23:22,800 --> 00:23:24,940 Removing sufficient code to connect the binary size. 348 00:23:25,100 --> 00:23:28,780 In this case, I threw away the wrappers code. 349 00:23:29,280 --> 00:23:31,320 Basically, there wasn't wrappers running on the target system, 350 00:23:31,500 --> 00:23:32,520 so I didn't need the wrappers code. 351 00:23:32,600 --> 00:23:35,180 There's code in SSHD that integrates with TCP wrappers. 352 00:23:35,340 --> 00:23:37,240 They're not running wrappers. They don't need that code. 353 00:23:37,400 --> 00:23:39,920 I threw that away. I carved 20 K off the binary. 354 00:23:42,420 --> 00:23:44,180 Beware of functional limitations and bugs. 355 00:23:44,180 --> 00:23:46,600 For those of you who've never seen it, this is Solaris 2.6. 356 00:23:47,180 --> 00:23:48,280 This is the crypt function, 357 00:23:48,880 --> 00:23:50,900 and I was actually hoping that this would give 358 00:23:50,900 --> 00:23:52,700 a better illustration of the fact that it returns 359 00:23:52,700 --> 00:23:54,080 that static pointer every time. 360 00:23:55,680 --> 00:23:57,980 In hindsight, I don't really think it gives you any better, 361 00:23:58,140 --> 00:24:00,600 except for the fact there's those consts in comments. 362 00:24:01,380 --> 00:24:03,560 But it is in the man page, and like I said, 363 00:24:03,580 --> 00:24:05,380 at about 4 in the morning, I sort of remembered that 364 00:24:05,380 --> 00:24:06,660 from somewhere deep in my memory, 365 00:24:06,760 --> 00:24:08,580 and I went and pulled it off the shelf and went and said, 366 00:24:08,620 --> 00:24:08,740 yep. 367 00:24:10,160 --> 00:24:12,400 So there will be functional limitations in the code, 368 00:24:12,400 --> 00:24:14,100 and you will run into them, 369 00:24:14,180 --> 00:24:15,920 and you will want to figure out some way to circumvent those. 370 00:24:18,800 --> 00:24:23,000 Probably the most important slide in this entire presentation 371 00:24:23,000 --> 00:24:24,840 is test what you're doing. 372 00:24:25,700 --> 00:24:27,940 Once you put it there, it's there. 373 00:24:28,380 --> 00:24:30,160 And if you screwed up, 374 00:24:30,920 --> 00:24:32,720 I hope your door insurance is paid up. 375 00:24:32,760 --> 00:24:33,400 That's all I've got to say. 376 00:24:34,460 --> 00:24:35,840 Testing is cheaper than door insurance. 377 00:24:39,000 --> 00:24:40,200 Building the binary, 378 00:24:41,180 --> 00:24:43,360 you want to try to use the compile and link options 379 00:24:43,360 --> 00:24:45,380 that are as close to or identical to the target, 380 00:24:45,500 --> 00:24:47,560 again, for the obvious reason that you want the result 381 00:24:47,560 --> 00:24:49,640 to come out as close to or identical to the target 382 00:24:49,640 --> 00:24:50,440 that you're going to replace. 383 00:24:50,880 --> 00:24:53,160 If they happen to have been nice and left you the source tree 384 00:24:53,160 --> 00:24:56,360 on the system that you're going to put the trojan on, 385 00:24:56,460 --> 00:24:58,920 I suggest you go and pull the make file and use it. 386 00:25:00,880 --> 00:25:02,420 If you have access to the target, 387 00:25:02,520 --> 00:25:04,160 which you assumably do since you rooted it. 388 00:25:04,320 --> 00:25:06,600 If you don't have access to the target for whatever reason, 389 00:25:06,660 --> 00:25:07,800 you let your connection time out, 390 00:25:08,820 --> 00:25:09,920 use the defaults. 391 00:25:09,920 --> 00:25:10,820 Go for full optimization. 392 00:25:11,180 --> 00:25:12,160 Play around with it. 393 00:25:12,420 --> 00:25:13,200 Experiment a little. 394 00:25:13,360 --> 00:25:15,680 You'll come up with something that's close or not close enough. 395 00:25:15,860 --> 00:25:16,960 If you use full optimization, 396 00:25:17,200 --> 00:25:18,040 the worst thing that will happen 397 00:25:18,040 --> 00:25:19,380 is they'll get an increase in performance. 398 00:25:19,620 --> 00:25:21,040 I don't think they'll complain about that. 399 00:25:22,420 --> 00:25:25,160 And use an identical machine in OS, obviously. 400 00:25:25,820 --> 00:25:26,180 Okay. 401 00:25:27,800 --> 00:25:30,140 You'd be surprised how many people build a binary on Linux 402 00:25:30,140 --> 00:25:31,380 and try to install it on Solaris 403 00:25:31,380 --> 00:25:32,220 and wonder why it doesn't work. 404 00:25:32,320 --> 00:25:32,520 Okay. 405 00:25:32,540 --> 00:25:33,480 I'm sorry. 406 00:25:33,600 --> 00:25:34,940 I'm not trying to pander to the audience, 407 00:25:35,040 --> 00:25:35,780 but, you know, it's happened. 408 00:25:38,040 --> 00:25:39,540 And size the binary collection. 409 00:25:39,540 --> 00:25:40,300 Collect correctly. 410 00:25:41,760 --> 00:25:43,860 You've got to go to this Las Vegas Hilton, man. 411 00:25:43,900 --> 00:25:44,960 This Star Trek place was good. 412 00:25:48,180 --> 00:25:49,120 Run a checksum. 413 00:25:49,220 --> 00:25:50,540 If you think they're running... 414 00:25:50,540 --> 00:25:52,300 By now, if you've gotten into this system 415 00:25:52,300 --> 00:25:53,160 and you haven't figured out 416 00:25:53,160 --> 00:25:54,200 that they're running a checksum program, 417 00:25:54,460 --> 00:25:55,460 you shouldn't be doing this at all. 418 00:25:55,840 --> 00:25:56,040 Okay? 419 00:25:56,160 --> 00:25:57,840 So, enough said there. 420 00:25:59,200 --> 00:26:00,460 Do it all in your lab. 421 00:26:00,660 --> 00:26:00,920 You know? 422 00:26:01,080 --> 00:26:01,720 Checksum the binary. 423 00:26:02,000 --> 00:26:03,300 If you have to figure out... 424 00:26:03,300 --> 00:26:05,300 And we'll talk about it in the next slide. 425 00:26:05,400 --> 00:26:07,280 How to modify the binary so the checksum works. 426 00:26:07,360 --> 00:26:08,160 How to size the binary 427 00:26:08,160 --> 00:26:09,700 so that it's the appropriate size. 428 00:26:10,760 --> 00:26:12,360 Do all this in your lab. 429 00:26:12,520 --> 00:26:13,860 I know you, you know, 430 00:26:13,880 --> 00:26:15,240 you are going to root this... 431 00:26:15,240 --> 00:26:16,780 You've rooted this E4500 432 00:26:16,780 --> 00:26:19,500 and all you have at home is an Ultra 5. 433 00:26:19,700 --> 00:26:19,940 Okay? 434 00:26:20,360 --> 00:26:22,960 If it's running 64-bit Solaris 2.7, 435 00:26:23,120 --> 00:26:25,240 it's running 64-bit Solaris 2.7. 436 00:26:25,300 --> 00:26:26,800 No, it's not running the SMP code, 437 00:26:26,900 --> 00:26:27,860 but don't worry about that. 438 00:26:27,940 --> 00:26:29,100 Just do all this other stuff 439 00:26:29,100 --> 00:26:29,700 and you'll be okay. 440 00:26:30,560 --> 00:26:31,100 You know? 441 00:26:31,140 --> 00:26:32,520 And don't do it on your FreeBSD box. 442 00:26:32,620 --> 00:26:33,860 It compiles a hell of a lot faster, 443 00:26:33,940 --> 00:26:34,680 but it's not going to work. 444 00:26:36,960 --> 00:26:38,240 And write a README file. 445 00:26:38,860 --> 00:26:40,620 Because if you're going to put it out in the community, 446 00:26:42,560 --> 00:26:44,460 it's nice to just give it to people 447 00:26:44,460 --> 00:26:45,840 and let them know what it is you did 448 00:26:45,840 --> 00:26:47,980 and give them an idea of where you stopped 449 00:26:47,980 --> 00:26:49,860 and what they can do with it. 450 00:26:49,940 --> 00:26:51,220 For example, I did the passwords. 451 00:26:51,420 --> 00:26:52,920 If somebody in here is going to do one 452 00:26:53,380 --> 00:26:55,780 and it's going to be the past phrases, 453 00:26:56,460 --> 00:26:57,840 okay, it's in the README file. 454 00:26:58,020 --> 00:26:59,960 So you know, okay, I haven't done the past phrases, 455 00:27:00,060 --> 00:27:01,240 but it's on the to-do list. 456 00:27:03,280 --> 00:27:04,160 And be paranoid. 457 00:27:04,160 --> 00:27:07,580 Because there's a high assumable risk 458 00:27:07,580 --> 00:27:08,880 in what I'm talking about here. 459 00:27:09,260 --> 00:27:10,520 Essentially what I'm talking about 460 00:27:10,520 --> 00:27:11,360 is doing something that, 461 00:27:11,400 --> 00:27:12,320 in the United States at least, 462 00:27:12,340 --> 00:27:12,640 is illegal. 463 00:27:13,440 --> 00:27:16,460 So you want to, you know, take it seriously. 464 00:27:17,020 --> 00:27:18,500 You've already compromised your position. 465 00:27:18,640 --> 00:27:19,500 You've already rooted a box. 466 00:27:19,640 --> 00:27:21,060 But you want to take this seriously. 467 00:27:21,400 --> 00:27:21,760 Okay? 468 00:27:22,380 --> 00:27:24,060 Those of you who have had your doors kicked down 469 00:27:24,060 --> 00:27:24,660 at five in the morning 470 00:27:24,660 --> 00:27:25,420 know what I'm talking about. 471 00:27:25,480 --> 00:27:26,720 The rest of you, take my word on it. 472 00:27:28,520 --> 00:27:30,080 And the twelve important things to remember 473 00:27:30,080 --> 00:27:30,860 before you begin. 474 00:27:31,060 --> 00:27:33,180 Number one, fix the size and the checksum. 475 00:27:33,700 --> 00:27:34,140 Number two, 476 00:27:34,160 --> 00:27:36,300 fix the time differences. 477 00:27:36,840 --> 00:27:37,980 This is sort of a checklist 478 00:27:37,980 --> 00:27:39,420 for when you're actually going in 479 00:27:39,420 --> 00:27:40,260 and doing the install. 480 00:27:40,440 --> 00:27:41,660 What are the things you want to do 481 00:27:41,660 --> 00:27:43,160 when you're installing the thing on the system? 482 00:27:43,340 --> 00:27:44,600 Number three is check for tripwire. 483 00:27:44,860 --> 00:27:46,200 You should already know if tripwire 484 00:27:46,200 --> 00:27:47,300 and other tools are running. 485 00:27:47,560 --> 00:27:47,920 Okay? 486 00:27:48,000 --> 00:27:48,740 And if they are, 487 00:27:49,380 --> 00:27:50,720 you shouldn't be at this point. 488 00:27:50,820 --> 00:27:50,960 Right? 489 00:27:51,040 --> 00:27:51,800 You should have gone away 490 00:27:51,800 --> 00:27:52,800 a long time ago. 491 00:27:54,060 --> 00:27:56,320 Check for immutable binaries on BSD systems. 492 00:27:56,500 --> 00:27:57,180 It's a lot of fun 493 00:27:57,180 --> 00:27:58,380 when you go to try to install this 494 00:27:58,380 --> 00:27:59,180 on a BSD system 495 00:27:59,180 --> 00:28:00,340 and it won't install 496 00:28:00,340 --> 00:28:01,140 and you can't move it 497 00:28:01,140 --> 00:28:01,900 and you can't copy it 498 00:28:01,900 --> 00:28:02,600 and you can't RM it 499 00:28:02,600 --> 00:28:03,600 and then you remember, oh yeah, 500 00:28:04,160 --> 00:28:04,960 there's an extra high order part 501 00:28:04,960 --> 00:28:07,000 over there in the file attributes. 502 00:28:07,200 --> 00:28:07,940 I wonder if it's immutable. 503 00:28:09,700 --> 00:28:10,760 Check for cron jobs 504 00:28:10,760 --> 00:28:11,900 that run massive diffs 505 00:28:11,900 --> 00:28:12,880 across the file system, 506 00:28:13,080 --> 00:28:15,200 what I call tripwire wannabes. 507 00:28:16,760 --> 00:28:17,860 That's going to catch you 508 00:28:17,860 --> 00:28:19,580 if you're not exactly dead on 509 00:28:19,580 --> 00:28:21,080 for size and checksum. 510 00:28:21,200 --> 00:28:21,740 So again, 511 00:28:23,020 --> 00:28:24,280 check for remote monitoring 512 00:28:24,280 --> 00:28:25,440 that tracks disk space 513 00:28:25,440 --> 00:28:26,720 and CPU utilization. 514 00:28:27,060 --> 00:28:28,280 There's nothing more discouraging 515 00:28:28,280 --> 00:28:29,120 than to be sitting there 516 00:28:29,120 --> 00:28:30,020 trying to do the install 517 00:28:30,020 --> 00:28:30,540 on this thing 518 00:28:30,540 --> 00:28:31,900 while somebody's big brother's screen 519 00:28:31,900 --> 00:28:32,660 has gone red 520 00:28:32,660 --> 00:28:33,740 on the left-hand side 521 00:28:34,160 --> 00:28:35,140 of all the disk utilization 522 00:28:35,140 --> 00:28:36,280 and CPU utilization. 523 00:28:36,480 --> 00:28:36,740 They're all going, 524 00:28:36,800 --> 00:28:37,680 nobody's on that machine. 525 00:28:37,780 --> 00:28:38,420 Why is that happening? 526 00:28:39,900 --> 00:28:41,180 Check for serial logging 527 00:28:41,680 --> 00:28:43,040 to the extent that you can. 528 00:28:43,180 --> 00:28:44,360 Go into syslog.conf 529 00:28:44,360 --> 00:28:45,020 and look and see 530 00:28:45,020 --> 00:28:46,040 if they're actually dumping stuff 531 00:28:46,040 --> 00:28:46,580 to a PC 532 00:28:46,580 --> 00:28:49,100 over a null modem cable. 533 00:28:49,560 --> 00:28:50,380 If they are, 534 00:28:50,600 --> 00:28:51,940 you're probably outed already, 535 00:28:52,180 --> 00:28:53,480 but you might as well know why. 536 00:28:55,760 --> 00:28:57,320 Check for other hacks or tools 537 00:28:57,320 --> 00:28:58,620 like keystroke monitors. 538 00:28:58,920 --> 00:29:00,160 Why are you doing this work 539 00:29:00,160 --> 00:29:00,660 on a machine 540 00:29:00,660 --> 00:29:01,300 that somebody else 541 00:29:01,300 --> 00:29:02,080 has already rooted 542 00:29:02,080 --> 00:29:02,800 and giving them 543 00:29:02,800 --> 00:29:05,080 all this free information? 544 00:29:05,520 --> 00:29:06,380 Let them go download 545 00:29:06,380 --> 00:29:06,940 the tarball 546 00:29:06,940 --> 00:29:07,640 and figure it out. 547 00:29:09,200 --> 00:29:10,220 Don't hup the daemon 548 00:29:10,220 --> 00:29:11,860 when you're still connected 549 00:29:11,860 --> 00:29:12,920 using SSH. 550 00:29:15,300 --> 00:29:15,940 Okay, good, 551 00:29:16,020 --> 00:29:16,980 I don't have to explain that one. 552 00:29:18,040 --> 00:29:19,060 Remove the source tree 553 00:29:19,060 --> 00:29:19,700 if you do build 554 00:29:19,700 --> 00:29:20,520 on the target machine. 555 00:29:21,360 --> 00:29:22,140 And finally, 556 00:29:22,300 --> 00:29:22,900 no, not finally, 557 00:29:22,960 --> 00:29:23,780 clean up all the logs 558 00:29:23,780 --> 00:29:24,540 including sulog 559 00:29:24,540 --> 00:29:25,200 and all those logs. 560 00:29:25,640 --> 00:29:26,760 And avoid the temptation 561 00:29:26,760 --> 00:29:28,060 to log onto IRC 562 00:29:28,060 --> 00:29:29,460 and brag about your latest hack. 563 00:29:30,760 --> 00:29:31,840 So this is my list 564 00:29:32,080 --> 00:29:32,820 of the 12 important things 565 00:29:32,820 --> 00:29:34,000 to remember before you begin. 566 00:29:35,420 --> 00:29:36,560 Once you do the install, 567 00:29:36,660 --> 00:29:37,820 before you do the install 568 00:29:37,820 --> 00:29:38,240 on the target, 569 00:29:38,380 --> 00:29:39,600 try it on your own system. 570 00:29:39,900 --> 00:29:40,420 You know, 571 00:29:40,940 --> 00:29:41,760 circumvent network obstacles 572 00:29:41,760 --> 00:29:42,580 if you need to. 573 00:29:42,680 --> 00:29:43,400 If you're punching through 574 00:29:43,400 --> 00:29:44,200 a checkpoint firewall 575 00:29:44,200 --> 00:29:45,300 because you went to Black Hat 576 00:29:45,300 --> 00:29:46,180 and you saw that great talk 577 00:29:46,180 --> 00:29:47,020 that those guys gave 578 00:29:47,020 --> 00:29:47,880 and you just want to try 579 00:29:47,880 --> 00:29:48,400 all that stuff. 580 00:29:50,080 --> 00:29:51,060 Figure out how long 581 00:29:51,060 --> 00:29:51,780 it's going to take. 582 00:29:52,400 --> 00:29:52,800 Okay? 583 00:29:53,760 --> 00:29:54,420 There's actually, 584 00:29:54,580 --> 00:29:54,900 you know, 585 00:29:54,960 --> 00:29:56,020 there's this thing 586 00:29:56,020 --> 00:29:56,940 called time. 587 00:29:57,480 --> 00:29:59,240 And you actually use it up 588 00:29:59,240 --> 00:30:00,100 when you're getting 589 00:30:00,100 --> 00:30:00,880 into a system, 590 00:30:01,960 --> 00:30:02,600 copying stuff, 591 00:30:03,300 --> 00:30:03,940 touching files, 592 00:30:04,600 --> 00:30:04,920 chmodding, 593 00:30:05,000 --> 00:30:05,700 choning things. 594 00:30:06,020 --> 00:30:06,740 It takes a while. 595 00:30:06,900 --> 00:30:07,060 I mean, 596 00:30:07,080 --> 00:30:08,060 I don't care how fast you type. 597 00:30:08,240 --> 00:30:09,100 Figure out how long 598 00:30:09,100 --> 00:30:09,660 it's going to take. 599 00:30:09,720 --> 00:30:10,480 If you're going to be spending 600 00:30:10,480 --> 00:30:11,280 one or two hours 601 00:30:11,280 --> 00:30:11,940 on their system, 602 00:30:12,800 --> 00:30:13,580 plan for that. 603 00:30:13,760 --> 00:30:14,960 And make sure you don't do it, 604 00:30:14,980 --> 00:30:15,560 you know, 605 00:30:15,580 --> 00:30:16,360 at 3 in the afternoon. 606 00:30:16,560 --> 00:30:17,380 Or maybe you want to do it 607 00:30:17,380 --> 00:30:18,000 at 3 in the afternoon 608 00:30:18,000 --> 00:30:18,560 because that's where 609 00:30:18,560 --> 00:30:19,500 everybody's using it. 610 00:30:19,560 --> 00:30:20,160 You're going to be slow 611 00:30:20,160 --> 00:30:20,840 but you don't care. 612 00:30:20,960 --> 00:30:21,520 They won't notice. 613 00:30:21,680 --> 00:30:22,760 If you do it at 3 in the morning 614 00:30:22,760 --> 00:30:23,320 and the utilization 615 00:30:23,320 --> 00:30:24,440 has a little spike in it 616 00:30:24,440 --> 00:30:25,260 on their MRTGs, 617 00:30:25,360 --> 00:30:26,300 that might not be good either. 618 00:30:27,080 --> 00:30:28,400 And the goal is to anticipate 619 00:30:30,880 --> 00:30:30,960 this is, 620 00:30:30,960 --> 00:30:31,560 like I said, 621 00:30:31,620 --> 00:30:32,640 originally when I did this 622 00:30:32,640 --> 00:30:32,920 I thought, 623 00:30:32,980 --> 00:30:33,060 oh, 624 00:30:33,080 --> 00:30:34,020 I'm just going to put some logic 625 00:30:34,020 --> 00:30:34,340 in here, 626 00:30:34,400 --> 00:30:34,880 build the thing, 627 00:30:34,960 --> 00:30:35,740 and I'm going to throw it up there. 628 00:30:35,840 --> 00:30:37,060 But it winds up being non-trivial. 629 00:30:39,160 --> 00:30:39,900 Gaining root access, 630 00:30:40,300 --> 00:30:41,260 this is the third step, 631 00:30:41,380 --> 00:30:42,320 how to actually get in. 632 00:30:42,420 --> 00:30:43,040 And my slide says 633 00:30:43,040 --> 00:30:43,740 check bug track 634 00:30:43,740 --> 00:30:44,520 because it's more current 635 00:30:44,520 --> 00:30:45,140 than this slide. 636 00:30:46,040 --> 00:30:46,360 Okay? 637 00:30:48,100 --> 00:30:48,420 Um, 638 00:30:50,320 --> 00:30:50,960 remote exploits, 639 00:30:50,980 --> 00:30:51,680 I just made a list 640 00:30:51,680 --> 00:30:52,140 of some crap 641 00:30:52,140 --> 00:30:52,680 that, 642 00:30:52,740 --> 00:30:53,280 you know, 643 00:30:53,300 --> 00:30:54,520 was actually on bug track 644 00:30:54,520 --> 00:30:55,500 at the time that I wrote this 645 00:30:55,500 --> 00:30:56,280 which is back in April. 646 00:30:56,380 --> 00:30:57,000 So a lot of this stuff 647 00:30:57,000 --> 00:30:58,340 is probably already patched 648 00:30:58,340 --> 00:30:59,660 but I just said, 649 00:31:00,880 --> 00:31:01,060 here's an example 650 00:31:01,060 --> 00:31:01,660 of some stuff, 651 00:31:01,820 --> 00:31:02,540 different OSs 652 00:31:02,540 --> 00:31:03,240 and different things 653 00:31:03,240 --> 00:31:04,160 that are current right now. 654 00:31:04,460 --> 00:31:04,820 Um, 655 00:31:04,960 --> 00:31:05,600 for those of you 656 00:31:05,600 --> 00:31:06,720 who are sitting there going, 657 00:31:06,860 --> 00:31:06,960 well, 658 00:31:07,000 --> 00:31:08,120 I don't have any remote exploits. 659 00:31:08,160 --> 00:31:08,280 Well, 660 00:31:08,360 --> 00:31:09,140 there's some on bug track. 661 00:31:10,520 --> 00:31:11,620 And gaining root access 662 00:31:11,620 --> 00:31:12,200 on a system 663 00:31:12,200 --> 00:31:13,120 that you've already compromised, 664 00:31:13,340 --> 00:31:13,400 well, 665 00:31:13,460 --> 00:31:14,660 you already know how to do that, 666 00:31:14,720 --> 00:31:15,040 don't you? 667 00:31:15,800 --> 00:31:16,160 Um, 668 00:31:16,900 --> 00:31:17,440 but again, 669 00:31:17,500 --> 00:31:18,560 I put a few examples up here 670 00:31:18,560 --> 00:31:19,000 just for show. 671 00:31:22,000 --> 00:31:22,720 And circumventing 672 00:31:22,720 --> 00:31:23,340 network obstacles, 673 00:31:23,780 --> 00:31:24,740 scanning for ports, 674 00:31:24,840 --> 00:31:25,920 scanning past the firewall, 675 00:31:26,180 --> 00:31:26,620 all of that, 676 00:31:26,720 --> 00:31:27,140 you know, 677 00:31:27,140 --> 00:31:28,100 who here was at Black Hat? 678 00:31:28,220 --> 00:31:28,880 Can I get a show of hands 679 00:31:30,880 --> 00:31:31,760 Did you guys catch that talk, 680 00:31:31,840 --> 00:31:32,580 Doug Sung's talk? 681 00:31:33,740 --> 00:31:34,660 I love to see 682 00:31:34,660 --> 00:31:35,960 a commercial product obliterated 683 00:31:35,960 --> 00:31:36,700 in front of an audience. 684 00:31:36,840 --> 00:31:37,380 It's so much fun. 685 00:31:39,200 --> 00:31:40,160 poke through the ports, 686 00:31:40,580 --> 00:31:41,060 you know, 687 00:31:41,080 --> 00:31:42,260 passive FTP tunneling, 688 00:31:42,300 --> 00:31:43,080 there were examples of that 689 00:31:43,080 --> 00:31:43,560 in that talk. 690 00:31:45,040 --> 00:31:45,800 And figure out 691 00:31:45,800 --> 00:31:46,520 how long it will take. 692 00:31:46,640 --> 00:31:46,800 Again, 693 00:31:46,920 --> 00:31:48,040 do a dry run of the thing. 694 00:31:48,240 --> 00:31:48,560 Essentially, 695 00:31:48,720 --> 00:31:49,400 what you want to do 696 00:31:49,400 --> 00:31:50,440 is you want to practice this. 697 00:31:50,520 --> 00:31:51,360 It's like doing a talk, 698 00:31:51,480 --> 00:31:51,640 you know, 699 00:31:51,700 --> 00:31:52,540 although some of you out there 700 00:31:52,540 --> 00:31:53,640 may be objecting at this point. 701 00:31:54,080 --> 00:31:54,400 Um, 702 00:31:54,560 --> 00:31:55,980 you need to rehearse the talk, 703 00:31:56,080 --> 00:31:57,060 you need to rehearse the hack. 704 00:31:57,260 --> 00:31:58,500 Because you want to get it smooth, 705 00:31:58,640 --> 00:31:59,200 you want to get it 706 00:31:59,200 --> 00:32:00,020 to where you can say, 707 00:32:00,880 --> 00:32:01,280 I can do this thing 708 00:32:01,780 --> 00:32:02,700 without a lot of, 709 00:32:03,120 --> 00:32:04,340 I don't want to wind up 710 00:32:04,340 --> 00:32:05,140 halfway in the middle 711 00:32:05,140 --> 00:32:06,600 of trojan-ing somebody's SSH 712 00:32:06,600 --> 00:32:07,360 and find a gotcha. 713 00:32:07,700 --> 00:32:09,160 That would be a bad place to be. 714 00:32:12,440 --> 00:32:13,500 And the last part, 715 00:32:13,620 --> 00:32:14,460 which I call share, 716 00:32:14,660 --> 00:32:15,980 which is planning for the future. 717 00:32:16,480 --> 00:32:17,960 Post your package discreetly 718 00:32:17,960 --> 00:32:18,960 so that others can expand 719 00:32:18,960 --> 00:32:19,620 on your work. 720 00:32:21,800 --> 00:32:23,200 Maybe a full-blown rootkit 721 00:32:23,200 --> 00:32:24,020 is what you want to do 722 00:32:24,020 --> 00:32:24,980 to this system ultimately. 723 00:32:25,520 --> 00:32:25,920 Okay, 724 00:32:26,000 --> 00:32:27,080 this is for the target machine 725 00:32:27,080 --> 00:32:27,880 that we're talking about 726 00:32:27,880 --> 00:32:28,480 once you've actually 727 00:32:28,480 --> 00:32:29,280 accomplished this. 728 00:32:29,540 --> 00:32:30,820 Maybe you want to rootkit them 729 00:32:30,880 --> 00:32:31,720 maybe you're going to put 730 00:32:31,720 --> 00:32:32,500 sniffers on there, 731 00:32:32,620 --> 00:32:33,400 maybe you're going to put 732 00:32:33,400 --> 00:32:34,300 other trojans on there, 733 00:32:34,360 --> 00:32:35,260 maybe you want to put a nice, 734 00:32:35,360 --> 00:32:36,960 I've got a great little FTPD 735 00:32:36,960 --> 00:32:38,460 that's got an extra command 736 00:32:38,460 --> 00:32:40,040 added to the lexical analyzer 737 00:32:40,040 --> 00:32:40,760 that's called shell, 738 00:32:40,880 --> 00:32:41,560 S-H-E-L. 739 00:32:43,060 --> 00:32:43,200 Um, 740 00:32:44,700 --> 00:32:45,340 so yeah, 741 00:32:45,480 --> 00:32:45,660 plant, 742 00:32:45,760 --> 00:32:45,980 you know, 743 00:32:46,000 --> 00:32:46,600 once you're done, 744 00:32:46,740 --> 00:32:46,960 you know, 745 00:32:46,980 --> 00:32:47,840 pat yourself on the back 746 00:32:47,840 --> 00:32:48,820 but don't stop there. 747 00:32:48,900 --> 00:32:50,000 Think what else you can do 748 00:32:50,000 --> 00:32:50,800 with this 749 00:32:50,800 --> 00:32:52,220 and or with other things 750 00:32:52,220 --> 00:32:53,240 to expand your access. 751 00:32:54,840 --> 00:32:56,340 And just to be fair about it, 752 00:32:56,400 --> 00:32:57,080 I threw in the slide 753 00:32:57,080 --> 00:32:58,540 to talk about protecting yourself 754 00:32:58,540 --> 00:32:59,720 against trojan binaries. 755 00:33:00,020 --> 00:33:00,380 Again, 756 00:33:00,380 --> 00:33:01,820 tripwire will ruin your whole day. 757 00:33:01,960 --> 00:33:02,860 I think it's an excellent tool, 758 00:33:02,960 --> 00:33:03,500 it costs nothing, 759 00:33:03,640 --> 00:33:04,740 it installs very cleanly 760 00:33:04,740 --> 00:33:05,480 and it does the job. 761 00:33:06,260 --> 00:33:06,620 Uh, 762 00:33:06,760 --> 00:33:07,780 the immutable bit on, 763 00:33:07,840 --> 00:33:08,980 on BSD systems, 764 00:33:09,120 --> 00:33:10,460 if you're running a BSD system, 765 00:33:10,600 --> 00:33:11,840 you have that high order 766 00:33:13,280 --> 00:33:14,000 eight bits 767 00:33:14,000 --> 00:33:15,180 in the file descriptor 768 00:33:15,180 --> 00:33:16,560 and it has the immutable bit. 769 00:33:16,720 --> 00:33:17,780 And you can set that 770 00:33:17,780 --> 00:33:18,680 so that your binaries 771 00:33:18,680 --> 00:33:19,560 cannot be changed 772 00:33:19,560 --> 00:33:20,860 except if you're the root user. 773 00:33:20,980 --> 00:33:21,420 Now of course, 774 00:33:21,420 --> 00:33:22,500 if they've got root on your box, 775 00:33:22,640 --> 00:33:24,040 they're probably going to see that 776 00:33:24,040 --> 00:33:24,800 and they're going to change it 777 00:33:24,800 --> 00:33:25,880 but it will slow them down 778 00:33:25,880 --> 00:33:26,340 a little. 779 00:33:26,840 --> 00:33:27,200 Okay? 780 00:33:27,480 --> 00:33:28,260 The other thing is 781 00:33:28,260 --> 00:33:29,280 you can set your whole file system 782 00:33:29,280 --> 00:33:30,040 to be read only. 783 00:33:30,580 --> 00:33:30,940 Alright? 784 00:33:31,000 --> 00:33:31,860 If you put your binaries 785 00:33:31,860 --> 00:33:32,560 on slash user, 786 00:33:32,640 --> 00:33:33,160 slash local, 787 00:33:33,260 --> 00:33:33,680 slash bin, 788 00:33:33,780 --> 00:33:34,280 slash whatever, 789 00:33:34,540 --> 00:33:34,960 uh, 790 00:33:35,820 --> 00:33:37,100 people aren't writing to that. 791 00:33:37,180 --> 00:33:38,220 The only person who's writing to that 792 00:33:38,220 --> 00:33:38,820 is the sysadmin 793 00:33:38,820 --> 00:33:39,520 when he's doing install. 794 00:33:39,700 --> 00:33:40,500 Make the thing read only. 795 00:33:40,640 --> 00:33:41,380 It doesn't slow it down. 796 00:33:41,780 --> 00:33:42,340 And again, 797 00:33:42,460 --> 00:33:43,320 somebody will get in there 798 00:33:43,320 --> 00:33:44,400 and they'll try to write over the thing 799 00:33:44,400 --> 00:33:45,040 and it won't happen 800 00:33:45,040 --> 00:33:46,500 and it'll stop them in their tracks. 801 00:33:48,120 --> 00:33:48,840 Proactive auditing, 802 00:33:48,860 --> 00:33:49,320 auditing, 803 00:33:49,780 --> 00:33:50,840 diffing your file systems. 804 00:33:50,940 --> 00:33:52,120 If you can't run tripwire, 805 00:33:52,680 --> 00:33:53,720 run a find across 806 00:33:53,720 --> 00:33:55,120 your whole friggin' file system. 807 00:33:55,200 --> 00:33:55,480 Okay? 808 00:33:55,640 --> 00:33:57,100 It takes about ten minutes 809 00:33:57,100 --> 00:33:57,860 on a SCSI disk. 810 00:33:58,280 --> 00:33:58,800 You know, 811 00:33:58,820 --> 00:33:59,820 on a decent sized machine. 812 00:34:00,380 --> 00:34:01,160 And you'll get the diffs 813 00:34:01,160 --> 00:34:02,080 and you put them in your mailbox. 814 00:34:02,380 --> 00:34:03,540 And you'll see them in the morning. 815 00:34:03,600 --> 00:34:04,660 If you happen to see that root 816 00:34:04,660 --> 00:34:05,840 in the password file 817 00:34:05,840 --> 00:34:07,680 shows up on that file system diff, 818 00:34:07,900 --> 00:34:08,880 then it might 819 00:34:08,880 --> 00:34:10,300 start to ring some bells for you 820 00:34:10,300 --> 00:34:11,140 and you might decide to do 821 00:34:11,140 --> 00:34:12,100 a little poking around. 822 00:34:14,600 --> 00:34:15,800 Real hackers are lazy. 823 00:34:17,380 --> 00:34:17,740 Okay? 824 00:34:17,780 --> 00:34:18,380 Enough said. 825 00:34:19,000 --> 00:34:20,360 Know what you intend to accomplish. 826 00:34:21,120 --> 00:34:21,940 Consider the source. 827 00:34:22,100 --> 00:34:23,060 Change as little as possible. 828 00:34:23,280 --> 00:34:23,580 Please, 829 00:34:23,700 --> 00:34:23,980 please, 830 00:34:24,100 --> 00:34:24,320 please, 831 00:34:24,460 --> 00:34:25,400 please test your stuff. 832 00:34:25,640 --> 00:34:26,580 It is so frustrating. 833 00:34:26,740 --> 00:34:27,540 I had one break on me. 834 00:34:27,560 --> 00:34:28,020 It really sucked. 835 00:34:28,760 --> 00:34:29,120 Um, 836 00:34:30,380 --> 00:34:30,900 simulate the original 837 00:34:30,900 --> 00:34:31,880 as closely as possible. 838 00:34:32,060 --> 00:34:32,740 Do your homework. 839 00:34:32,960 --> 00:34:33,880 Don't get caught unprepared. 840 00:34:34,000 --> 00:34:34,640 Do a dry run. 841 00:34:34,760 --> 00:34:35,340 Make sure you know 842 00:34:35,340 --> 00:34:36,000 what you're getting into. 843 00:34:36,560 --> 00:34:37,620 And share the information 844 00:34:37,620 --> 00:34:38,660 so that the rest of us 845 00:34:38,660 --> 00:34:38,980 can learn. 846 00:34:40,960 --> 00:34:41,860 And where to go 847 00:34:41,860 --> 00:34:42,360 to learn more? 848 00:34:42,860 --> 00:34:43,740 I'm going to post 849 00:34:43,740 --> 00:34:44,240 the package up 850 00:34:44,240 --> 00:34:45,060 on an FTP site. 851 00:34:46,260 --> 00:34:47,240 Probably not today. 852 00:34:47,760 --> 00:34:47,860 Um, 853 00:34:48,240 --> 00:34:48,600 actually, 854 00:34:48,620 --> 00:34:49,640 probably not this week 855 00:34:49,640 --> 00:34:50,100 at this point. 856 00:34:50,200 --> 00:34:50,800 It'll probably be 857 00:34:50,800 --> 00:34:51,500 next week sometime. 858 00:34:52,060 --> 00:34:53,400 I will post these slides 859 00:34:53,400 --> 00:34:54,580 up on the web page. 860 00:34:55,180 --> 00:34:56,220 I have not done that, 861 00:34:56,280 --> 00:34:56,520 but I, 862 00:34:56,540 --> 00:34:56,700 again, 863 00:34:56,740 --> 00:34:57,220 I will do that 864 00:34:57,220 --> 00:34:57,800 when I get back. 865 00:34:58,240 --> 00:34:59,120 And if you want 866 00:34:59,120 --> 00:34:59,860 to contact me, 867 00:35:00,020 --> 00:35:00,700 it's wrangler 868 00:35:00,700 --> 00:35:01,600 at netpublishing.com 869 00:35:01,600 --> 00:35:02,260 is an email 870 00:35:02,260 --> 00:35:03,060 that I will answer. 871 00:35:08,280 --> 00:35:09,360 Where are we for time? 872 00:35:09,600 --> 00:35:10,000 Who's, 873 00:35:10,000 --> 00:35:10,740 who's got to watch? 874 00:35:12,300 --> 00:35:12,700 Okay. 875 00:35:13,400 --> 00:35:14,060 Not bad. 876 00:35:14,140 --> 00:35:14,500 It took me 877 00:35:14,500 --> 00:35:15,000 50 minutes 878 00:35:15,000 --> 00:35:15,460 when I did it 879 00:35:15,460 --> 00:35:15,840 in the room. 880 00:35:18,040 --> 00:35:18,440 Uh, 881 00:35:19,260 --> 00:35:20,060 Eric Bloodack's 882 00:35:20,060 --> 00:35:20,340 here yet? 883 00:35:22,420 --> 00:35:22,820 Okay, 884 00:35:22,900 --> 00:35:23,040 when, 885 00:35:23,100 --> 00:35:23,940 when Chris gets here, 886 00:35:24,180 --> 00:35:25,160 anybody know 887 00:35:25,160 --> 00:35:25,860 what Chris looks like? 888 00:35:26,440 --> 00:35:27,420 When Chris gets here, 889 00:35:27,800 --> 00:35:28,100 you know. 890 00:35:28,300 --> 00:35:28,620 Actually, 891 00:35:28,640 --> 00:35:29,440 I want to talk to Chris 892 00:35:29,440 --> 00:35:29,880 because I want to go 893 00:35:29,880 --> 00:35:30,320 drinking later. 894 00:35:30,940 --> 00:35:31,260 Um, 895 00:35:31,440 --> 00:35:32,320 but I'll take some questions 896 00:35:32,320 --> 00:35:32,820 in the meantime. 897 00:35:34,440 --> 00:35:34,760 Yeah? 898 00:35:34,880 --> 00:35:35,420 Can you go back 899 00:35:35,420 --> 00:35:35,800 to the, 900 00:35:35,860 --> 00:35:36,040 uh, 901 00:35:36,040 --> 00:35:36,620 frame that was 902 00:35:36,620 --> 00:35:37,380 the checklist you did? 903 00:35:38,240 --> 00:35:38,560 Yeah. 904 00:35:38,640 --> 00:35:38,960 Okay. 905 00:35:45,720 --> 00:35:46,500 There you go. 906 00:35:49,680 --> 00:35:50,000 Good. 907 00:35:50,700 --> 00:35:51,340 Goggins here yet? 908 00:35:51,500 --> 00:35:51,740 He's here. 909 00:35:51,980 --> 00:35:52,300 Okay, 910 00:35:52,320 --> 00:35:52,440 sweet. 911 00:35:53,100 --> 00:35:53,420 Um, 912 00:35:53,480 --> 00:35:53,980 if you want 913 00:35:53,980 --> 00:35:54,520 to talk to me, 914 00:35:54,860 --> 00:35:55,380 nice shirt. 915 00:35:55,480 --> 00:35:56,000 I'll be offline. 916 00:35:56,920 --> 00:35:57,240 Uh, 917 00:35:57,400 --> 00:35:57,780 you know, 918 00:35:57,780 --> 00:35:58,740 over in the corner. 919 00:35:58,920 --> 00:35:59,340 All right? 920 00:36:00,340 --> 00:36:00,720 Thank you. 921 00:36:00,760 --> 00:36:02,080 Thank you very much.