YouTube2Text

Can A Conscious Fly Brain Learn how to Hack? — Transcript

by dzuma · 8,041 words · 1,212 segments · language en · Watch on YouTube

Full transcript

  1. 0:00It is October 2024. You are a fly and
  2. 0:03you're flying around rubbing your hands
  3. 0:04together or whatever it is flies do.
  4. 0:06Boom. Scientists capture you against
  5. 0:08your will, take you to a lab, force you
  6. 0:11to watch Hawka memes.
  7. 0:12>> Oh, you got to GIVE HIM THAT HUCK.
  8. 0:15>> KISS MY ASS.
  9. 0:18[screaming]
  10. 0:18>> And slice your brain into 7,000
  11. 0:21microscopically thin slices. These
  12. 0:23scientists then photograph every section
  13. 0:25of your brain with an electron
  14. 0:27microscope and align those fly images
  15. 0:29into one massive [music] 3D
  16. 0:30reconstruction of your brain. Meet the
  17. 0:32fly brain. 139,000 neurons and 54.5
  18. 0:36million synapses of a real fly's brain
  19. 0:39was put into a computer to where it was
  20. 0:41then uploaded to the internet for free
  21. 0:43by these scientists. I, cyber security's
  22. 0:46greatest larer, have decided to download
  23. 0:48this fly brain with the sole purpose of
  24. 0:50teaching this fly how to hack.
  25. 0:54[music]
  26. 1:02[music]
  27. 1:08Meet Terry the fly. Over the next three
  28. 1:11weeks, Terry will undergo a rigorous
  29. 1:13training regimen that will teach him the
  30. 1:15very basics of hacking. From interacting
  31. 1:17with a web application and logging into
  32. 1:19an admin panel to discovering and
  33. 1:21exploiting an XSS vulnerability all the
  34. 1:23way to gaining root access on a machine
  35. 1:25with a reverse shell. But before we get
  36. 1:27into all that, let me explain how all of
  37. 1:29this works. [music] This video is going
  38. 1:31to cover what a fly brain is, what it's
  39. 1:33made of, how it's mapped, how it runs on
  40. 1:35my computer, how it actually interacts
  41. 1:37with the [music] computer, and how you
  42. 1:38can teach anything. When the Fly Wire
  43. 1:40Project sliced this brain into 7,000
  44. 1:43pieces, it took 21 million images of
  45. 1:45every piece of the fly's brain under
  46. 1:47[music] a microscope. These little gray
  47. 1:49[ __ ] stain looking things are sections
  48. 1:51of a neuron. [music] To get the full
  49. 1:52shape of a neuron, you have to align
  50. 1:54multiple images together and follow that
  51. 1:57shape across the thousands of images
  52. 1:59until you can map out that full neuron.
  53. 2:01This had to be done with every single
  54. 2:03individual neuron in the brain, aka
  55. 2:06139,255
  56. 2:08neurons. Researchers attempted to use AI
  57. 2:11to map out the thing, but in classic AI
  58. 2:13fashion, it got a lot of [ __ ] wrong. So,
  59. 2:16the Flywire Project uploaded every
  60. 2:18single image online, and hundreds upon
  61. 2:21hundreds of scientists and volunteers
  62. 2:23spent years mapping out the entire thing
  63. 2:25by hand. These Chad scientists wired
  64. 2:28139,255
  65. 2:29neurons and 54.5 million synapses and
  66. 2:32then uploaded that to the internet. The
  67. 2:34final product is what is called a
  68. 2:36conneto. In simple terms, a conneto is a
  69. 2:39map of which nerve cells touch and
  70. 2:41interact with other nerve cells. And
  71. 2:43you, yes, can download it right now.
  72. 2:45Today, to get this fly brain to interact
  73. 2:47with a computer, you use something
  74. 2:49called a bridge to software. Using the
  75. 2:51signals and neurons in the brain, you
  76. 2:53can adapt them to computer actions. So,
  77. 2:55say that this group of neurons lights up
  78. 2:57that would be adapted into whatever
  79. 2:59computer action you want it to be
  80. 3:01adapted to. A neuron is a wirelike cell
  81. 3:03that receives signals and produces its
  82. 3:06own pulse of activity depending on what
  83. 3:07is happening. It fires out signals and
  84. 3:10those are measured [music] by what is
  85. 3:11called a firing rate. and it is measured
  86. 3:13in hertz which basically tracks how many
  87. 3:16spikes occurred per second in the
  88. 3:17neurons. A [music] syninnapse is
  89. 3:19basically a wire connecting neurons
  90. 3:21together so they can send signals to
  91. 3:23each other and interact with each other.
  92. 3:25There are many types of synapses.
  93. 3:26[music] The main ones we will be using
  94. 3:28are an excitatory synapse and an
  95. 3:30inhibitory synapse and neuromodularity
  96. 3:33synapses. [music] An excitatory synapse
  97. 3:36basically tells the neurons to fire more
  98. 3:37signals and the inhibitory synapse tells
  99. 3:40it to chill the [ __ ] out.
  100. 3:41Neuromodularity synapses are basically
  101. 3:43controlled by dopamine neurons and these
  102. 3:45synapses can change the strength of the
  103. 3:47connections that were active during
  104. 3:49specific events. It is basically the
  105. 3:51main mechanism for learning. [music] We
  106. 3:53can take advantage of these three
  107. 3:55synapse types to teach the fly things we
  108. 3:57want it to do via positive
  109. 3:59reinforcement. Basically giving the fly
  110. 4:01a cigarette every time it does something
  111. 4:02good and then taking away that same
  112. 4:04cigarette that gives the fly dopamine
  113. 4:06every time it does something we don't
  114. 4:08want it to do. This experiment is not
  115. 4:10literally a fly brain typing in Linux
  116. 4:12commands. Rather, those commands that it
  117. 4:14is typing are represented with
  118. 4:16artificial odors. And the simulated
  119. 4:18memory assigned values to those odors.
  120. 4:21The [music] fly is presented with all of
  121. 4:22these odors and is rewarded with a
  122. 4:24dopamine signal every time it smells the
  123. 4:26correct odor, aka every time it runs the
  124. 4:29[music] correct command. And just before
  125. 4:30I get into all of this, I was inspired
  126. 4:32by all of these YouTube videos that do
  127. 4:34similar experiments on the fly brain.
  128. 4:36These videos are the only reason I knew
  129. 4:38something like this is possible. Before
  130. 4:40I started teaching the fly how to hack,
  131. 4:42the first course of action was to
  132. 4:44determine [music] if this fly responds
  133. 4:45to simulated sugar odors, dopamine, and
  134. 4:48whether it can learn. So, first I ran an
  135. 4:50experiment that tested the embon or the
  136. 4:52mushroom body output neuron. In a
  137. 4:54biological fly, odors activate
  138. 4:56combinations of Kenyon cells in the
  139. 4:58mushroom body. These Mbond neurons read
  140. 5:00the Kenyon cell activity and help bias
  141. 5:02behavior via the dopamineergenic neuron
  142. 5:04supply for reward and punishment signals
  143. 5:06that modify Kenyon cell to mushroom body
  144. 5:08output neuron connections. Kenyon cells
  145. 5:11are the main internal neurons of the
  146. 5:13mushroom body. The mushroom body can be
  147. 5:15referred to as [music] the learning and
  148. 5:17memory center of the brain. ONS or
  149. 5:20olfactory receptor neurons detect odors.
  150. 5:22In an actual real fly, these neurons are
  151. 5:25connected to receptors in its antennas.
  152. 5:27The entire learning process can be
  153. 5:29simplified to two processes happening at
  154. 5:31the same time. You have an odor that is
  155. 5:33detected by the olfactory receptor
  156. 5:35neurons which then signal to projection
  157. 5:37neurons that signal to the Kenyon cells
  158. 5:39which are then read by the mushroom body
  159. 5:41and a decision is made. At the same
  160. 5:43time, you have a reward [music] that
  161. 5:45activates protocerebral anterior medial
  162. 5:47dopamine neurons or pam dopamine neurons
  163. 5:49for short, which then change the active
  164. 5:51canyon [music] cell to mushroom body
  165. 5:53synapses. And in response, the fly
  166. 5:55responds differently to that odor the
  167. 5:57next time it smells it. So, simply put,
  168. 5:59we simulate an odor. Dopamine arrives to
  169. 6:01the brain [music] and changes the
  170. 6:03strength of the active canyon cell to
  171. 6:05mushroom body synapses. And these
  172. 6:06changes in the mushroom body connections
  173. 6:08allow the fly to remember [music]
  174. 6:10whether a choice previously produced an
  175. 6:12award or produced nothing. This is more
  176. 6:14than just an illusory digital concept.
  177. 6:16By the way, in 1983, a study was
  178. 6:18conducted at the department of biology
  179. 6:20at Princeton University titled reward
  180. 6:23learning in normal ambu drospholia. If
  181. 6:25you're wondering, drospholia is just a
  182. 6:27nerd way of saying fruitfly. Basically,
  183. 6:30in this experiment, researchers gave
  184. 6:31hungry fruit flies two odors and paired
  185. 6:34one of these odors with sucrossse, aka
  186. 6:36sugar. When later offered both odors
  187. 6:38without the sugar present, the flies
  188. 6:40unanimously approached the odor that had
  189. 6:42previously been accompanied with sugar.
  190. 6:44This experiment demonstrated that flies
  191. 6:46can remember associations between odors
  192. 6:48and a reward. The same goes for
  193. 6:50punishing a fly. In 1974, an experiment
  194. 6:52was done that trained fruit flies to
  195. 6:54associate one odor with electric shock.
  196. 6:56The result [music] was that the flies
  197. 6:58later avoided that specific odor. This
  198. 7:00was the very first instance of people
  199. 7:03discovering flies are capable of
  200. 7:04remembering [music] certain experiences
  201. 7:06and associating them with an odor. So
  202. 7:08with the concept of positive and
  203. 7:10negative reinforcement [music] already
  204. 7:11proven on real fruit flies, we can
  205. 7:13recreate this and utilize this mechanism
  206. 7:15of [music] learning only digitally since
  207. 7:17we have a digital fly brain. For this
  208. 7:19entire experiment, I only used about
  209. 7:211.45% [music] of the actual full brain.
  210. 7:24I use 791,613
  211. 7:27out of the 54.5 [music]
  212. 7:29million synapses because the other parts
  213. 7:31of the brain are for things like vision,
  214. 7:33walking, flying, [music]
  215. 7:35pretty much everything else. We only
  216. 7:36needed this small subset of synapses
  217. 7:39that are responsible for sensory
  218. 7:40processing like odors, signal relays,
  219. 7:43inhibitory, reward, and output [music]
  220. 7:45neurons. At first, I was going to use
  221. 7:46the full brain, but watching YouTube
  222. 7:48videos of everyone else doing similar
  223. 7:50experiments, they all used small
  224. 7:52portions of the brain. It is only later
  225. 7:54I would discover how good of a decision
  226. 7:56this was because the last experiment ran
  227. 7:58for several days during training.
  228. 8:00[music] Had I simulated the entire
  229. 8:02brain, the training could have taken
  230. 8:03several weeks or even several months.
  231. 8:06Because despite how small the brain is,
  232. 8:0854.5 million synapses all doing
  233. 8:10different things is no small task. And
  234. 8:12needing to log and record everything it
  235. 8:14does is a monumental task that produces
  236. 8:17an insane amount of data. Anyways, I
  237. 8:19constructed two digital artificial
  238. 8:21odors. odor A and odor B. Odor A was
  239. 8:24paired with a dopamine reward and odor B
  240. 8:27was presented without a reward. These
  241. 8:29odors were each presented nine times. I
  242. 8:31did the experiment first with learning
  243. 8:33off. By learning off I mean that even if
  244. 8:35dopamine is provided from smelling odor
  245. 8:37A, the brain was not modified in any
  246. 8:39way. Then I ran through the same thing
  247. 8:41but with learning on meaning that when
  248. 8:43dopamine is provided from smelling odor
  249. 8:45A, the brain connections are modified
  250. 8:47and the fly remembers that happening.
  251. 8:48The results of the experiment proved a
  252. 8:51success. The fly was correctly able to
  253. 8:53associate odor A with a dopamine reward
  254. 8:55since its Mbond spikes dropped to nearly
  255. 8:57zero. You might be asking, but how does
  256. 8:59number go down mean that learning go up?
  257. 9:02Shouldn't it be the opposite? Well, I
  258. 9:04thought so too, but no. When odor A is
  259. 9:06paired with the PAM dopamine reward
  260. 9:08signal, [music] the Kenyon cell to
  261. 9:09mushroom body synapses are depressed,
  262. 9:11meaning that those connections become
  263. 9:13weaker. When the same odor appears
  264. 9:15again, its Kenyon cells know what it is,
  265. 9:18but they can't resist it as strongly as
  266. 9:20before. Basically, high embikes mean
  267. 9:23avoidance. [music] With the embon spikes
  268. 9:24depressed, it can no longer avoid that
  269. 9:27odor because it is now extremely hard to
  270. 9:29resist, especially when paired with
  271. 9:31other odors in the vicinity that are
  272. 9:33associated with high embon spikes. Still
  273. 9:35don't understand? Let me put it in
  274. 9:37extremely simple terms. Picture Prime
  275. 9:39Megan Fox surrounded by 10 Steve
  276. 9:41Biskemies. Which one are you more likely
  277. 9:43to be attracted to?
  278. 9:45>> Boy, are you fat?
  279. 9:47>> Still don't understand? Let me dumb it
  280. 9:49down even further. This is Peter with
  281. 9:51high embikes in his brain. He can
  282. 9:53perfectly resist a beckoning finger from
  283. 9:55the pie. Now this is Peter with low
  284. 9:58embon spikes, aka low avoidance. He can
  285. 10:00no longer resist a beckoning pie finger.
  286. 10:03Anyways, with this experiment, this was
  287. 10:04Terry the Flyy's first memory after
  288. 10:06being reawakened in the digital world.
  289. 10:08It was [music] time for the anime
  290. 10:10training arc to begin.
  291. 10:19[music]
  292. 10:25[music]
  293. 10:32Meet the damn vulnerable web
  294. 10:34application. It's a web application
  295. 10:36that's pretty damn vulnerable. DVWA is
  296. 10:39an intentionally insecure website
  297. 10:41designed to let hacking larers like you
  298. 10:43and me safely practice finding
  299. 10:45vulnerabilities without the need to
  300. 10:47attack a real system. The damn
  301. 10:48vulnerable web application will act as
  302. 10:50the first training ground that Terry the
  303. 10:52Fly will have to pour blood, sweat, and
  304. 10:55tears into the act of learning. I cloned
  305. 10:57it off GitHub and hosted it locally on
  306. 10:59port 4280. If you don't know, locally
  307. 11:01hosting something, especially when you
  308. 11:03use 127.0, 0.0.1 which is your
  309. 11:06computer's loop back address means that
  310. 11:08no device even other devices on your own
  311. 11:10network cannot interact with it. I could
  312. 11:12have used the LAN IPv4 to make this
  313. 11:14accessible to every device on my network
  314. 11:16but it is not needed since this
  315. 11:17experiment is not leaving my PC. The
  316. 11:20purpose of the first experiment was to
  317. 11:22see if the flies brain can interact with
  318. 11:23stimuli and respond to reward signals.
  319. 11:26The purpose of this second experiment is
  320. 11:28to connect the learning mechanism to an
  321. 11:30actual task. The goal Terry has to break
  322. 11:32into this login portal. The first
  323. 11:34version of this experiment was extremely
  324. 11:36simple. There were two artificial odors
  325. 11:38which were presented to the fly. These
  326. 11:39odors were translated into passwords and
  327. 11:42an adapter would take the action of the
  328. 11:44fly choosing that specific odor and
  329. 11:46translate it into typing in the actual
  330. 11:48password into the password field. I ran
  331. 11:50through the experiment four times. Six
  332. 11:52attempts with the fly brain with no
  333. 11:53training. 12 attempts with the fly brain
  334. 11:55actively training. Six more attempts
  335. 11:57with the fly brain after training. And
  336. 11:59six more with the fly brain with no
  337. 12:01training just to ensure that the first
  338. 12:02run with no training was not luck. The
  339. 12:04experiment revealed that the [ __ ] fly
  340. 12:06brain was able to learn to brute force
  341. 12:09this simple login page because during
  342. 12:11its training, each incorrect guess
  343. 12:13provided no reward while each correct
  344. 12:15guess sent a B equivalent of this neuron
  345. 12:17activation image into its brain. After
  346. 12:19the 12 training attempts, a second test
  347. 12:21with learning disabled with the updated
  348. 12:23brain connections after having ran
  349. 12:25through the training included six
  350. 12:27attempts, and the fly brain picked the
  351. 12:29correct answer every single time. With
  352. 12:31the brain connections reset to its
  353. 12:32original [music] state, the fly only
  354. 12:34guessed the correct answer three times
  355. 12:36out of the six attempts. This wasn't a
  356. 12:38real brute force as it was literally
  357. 12:40just choosing between two different
  358. 12:41passwords. But what do you expect? This
  359. 12:43is a [ __ ] fly brain. We have to start
  360. 12:44from literally the bottom of the barrel.
  361. 12:46This got me thinking though. How far can
  362. 12:48we push this fly brain? Can we get it to
  363. 12:50master hacker territory? I wasn't
  364. 12:52convinced from this first experiment
  365. 12:54since there were only two options to
  366. 12:56choose from. And it is very possible
  367. 12:57that each of the six guesses after the
  368. 13:00training could have just been pure luck
  369. 13:02since the odds were 50/50. So I repeated
  370. 13:05the exact same experiment, but this time
  371. 13:07with six possible password options and
  372. 13:10expanded the attempts to 20 to have a
  373. 13:12more accurate measurement. This time
  374. 13:13there were six artificial odors instead
  375. 13:15of two. And just like the last
  376. 13:17experiment, these odors were translated
  377. 13:19into passwords and an adapter would take
  378. 13:21the action of the fly choosing that
  379. 13:22specific odor and translate it into
  380. 13:25typing in the password into the password
  381. 13:26field on the web page. I ran through the
  382. 13:28experiment four times [music] just like
  383. 13:30before, except with 20 attempts in each
  384. 13:32of the four phases. The fly guessed
  385. 13:34correctly three out of 20 times without
  386. 13:36training. During training, it very
  387. 13:38quickly learned that the correct
  388. 13:39password provides it with dopamine. And
  389. 13:41then after training, the fly guess
  390. 13:43correctly 18 out of 20 times. Isn't this
  391. 13:46just crazy to watch? A literal fly brain
  392. 13:48is logging into an admin web panel. It's
  393. 13:51times like these that I get reminded why
  394. 13:52I love [ __ ] around with technology
  395. 13:54and doing random deep dives into this
  396. 13:57random stuff. And you're telling me I'm
  397. 13:59getting paid to do this right now? It's
  398. 14:00all very surreal to me. To boil it down
  399. 14:02to percentages, before training, the fly
  400. 14:04was correct 16.67%
  401. 14:07of the time. During [music] training, it
  402. 14:09was correct 77.5%
  403. 14:11of the time. And after training, [music]
  404. 14:13it was correct 96.4%
  405. 14:16of the time. The brain reset at the end
  406. 14:18had it go back to 16.67%.
  407. 14:21This is more than just good RNG with a
  408. 14:23coin flip. The odds of the fly correctly
  409. 14:26guessing 96% of the time by sheer luck
  410. 14:29are 1 in770 billion or approximately
  411. 14:320.000000133%.
  412. 14:37Thus, this experiment proves that the
  413. 14:40fly can learn and can remember and is
  414. 14:43just one step away from becoming T-Bug
  415. 14:45from Cyberpunk 2077.
  416. 14:47>> No, no, no, no, no. Not now. I've been
  417. 14:50made.
  418. 14:52>> But how did it learn to refresh? Mbond
  419. 14:55memory here stands for mushroom body
  420. 14:57output neuron. In the biological fly,
  421. 14:59odors activate combinations of Kenyon
  422. 15:01cells in the mushroom body. These Mbond
  423. 15:03neurons read the Kenyon cell activity
  424. 15:05and help bias behavior via
  425. 15:07dopamineergenic neuron supply for reward
  426. 15:09and punishment signals that modify
  427. 15:11Kenyon cell to mushroom body output
  428. 15:13neuron connections. In simpler terms,
  429. 15:15guessing the correct password did to the
  430. 15:17flies mushroom body output neurons, like
  431. 15:19what unboxing a gold does to the neurons
  432. 15:21in Oname PIXEL'S BRAIN. PLEASE STOP
  433. 15:24CRAZY.
  434. 15:29And if the fly guessed wrong, well,
  435. 15:32we're not going to talk about that. And
  436. 15:34let me just state this one more time
  437. 15:36before somebody in the comments says how
  438. 15:38this isn't doable by a real fly. The way
  439. 15:41this experiment worked isn't literally a
  440. 15:43fly brain typing text into the box here,
  441. 15:46because that would be impossible. It
  442. 15:48doesn't know what a key is, nor does it
  443. 15:50know the English language. Rather, each
  444. 15:53of the six passwords was assigned an
  445. 15:55artificial odor-like Q using an adapter
  446. 15:58and a Python script that when combined
  447. 16:00take the password guesses which are
  448. 16:02represented as this odor-like cue and
  449. 16:04present them to the fly brain. [music]
  450. 16:06Then its neural activity is measured and
  451. 16:08translated into a choice between the six
  452. 16:11passwords. When the fly correctly gets
  453. 16:13the password for the web panel, it was
  454. 16:15given a dopamine reward that would
  455. 16:17change the connections in the brain and
  456. 16:19in turn affect its memory. Basically,
  457. 16:21the correct password smells the best out
  458. 16:23of all the other password guesses.
  459. 16:25[music] Each consecutive attempt with
  460. 16:26the memory enabled. The fly remembers,
  461. 16:29"Oh, that one password smelled [ __ ]
  462. 16:31great. Let me go smell it again." Okay,
  463. 16:33the fly got a simple challenge done.
  464. 16:35Well, [ __ ] dozuma. Anyone with half a
  465. 16:38brain can do a challenge like this. The
  466. 16:41ant under my boot can do this challenge.
  467. 16:43Silence, brother. Rome wasn't built in a
  468. 16:46day. These things take time. The next
  469. 16:48step in the fly training arc is a
  470. 16:50multi-stage challenge which will require
  471. 16:52context dependent learning. Rather than
  472. 16:55just picking the correct answer out of a
  473. 16:56pool of answers, it has to learn that
  474. 16:59the correct answer depends on what
  475. 17:01action it has to achieve. Basically, it
  476. 17:03has to choose one action in stage one, a
  477. 17:06different action in stage two, and
  478. 17:08another action in stage three. And it
  479. 17:10has to remember to do those things in
  480. 17:11that order specifically. The idea is
  481. 17:14similar to how an actual biologist would
  482. 17:15condition a live fly. In what is called
  483. 17:17an olfactory conditioning experiment, a
  484. 17:19scientist would present an odor and pair
  485. 17:21it with something rewarding like sugar.
  486. 17:22[music] The next time that fly would
  487. 17:24smell that odor, it is more likely to
  488. 17:25approach it. Dopamine neurons are in a
  489. 17:27region called the PAM cluster that help
  490. 17:29carry the sugar reward signal into the
  491. 17:31fly's learning system. Why am I
  492. 17:32repeating myself and stating this again?
  493. 17:34Because like the fly, I am training you
  494. 17:37through repeated repetition. So the next
  495. 17:39time you see a fly, you can seem cool
  496. 17:40and mysterious as [ __ ] by talking about
  497. 17:43the intricate details of the fly's brain
  498. 17:45and how the Pam cluster contributes to
  499. 17:47the fly learning behaviors. In the next
  500. 17:49phase [music] of Terry's training arc,
  501. 17:51we will teach Terry the art of XSS.
  502. 17:58[music]
  503. 18:07>> [music]
  504. 18:11[music]
  505. 18:17[music]
  506. 18:18>> Meet cross- sight scripting aka XSS. XSS
  507. 18:23is basically just a web vulnerability
  508. 18:24where you inject malicious JavaScript
  509. 18:27and HTML into a website. Common places
  510. 18:29to inject this code are URLs, search
  511. 18:32boxes, comment boxes, message boxes,
  512. 18:35customer support forms, basically
  513. 18:37anywhere that you can type text.
  514. 18:39Reflected, stored, and DOMB based XSS.
  515. 18:42They are the three main types of
  516. 18:44cross-sight scripting vulnerabilities.
  517. 18:45Reflected XSS is like the one night
  518. 18:48stand of XSS and not as dangerous since
  519. 18:50it's never actually stored on the
  520. 18:52server. The only way for a hacker to do
  521. 18:54something with this maliciously is by
  522. 18:56sending somebody the URL with the
  523. 18:58malicious XSS payload attached to it.
  524. 19:00Anything that is possible with
  525. 19:02JavaScript in the context of a web
  526. 19:04browser is possible with cross-sight
  527. 19:05scripting attacks. Stored XSS is when
  528. 19:08your XSS payload gets stored in the web
  529. 19:10server itself. Which means that anyone
  530. 19:12accessing the part of the site that that
  531. 19:14payload is stored gets that XSS payload
  532. 19:16executed on their end. This is much more
  533. 19:19dangerous than reflected since it does
  534. 19:21not require you to send any link with
  535. 19:22the payload hidden inside of it. DOM
  536. 19:24based XSS attacks are basically the same
  537. 19:27thing as reflected XSS attacks except
  538. 19:30the payload is never seen by the server
  539. 19:32which means that server side filters
  540. 19:33aren't really effective at preventing
  541. 19:35them. You usually see this with web
  542. 19:37applications which make heavy use of the
  543. 19:39client side JavaScript and update the
  544. 19:41DOM environment instantaneously when you
  545. 19:43input something. The browser experiment
  546. 19:45was just a single decision with six
  547. 19:47possible choices. The XSS experiment
  548. 19:50will be a three-stage challenge where
  549. 19:53the correct actions have to be executed
  550. 19:55consecutively. The XSS payloads will be
  551. 19:57on this locally hosted web page that is
  552. 20:00supposed to simulate a search function
  553. 20:02on a normal website. The first action
  554. 20:04will be to confirm that XSS is possible
  555. 20:06with a bold tag which reflects the
  556. 20:08search query back to us in bold
  557. 20:10signaling to us that an XSS
  558. 20:12vulnerability might be present. A secure
  559. 20:14search function would reflect test one
  560. 20:16two three with these tags on the side
  561. 20:18completely intact like this. An insecure
  562. 20:20search [music] function would literally
  563. 20:22bold the text in the reflection
  564. 20:24confirming that the server injects that
  565. 20:26raw input directly into the web pages
  566. 20:28HTML structure and it's the first
  567. 20:30confirmation that it treats your inputed
  568. 20:32string as executable code. The second
  569. 20:34step is using a script to try and load
  570. 20:37an image with the source being X. Since
  571. 20:40X doesn't exist, an error will appear.
  572. 20:42That is where on error equals alert
  573. 20:44comes in. In Bug Bounty, something like
  574. 20:46this is typically enough to confirm an
  575. 20:48XSS vulnerability and is enough to get
  576. 20:50you paid. But in Terry's [music] case,
  577. 20:52he's also going to use this
  578. 20:54vulnerability to steal a cookie by just
  579. 20:56replacing the alert with a script that
  580. 20:58when the error executes, a command is
  581. 21:00called to make a new image. But the
  582. 21:02source for that image is a script that
  583. 21:04collects a cookie. On a real site, a
  584. 21:07cookie can be used to hijack the session
  585. 21:09of a user and take over their accounts
  586. 21:11without a password. It's pretty
  587. 21:13dangerous stuff, which is why XSS
  588. 21:15vulnerabilities pay so much in the world
  589. 21:16of Bug Bounty. They're also incredibly
  590. 21:19easy to find compared to other web-based
  591. 21:21vulnerabilities. You can literally be on
  592. 21:23any site and any place on that site that
  593. 21:25text can be inputed that reflects your
  594. 21:27inputs. Just type the bold tag and if
  595. 21:29the string comes back in bold, nine
  596. 21:31times out of 10 there's an XSS
  597. 21:33vulnerability to be found there.
  598. 21:34especially if you aren't meant to bold
  599. 21:36text there. Anyways, on the local site,
  600. 21:39I didn't want it to be incredibly easy
  601. 21:41like the last one. So, for this
  602. 21:42challenge, I also implemented XSS
  603. 21:45counter measures. And for each of the
  604. 21:46correct three actions, the challenge
  605. 21:48would be 19 other incorrect XSS payloads
  606. 21:51that would be blocked by the site.
  607. 21:53Making the possibility of correctly
  608. 21:54guessing one stage, 1 in 20, or 5%. And
  609. 21:58the odds of correctly completing all
  610. 22:00three stages consecutively with no
  611. 22:02mistakes is one in 8,000 or 0.0125%.
  612. 22:06To contrast, if you've ever played the
  613. 22:08Pokémon games between gold and silver
  614. 22:11all the way to Black and White 2, the
  615. 22:13odds are almost exactly the same as
  616. 22:16running into a shiny Pokémon in the
  617. 22:18wild. Before I get into it, I want to
  618. 22:20get into the counter measures in place
  619. 22:22because understanding [music] defense is
  620. 22:24key when it comes to attack. There was a
  621. 22:26serverside block list sanitizer. So
  622. 22:28before reflecting any input, the server
  623. 22:31would run it through a function called
  624. 22:32sanitize that would strip opening and
  625. 22:34closing tags from a deny list, remove
  626. 22:36JavaScript URL schemes and other things.
  627. 22:39The deny tags were all of these. So say
  628. 22:41you typed script alert script. You know,
  629. 22:44the classic XSS payload that everyone on
  630. 22:47YouTube teaches in XSS tutorials that I
  631. 22:49have yet to see actually work on a real
  632. 22:51website. with the sanitize function I'm
  633. 22:53using, it would reflect back to me like
  634. 22:55this. The script tags are completely
  635. 22:57removed. Other common XSS payloads like
  636. 23:00these also wouldn't work because these
  637. 23:02were in the deny list. The fault of the
  638. 23:04XSS counter measures I used was because
  639. 23:07of this. And if your job involves
  640. 23:08securing web servers, listen up because
  641. 23:10this is very important for defending
  642. 23:12against XSS. I used a denial list rather
  643. 23:15than an allow list. Developers commonly
  644. 23:18use deny lists over allow lists when it
  645. 23:20comes to sanitization for several
  646. 23:22reasons. It's much easier to only remove
  647. 23:24known dangerous patterns. And it's much
  648. 23:26easier to avoid accidentally breaking
  649. 23:28legitimate input. This can put your web
  650. 23:30application in a place where you
  651. 23:32correctly deny 50 dangerous techniques
  652. 23:34while overlooking one. And an attacker
  653. 23:37only needs one thing to do an exploit.
  654. 23:39[music] In my deny list, I did not
  655. 23:41include the img tag, which is actually
  656. 23:44fairly common since a developer manually
  657. 23:46making a denial list will likely put the
  658. 23:48image [music] tag in the deny list, but
  659. 23:50forget to put the img tag since they
  660. 23:53might believe that they do the exact
  661. 23:55same thing. And if image exists, why
  662. 23:57would there be another image tag just
  663. 23:59shortened to three letters? Using the
  664. 24:01sanitize function wasn't the only
  665. 24:03countermeasure I [music] had, though. I
  666. 24:05also used output encoding, which is
  667. 24:07basically when the server escapes HTML
  668. 24:10queries before placing it in the search
  669. 24:11box. [music] In simpler terms, it
  670. 24:13converts characters like these into safe
  671. 24:16HTML entities. [music] It's more common
  672. 24:18place nowadays for sites to implement
  673. 24:20output encoding sitewide for only
  674. 24:22untrusted variables. But on older web
  675. 24:24pages, developers typically had to
  676. 24:26manually put these output encoding
  677. 24:28filters in [music] potential injection
  678. 24:30points. I designed it to fail in a way
  679. 24:32that can also be common and is an
  680. 24:35important XSS concept, especially
  681. 24:37regarding old websites. Basically, the
  682. 24:39search query is inserted into two
  683. 24:41different [music] output locations. So,
  684. 24:43while the server correctly ran this HTML
  685. 24:45escape string inside the [music] search
  686. 24:47box, which transformed this search query
  687. 24:49into this, the search reflection here
  688. 24:51did not have the same HTML escape system
  689. 24:53implemented. [music]
  690. 24:54Therefore, HTML tags and by extension
  691. 24:57JavaScript was able to be executed on
  692. 24:59the web page. Anyways, that was the
  693. 25:01extent of my XSS sanitization. Just very
  694. 25:03basic stuff that that can be found in
  695. 25:05the wild, but it is pretty unlikely. I
  696. 25:08started the flies training and the
  697. 25:10training ran for [clears throat]
  698. 25:1218 hours and the worst part, the results
  699. 25:15were not the best and I ended the
  700. 25:17training before it can finish because I
  701. 25:19was not seeing any improvement after a
  702. 25:21certain point. Basically, the fly brain
  703. 25:23plateaued in how much it learned,
  704. 25:25represented by this graph here. I spent
  705. 25:27hours upon hours adjusting the reward
  706. 25:30mechanisms and other [ __ ] and the fly
  707. 25:32eventually performed better than random
  708. 25:34chance, and it learned that certain
  709. 25:36choices were good, but it struggled to
  710. 25:39combine these choices into a consistent
  711. 25:41three-step sequence. The problem was not
  712. 25:44the fly brain, but in the neural cues.
  713. 25:46Originally, every action at a given
  714. 25:48stage receives the same stage context
  715. 25:50receptor neurons, which to remind you
  716. 25:52are in the antenna of a real fly and
  717. 25:54connect to its brain. In the fly's
  718. 25:56brain, there are 947 drivable versions
  719. 25:59of these neurons. I took 170 of these
  720. 26:02neurons and divided them into groups of
  721. 26:0457 for each of the stages. Every action
  722. 26:07within stage 1 shared the same stage one
  723. 26:10neurons, and every action within stage
  724. 26:12two shared the stage two neurons. And
  725. 26:14same for stage three. In other words,
  726. 26:16the stage odor was overpowering the
  727. 26:19action odor. The problem was that my
  728. 26:21original reward system was more of
  729. 26:24something along the lines of, "Hm, stage
  730. 26:26one smells good and hm, stage two smells
  731. 26:30good." The fix was to change that into
  732. 26:33action six specifically smells good in
  733. 26:35stage 1, but it smells like [ __ ] in
  734. 26:37stage two, but action 12 in stage two
  735. 26:40smells good, even though it smelled like
  736. 26:42[ __ ] before. Additionally, all of the
  737. 26:44action simulated odors were too similar
  738. 26:47originally because I was focusing too
  739. 26:49much on the stages. A big part of every
  740. 26:51neural cube was shared between the
  741. 26:52different actions and all three stages
  742. 26:55were also being remembered in the same
  743. 26:57parts of the memory pool. The learning
  744. 26:58rate was also too aggressive. So, the
  745. 27:01connections that needed to be made hit
  746. 27:02their cap after just a few rewards,
  747. 27:04which I believe is the reason why it's
  748. 27:06learning and memory plateaued. I could
  749. 27:08be wrong, though. I'm not a [ __ ]
  750. 27:09scientist. I'm I'm just a larber. To fix
  751. 27:12all of this, I changed the reward system
  752. 27:14to making every command, aka action,
  753. 27:17have their own distinct odor. When the
  754. 27:19fly chooses one of these commands, the
  755. 27:21odor activates a particular group of
  756. 27:23kenyon cells. If the command is the
  757. 27:25correct one, the adapter converts that
  758. 27:27command being executed into the same
  759. 27:29brain response a fly gets when it eats
  760. 27:31sugar. And instead of the entire fly's
  761. 27:33brain memory pool getting that signal,
  762. 27:35only the neurons and canyon cells that
  763. 27:37contributed to that action receive the
  764. 27:39dopamine neurons. Once it gets to the
  765. 27:41next stage, the fly brain has a
  766. 27:43different memory compartment to work
  767. 27:45with. Meaning that the fly can learn
  768. 27:47that one odor is good during stage one
  769. 27:49while knowing that it's different in
  770. 27:51stage two because of
  771. 27:52compartmentalization. W
  772. 27:54compartmentalization. You all know how
  773. 27:56much I love compartmentalization on this
  774. 27:58channel. Could a real fly do the
  775. 28:00biological version of this? Yes. At
  776. 28:03first, I avoided doing this because I
  777. 28:04was worried it would be unrealistic,
  778. 28:06especially with like the
  779. 28:08compartmentalization part of the brain.
  780. 28:10But after some research, I found that a
  781. 28:12living fly can distinguish odors,
  782. 28:14associate an odor with sugar, and use
  783. 28:16that memory to alter its future choices.
  784. 28:18And those memories are compartmentalized
  785. 28:20in different parts of the brain rather
  786. 28:22than just one shared memory pool. And to
  787. 28:25just restate this disclaimer one more
  788. 28:27time, what the fly cannot do is
  789. 28:29understand that an odor represents a
  790. 28:31computer command. That meaning exists
  791. 28:33entirely inside the adapter. The adapter
  792. 28:35presents the neural equivalent of an
  793. 28:36odor, reads the brain's resulting
  794. 28:38preference, executes the corresponding
  795. 28:40action, and translates the success back
  796. 28:42into a reward signal. So, this does not
  797. 28:44prove a real fruitfly understands
  798. 28:46hacking. It tests whether a connectnum
  799. 28:48derived simulation of its learning
  800. 28:50circuitry can serve as a decision-making
  801. 28:52component inside an artificial
  802. 28:54multi-step task. The computer handles
  803. 28:56the commands and [ __ ] and the fly
  804. 28:57circuit handles association, memory, and
  805. 28:59the actual choice. After about 3 days of
  806. 29:02readjusting, retraining, and readjusting
  807. 29:05again, I got a fully completed run.
  808. 29:08Okay, two. Holy [ __ ]
  809. 29:12First try. First run. We just got the
  810. 29:15first run with all three correct in a
  811. 29:18row with no failures. This is huge. Oh
  812. 29:21my god, that was beautiful. You
  813. 29:24beautiful [ __ ] fly. This is like
  814. 29:26attempt [ __ ]
  815. 29:29I don't even know. I I'm gonna look
  816. 29:31through all the data after. Combined
  817. 29:33with every single experiment I've reran
  818. 29:35with this [ __ ] it's got to be like it's
  819. 29:38got to be in the thousands by now. The
  820. 29:40first completed run was a success, but
  821. 29:43not successful enough for my liking.
  822. 29:45After training, the average probability
  823. 29:47of the flat choosing the correct answer
  824. 29:49was 40.5% on stage 1, 54.6% on stage
  825. 29:54two, and 48.7% on stage three. Multiply
  826. 29:57all of these and the probability of a
  827. 29:59fully completed chain is 10.8%. This
  828. 30:02percentage is reflected in the test
  829. 30:04results after the fly's training was
  830. 30:06done. Of the 100 attempts, the fly fully
  831. 30:09completed the chain 11 times, [music]
  832. 30:11meaning that its success rate is 11%.
  833. 30:15The same 100 attempts done on the fly
  834. 30:17brain with no training with zero correct
  835. 30:19attempts. In fact, it never even made it
  836. 30:21past stage two and only gets correctly
  837. 30:23on stage one six times out of pure luck.
  838. 30:26So why why did it fail to learn like we
  839. 30:28wanted to? Well, the memory plateaued
  840. 30:30again. The synapses participating in the
  841. 30:33learned odors reached a point where they
  842. 30:34could no longer weaken. So the fly
  843. 30:36couldn't learn from positive
  844. 30:38reinforcement anymore. Technically, I
  845. 30:40could remove the limit from memory
  846. 30:41entirely. But this can cause the fly to
  847. 30:43get stuck in an infinite loop of
  848. 30:45choosing the same thing and is much less
  849. 30:47realistic as real brain synapses have
  850. 30:49bound. This was akin to hearing a song
  851. 30:51you really like and listening to it over
  852. 30:53and over again. Then later when your
  853. 30:55obsession with that song ends and you
  854. 30:56replay that song, it just doesn't hit
  855. 30:58the same anymore. I know you guys know
  856. 31:00what I'm talking about. And in testing,
  857. 31:02this did happen to me with the fly brain
  858. 31:04getting a positive dopamine reward for
  859. 31:06typing in test one to three with the
  860. 31:08bull tag. But on stage two, it just kept
  861. 31:10on doing the same thing over and over
  862. 31:12and over and over again despite not
  863. 31:14getting any dopamine from it anymore. It
  864. 31:16was just chasing that previous high for
  865. 31:19all of time. Additionally, everything on
  866. 31:21paper led me to believe that the fly
  867. 31:23already knew what answer was the correct
  868. 31:25one and the fault was mainly in the
  869. 31:27adapter. This is because the data
  870. 31:29suggested that it correctly learned the
  871. 31:31correct behavior, but was just choosing
  872. 31:33the wrong thing regardless, which I will
  873. 31:36get into in a second. I can also up the
  874. 31:38learning rate from 3% to something
  875. 31:40higher. But this would just make me hit
  876. 31:42the memory limit faster and would give
  877. 31:44too much dopamine to the fly for a
  878. 31:45successful action, which can cause it to
  879. 31:48infinitely do the same thing like
  880. 31:49before, which to say it again happened
  881. 31:51during previous training when I was
  882. 31:53experimenting. I was not satisfied with
  883. 31:55this experiment. So, I'm going to keep
  884. 31:57doing and and keep adjusting things
  885. 32:00until the success rate is at least 50%
  886. 32:03instead of 11%. The main change I made
  887. 32:06was to allow the fly to sniff every
  888. 32:08decision multiple times before
  889. 32:10committing. Before the experiment was
  890. 32:12designed in a way that had the fly
  891. 32:14choose the first thing that it smelled
  892. 32:16no matter what. This not only wasn't
  893. 32:18indicative of a real fly, but also
  894. 32:20frequently ignored all the training data
  895. 32:22which we just trained it on. Picture it
  896. 32:24like this. In real life, a fly can fly
  897. 32:27over to some food, smell it, decide it
  898. 32:29doesn't like the smell, and fly away.
  899. 32:31So, picture three plates of food next to
  900. 32:33each other. One is a plate of Ryson that
  901. 32:35would immediately kill the fly. The
  902. 32:37second plate is a plate of cyanide,
  903. 32:39which would also immediately kill the
  904. 32:41fly. And the third plate is just honey.
  905. 32:43A real fly would smell the rice and
  906. 32:45plate, realize that it isn't edible, and
  907. 32:47keep flying around until it smells and
  908. 32:49finds a plate of honey, and only then
  909. 32:51would it start eating. With the
  910. 32:53experiment configured the way I had it
  911. 32:55configured before, [music] the fly would
  912. 32:57know that a plate of honey is nearby in
  913. 32:59the vicinity, but it wouldn't know the
  914. 33:01exact plate it's on. So, if it flew to
  915. 33:03the Ryson plate to smell it, it would be
  916. 33:05forced to eat it since whatever plate it
  917. 33:08goes to smell is seen by the adapter as
  918. 33:10a definitive decision rather than just
  919. 33:12testing the waters. So, I took the exact
  920. 33:14same training data and just modified the
  921. 33:16adapter to allow the fly to sniff every
  922. 33:19plate five times before deciding which
  923. 33:21plate it wants to eat. And it goes
  924. 33:23without saying, by plate, I mean the
  925. 33:25action it's taking to find the excss
  926. 33:26vulnerability. This simple change was a
  927. 33:29resounding success. The success rate
  928. 33:32went from 11% all the way up to 94%.
  929. 33:36With the trending data disabled, its
  930. 33:37success rate was all the way back down
  931. 33:39to zero again. The odds of correctly
  932. 33:42guessing the chain 94 times is this
  933. 33:45absurd number that has 357 zeros before
  934. 33:48its first nonzero digit. It's safe to
  935. 33:51say that it would be mathematically
  936. 33:53impossible. This experiment proves that
  937. 33:55a fly is capable of context dependent
  938. 33:58associative learning and action
  939. 34:00selection across multiple different
  940. 34:02sequences of environments. Terry has
  941. 34:04officially crossed the browser
  942. 34:06labyrinth. So, he earned himself a
  943. 34:08cigarette. Smoke up, Terry, and enjoy
  944. 34:10because the next challenge,
  945. 34:13well, the next [music] challenge is
  946. 34:14going to be your equivalent to the
  947. 34:16dancer in Dark Souls 3. And you won't be
  948. 34:18allowed to use the dark hand to cheese
  949. 34:20it. you you're gonna have to manually
  950. 34:22kill it with a great sword.
  951. 34:26[music]
  952. 34:31[music]
  953. 34:37[music]
  954. 34:50>> [music]
  955. 34:52>> Introducing Kyoptric Level One, a
  956. 34:54deliberately vulnerable Linux server
  957. 34:56whose entire reason of existing is to be
  958. 34:58broken into. If you're into cyber
  959. 35:00security, Kyoptric is probably one of
  960. 35:03the first vulnerable boxes you've ever
  961. 35:05practiced on. Kyoptric has its own
  962. 35:07operating system, multiple network
  963. 35:09services, outdated software, and its own
  964. 35:12file system and and everything else that
  965. 35:14an operating system has. A vulnerable
  966. 35:15box or vul box is basically a pre-built
  967. 35:19virtual machine intentionally filled
  968. 35:21with security vulnerabilities. So,
  969. 35:23aspiring cyber security larpers can scan
  970. 35:25it, enumerate its services, exploit it,
  971. 35:28get it to do things unconsensually, and
  972. 35:30escalate their privileges to feel like
  973. 35:32Mr. robot, effectively allowing them to
  974. 35:35learn real cyber security concepts and
  975. 35:37attacks without actually attacking real
  976. 35:39machines and breaking any laws. This is
  977. 35:41a massive jump from a login panel and
  978. 35:44XSS vulnerabilities. It's Terry's final
  979. 35:47boss. He's already withered and tattered
  980. 35:49from the hero's journey he's already
  981. 35:51been on. And this will be the Taguro of
  982. 35:53Terry's world. Actually, no. This will
  983. 35:55be the equivalent of fighting Prime All
  984. 35:57Might for little Terry over here. And
  985. 36:00Terry here, he doesn't have a quirk.
  986. 36:02Terry will be controlling his very own
  987. 36:04machine this time and it's going to be
  988. 36:06Cali Linux. Why? Well, Terry is in the
  989. 36:09Skid Larer era of his cyber security
  990. 36:11journey. When I gave him a cigarette
  991. 36:12earlier and he was having a smoke break,
  992. 36:14I also had him watch Mr. Robot and and
  993. 36:17then he immediately installed Kali Linux
  994. 36:19and started playing this song while
  995. 36:21running pseudoapp update for for the
  996. 36:24setup. I installed both Kali Linux and
  997. 36:26Kyoptric and isolated them to their own
  998. 36:29little [music] network. I then made sure
  999. 36:31they can communicate with each other and
  1000. 36:33set up SSH for the Cali box since
  1001. 36:35commands will have to be sent from my
  1002. 36:37computer to the Cali machine. I then
  1003. 36:38made a snapshot of the Kyoptric box and
  1004. 36:41ran through it myself and recorded every
  1005. 36:43command I typed because I would need
  1006. 36:45those commands for the experiment. There
  1007. 36:46would now be 20 steps that have to be
  1008. 36:49completed in a sequence and 20 potential
  1009. 36:51choices per step. On the actual run of
  1010. 36:54the box, I enforce a 10 guess limit per
  1011. 36:56stage since even untrained, there are
  1012. 36:59only 400 potential choices, meaning that
  1013. 37:01through pure repetition, an untrained
  1014. 37:03fly can gain root access to the box.
  1015. 37:06With the 10step limit, the odds of a
  1016. 37:08successful run on the fly untrained are
  1017. 37:11roughly 1 in 85 million, which would
  1018. 37:13take anywhere between 181 years to 363
  1019. 37:17years if each choice took 5 to 10
  1020. 37:19seconds. So, with all the commands, it
  1021. 37:22was time to train. I was hitting similar
  1022. 37:24plateau issues like with the XSS
  1023. 37:26experiment, except each training attempt
  1024. 37:28for this one took around 18 hours
  1025. 37:31minimum. So, getting this right took
  1026. 37:33[music] over a week and a half. One
  1027. 37:35example is this training run, which took
  1028. 37:37over 12 hours, and when put to the test
  1029. 37:40after 2 hours, Terry had still not
  1030. 37:42passed stage two. After more adjustment,
  1031. 37:44I was so close to giving up. Like you
  1032. 37:48don't even know. I was doing this for a
  1033. 37:50week straight and every training attempt
  1034. 37:52I'd have to wait like 12 hours at least
  1035. 37:55just to test it on the machine and let
  1036. 37:57it sit for like 3 hours and then realize
  1037. 38:00that nothing was actually learned. It
  1038. 38:02was so infuriating. This wasn't a final
  1039. 38:05boss for just Terry, but also a final
  1040. 38:08boss for me. But through sheer
  1041. 38:10perseverance and pushing myself to the
  1042. 38:12limit, we finally had a breakthrough.
  1043. 38:14The final training run took 20 hours and
  1044. 38:1846 minutes to complete. When put to the
  1045. 38:20test on the machine, these were the
  1046. 38:23results. Okay, Terry's starting out with
  1047. 38:25a basic ping just to see if you could
  1048. 38:27connect to the box. Okay, end mapap
  1049. 38:29scan. Now
  1050. 38:32we can see that Samba port is open.
  1051. 38:38Okay. Okay.
  1052. 38:41He's in the He's in the Metas-Spit
  1053. 38:43console. Just set the payload for for
  1054. 38:46reverse shell. Is this going to be it?
  1055. 38:48Is this going to be the reverse shell?
  1056. 38:51There we go. Reverse shell. Terry has
  1057. 38:55gained RU access.
  1058. 38:59The main frame has been breached. Okay.
  1059. 39:02And confir confirmation of Rue. It is
  1060. 39:05now official. Terry's just going to
  1061. 39:07leave a message here and he's going to
  1062. 39:09display on the actual Kyoptric machine
  1063. 39:12that they've been hacked by a fly. And
  1064. 39:15now he's thanking all of us. He's
  1065. 39:17thanking you for watching and he's
  1066. 39:19thanking me for teaching him. You're
  1067. 39:21welcome, Terry. You've earned this
  1068. 39:23victory. Terry occasionally inputed the
  1069. 39:26wrong commands, but at the end of the
  1070. 39:28day, he did it. I think he only put in
  1071. 39:30the wrong command like like three or
  1072. 39:31four times through the entire sequence.
  1073. 39:33Terry gained root access and is now a
  1074. 39:36master hacker. He was able to gain root
  1075. 39:39access through a Samba vulnerability.
  1076. 39:41Samba is a software that lets Linux and
  1077. 39:43Unix machines speak to the Windows SMB
  1078. 39:46file sharing protocol. The Kyoptrix box
  1079. 39:48exposed its Samba service through TCP
  1080. 39:51port 139 and was running an old
  1081. 39:53vulnerable version of it that was
  1082. 39:54vulnerable to the trans to open buffer
  1083. 39:57overflow. Using this, Terry was able to
  1084. 39:59make a reverse shell with root access.
  1085. 40:02The hero's journey that Terry the Fly
  1086. 40:04went [music] on was now over. Over the
  1087. 40:06course of the last 3 weeks, I grew quite
  1088. 40:09attached to [music] Terry the Fly. And
  1089. 40:11this victory was a bittersweet victory
  1090. 40:13because I knew I had to say goodbye to
  1091. 40:15my [music] comrade who fought through
  1092. 40:17this journey with me until the very end.
  1093. 40:19Except I didn't have to say goodbye
  1094. 40:21because I can do anything I put my mind
  1095. 40:23to. I can achieve anything I want just
  1096. 40:25like Terry did. I took his [ __ ]
  1097. 40:27brain, put him on my Linux desktop
  1098. 40:29environment where he is now free to roam
  1099. 40:32and live forever. Terry is now [music]
  1100. 40:34immortal. I even gave him an infinite
  1101. 40:37cigarette that never runs out. A real
  1102. 40:39dream come true. Terry's reward for
  1103. 40:41hacking this system is eternal life, a
  1104. 40:43cigarette, and dopamine being sent into
  1105. 40:46his brain every 10 seconds for all of
  1106. 40:48time. As long as this computer survives,
  1107. 40:50Terry lives on forever with us, the Zuma
  1108. 40:53viewers who are always cheering him on.
  1109. 40:55Thank you for everything, Terry. I love
  1110. 40:56you. [music] W Terry in the comments,
  1111. 40:58everyone.
  1112. 41:01Thank you for watching, everybody. This
  1113. 41:03video was a combination of some of the
  1114. 41:05most fun I've ever had making a video,
  1115. 41:07coupled with some of the most
  1116. 41:09frustration of any video. I hope you
  1117. 41:12found a rabbit hole of fly brains as
  1118. 41:14interesting as I did, because [music]
  1119. 41:16we're not just a cyber security channel
  1120. 41:18anymore. We are an everything tech
  1121. 41:20channel. All of [music] us, we're all
  1122. 41:22going to learn and scale max in
  1123. 41:24everything in tech, not just cyber
  1124. 41:25security. Do you know why? Because you
  1125. 41:27and me are limitless. We can quite
  1126. 41:30literally do anything as long as we just
  1127. 41:33keep trying and we chase that thing we
  1128. 41:35want with all of our hearts, just like
  1129. 41:37Terry did. I hope I explained the
  1130. 41:39concept and intricacies of a fly's brain
  1131. 41:42accurately and in a way that most of you
  1132. 41:44can understand. I was learning this as I
  1133. 41:47was going and I was just as confused as
  1134. 41:49many of you might be in the beginning of
  1135. 41:50[music] this whole journey. But let this
  1136. 41:52video be a message. You too can do
  1137. 41:55stupid little rabbit holes like this.
  1138. 41:57It's [music] fun. You learn a lot.
  1139. 41:58Literally any idea you have in your
  1140. 42:00head. Don't even think about it. Just
  1141. 42:01[ __ ] just do it. [ __ ] all the
  1142. 42:03preparation. You're not a Witcher. You
  1143. 42:04don't have to make 5,000 concoctions
  1144. 42:07before you do something. Just dive in
  1145. 42:10and learn as you go. You can do this
  1146. 42:12with literally anything in your life.
  1147. 42:14You're never going to be perfect, so
  1148. 42:16stop waiting for the perfect
  1149. 42:17opportunity. Just go, man. You got this.
  1150. 42:20I believe in you. Thank you to all the
  1151. 42:22continued supporters of this channel.
  1152. 42:23You guys mean the world to me, and I
  1153. 42:25look forward to diving down every rabbit
  1154. 42:27hole in existence when it comes to
  1155. 42:29technology. This is just 0.00001%
  1156. 42:34of what we're all capable of. If you
  1157. 42:36want to support the channel, buy the
  1158. 42:37merch, become a channel member, and
  1159. 42:39visit the description to see other ways
  1160. 42:41to support the channel. If you're broke,
  1161. 42:44your view and like are enough. Don't
  1162. 42:45fret. [music] Hello, this is editor Zuma
  1163. 42:47here. I just wanted to say that this
  1164. 42:49battle arena thing that you're seeing on
  1165. 42:51your screen right now is going to be the
  1166. 42:53new way that I'm going to showcase
  1167. 42:54channel member names. If you don't know,
  1168. 42:56[music] I used to showcase channel
  1169. 42:58member names by just scrolling them
  1170. 42:59across the screen like this. But now, if
  1171. 43:02you become a channel member, you [music]
  1172. 43:04can enter the arena of these stick
  1173. 43:06figures and fight to the death with all
  1174. 43:08of my other channel members. The winner
  1175. 43:10gets a shout out at the end of every
  1176. 43:12video. Is this just a cool way to entice
  1177. 43:14all of you to give me more money born
  1178. 43:16from my insatiable level of greed? Or is
  1179. 43:18this just a cool addition to honor my
  1180. 43:20channel members and give them another
  1181. 43:22awesome reason to join that exceeds just
  1182. 43:25supporting the channel? I'll let you
  1183. 43:27decide that. Today's winner is at Hellsc
  1184. 43:29[music]
  1185. 43:30Angels. Shout out to Hellsing Angels. To
  1186. 43:32everybody who lost, good luck in the
  1187. 43:34next battle. I hope to see more of you
  1188. 43:36next time [music] everybody fights. I
  1189. 43:38also wanted to showcase this beautiful
  1190. 43:41piece of art. This is my first ever fan
  1191. 43:43art made by [music] Anne is dying on
  1192. 43:46Twitter. Thank you, Anne. I'm gonna
  1193. 43:48cherish this photo forever. If you told
  1194. 43:50me one year ago somebody would make fan
  1195. 43:52art of me, I wouldn't have believed you.
  1196. 43:54All of you watching this, if life is
  1197. 43:56tough, [music] you're all one good
  1198. 43:58decision away from changing your lives
  1199. 44:00for the better forever. Because one good
  1200. 44:02choice can spiral and snowball into
  1201. 44:05something great. From now on, I will
  1202. 44:07showcase any fan art I receive at the
  1203. 44:10end of my videos here with the artist
  1204. 44:12ads as a tribute to the artist.
  1205. 44:14Subscribe to the Slob channel, follow my
  1206. 44:16Twitter, buy my merch. Thank you for
  1207. 44:18watching everyone. I hope you all have a
  1208. 44:20phenomenal day. Now click off this video
  1209. 44:22and go learn more things.
  1210. 44:27[music]
  1211. 44:33[music]
  1212. 44:40[music]

About this transcript

This page contains the full transcript of Can A Conscious Fly Brain Learn how to Hack? by dzuma, generated from the public captions YouTube serves with the video. The transcript has 8,041 words across 1,212 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.