I foundthatunlike a beentwosystems, I wasn't necessarilyableThiogetthispipingeffectQuiteright.
Sothereiskindof a bummerwiththat, butifyoucanfigureitout I triedpipingalloftheirlike, varyingstandardoutsandstandardheirstooneoutputandseeif I couldgetitThiorainbowColorit.
It s soifyougotothislink, thereis a beautifulblockpostby a temptingthechanceof a personnamedCharlie.
Whoa!
Andhewrote, That's kindoflikesetup, walkthroughonallsubjects, anythingontheCTifwe'regonnadotoday, I followedhiswalkthroughtoseteverythingup, andthenthat's when I stopped.
Um, sodefinitely a good a goodthingtogoandfollowIfyouwanttokindofplayaroundonyourownAWSinstances, we'redoingallthisforfree, buttechnically 38 ofthe U.
S.
Soyou'rewelcometoyou.
Followalongifyoulike.
IfyouwanttogetsomecoolbugbountymoneyfromAWSthanyoucouldtryandhackintotheboxforusingtodaywe'vesetup a firewallthathopefullydropsalltrafficbutours.
Soifyoufind a waythrough, youknow, letusnowandthenwe'lltellyouhadtobuyusandwe'llsharemoneyagainstthey'regoingtoThey'regoingtodamage.
Thenwe'llbeon a newpuzzlethateitherofuslookthattrue.
Yeah, we'returninginforthefirsttime.
Wediddothis.
Wedidn't usethispartoftheCCF s.
Whatkindoflike a filterititissetupcorrectlythistime.
Sorry.
Beforewekindofliketheideaoftheshow, atleastwhen I'm on, isusuallytokindofshoweveryonewhatitlooksliketogothroughthingsfromscratchwithoutanypriorpreparation.
Sonowif I typescratch, I'llendupbackwhere I belongonthisletsmelikerightthingstothefilesystem, becausethewaytheCDFiskindofattended a I shouldhave a chat, sinceitwashardtoseewhat's goingonhere.
Letmedothatrealquick.
I canalsomovemyterminal.
Apologies, everybody.
Actually, I mightworkbetterifit's likeandthatway, atleasthiscommandslikefilterupward.
Youseestufftryingtorefreshmyscreentoomuch.
We'llseeifthatworks.
Hopefullythatworks.
Yeah, sothisway I cankindofkeepmyscratchdirectoryas I goaswelogintomurderlikefurtherusers, I'llprobablyforgettodothisatleastonce, andthenwe'llhavetodoitagain.
Butbasicallythisisjustkindofsetup a swfarislikehowthisissetup.
Uh, theoveralreadyoverreachingsystemisn't goingtosystemhas a seriousofusers.
Whatwe'retryingtodoistheoverarchingsystemactuallyhasmounted a kindoffilesystemthatwe'recurrentlyinaslevel 01 throughsixthatisreadonlyexceptfor a smallportion, whichisrideableaswell.
Theotherthingthatwehaveinthe c t f ersointothathabitofjustlikecddotdot l s s L a wouldbe a betterhappen.
You'llnoticethatwealsohavethisfolderor a directorycalledLevelsOn.
Ifwegointothis, wefind a bunchofexecutiveALS.
Solevelonewillruntheprintstousthecurrenttime.
Ifyouwereherelasttime, yourememberthatthisis a particularlyvulnerableapplicationonthenleveloh, too.
Wecan't runatthemoment, butwewillbeabletoeventuallyOndasfarasLexusadmittingandkindoflikeUNIXgoesTheparadigmiseverything's a fileandyougettoseeallsortsofkindofthingsasyougo.
Umandsoyou'llnoticethatthis, like D hereatthebeginning.
If I do l l WhichLisettethelongformeveryraisefilesthatstandsfordirectoryandtheneverythingelseissetsofpermissions.
I don't reallyrememberwhat s standsfor.
Uh, probably, I mean, guaranteeit's meaningful, butyouhavethesekindoflikeareblank, uh, expatternshoops.
Andtherearethreesetsofthose.
Sooneofthem's fortherateuser.
Oneofthem's foronceeverybody.
Oneofthem's forthegroupthatownsthis.
Andthenoneofthemisfortheuserthatownsit.
AndtheyOh, thankyou.
Yeah.
SomeonepointedouttheChinese.
Theysetyou I d s o itsetstheuserideaoftheprocess.
Wantedtoknowitis a greatwayofremindingmeofwhat?
That, umgreatpoint.
Soeverythingelseisprettymuchjustlike, Can I readit?
Can I writetoit?
Can I executeit?
So, um, andthoseifthoseflagsairset, thenyouconducethoseIfyoucan't stand, youcan't.
EsoIf I'm notinthegroup, then I can't necessarilydoanythinguseful.
I canonlyexecuteitontuxmanhumorouslypointsout, chmod 777 can't gowrong.
RightondheCertainlygowrong.
Thatisverywrong.
I haveseenpeopledostufflikethis.
Uh, sosage, modrecursive.
I believeit's capital, mygirl.
Thatwouldbeback.
Thisis a prettyunfortunatecommand.
Hasbeenrunoccasionallyby, youknow, youmightseelike a trollpostonstackoverfloworsomethingtellsyoudothis.
Oryoumightseeanequivalentlytrollpost.
That's likeour m r F star.
Um, thisis a equivalentone.
It's when I wasworks.
That's alsobad.
Don't runit e roundlike a bridgemachineifyouwant.
I think a lotofmorecatastrophicband.
Yeah, thatwas, like, moredirectlydownthisrabbit.
You'llyou'llfindyourfilesystemsprettywell.
Toosafe.
It's Ah, saferspace, youknow?
Yeah, You're a spaceefficientafteryoursystemwilltakeup a lotofspace, actually, um, sowehavethislevelofoneandthestripe.
See, Taffisreallynotlike a systemsCDF, sowedon't reallyhavetoverifythat.
Likethecodethattheyhandus, the C codeisthecodethatgotcompiledtoit.
Weakenmoreorless.
Assumethatitisjustis a note.
Ingeneral, youreallyshouldn't assumethatif I giveyousourcecodeand a binary.
But I don't tellyouhow I compileditandyoudidn't compileityourself.
Youhavenorealguaranteethat, liketheyevenusedthesamecompilerthatyoumightuse a homeandthatmightbeastrivialislike, youknow, theyuse a randomcompilerlike a differentversionofGCCorwhatever.
Butwe'llalsokindofpointoutthingsthataregoingonhere, something I didn't knowlasttime.
But I doknownowishowsystemworks.
Thesystemchecksthecurrent, executehispathsorryenvironmentandlooksforthisstringas a keyinthatenvironmentdictionaryandthenexecuteswhateverisontheotherendofthat s o.
Sogenerally, when I purchase e t f likethis, it's prettymuchalwaysusefultoanythingyoudon't fullyunderstand.
YougoGoogleonpeoplewaslike, I don't know.
Youshouldn't googlethingslikeyou'resoslow.
It's like, yeah, um, that's true.
In, like, a specializedfield, right?
Soif I'm sittingthereand I'm a systemsengineerand I needtogoGoogleeverytime I wanttounderstandhow a colonellike, uh, like a protectivecontroltransferworks.
Andwhenwelookatthis, itsaysit's a commandlinethat'llbeexecuted.
Okay, Reasonable.
Sowhat I candoandwhat I didis a solutionlasttimethattherearesimpleronelinersthatwouldalsoworkisgonnasay, Okay, I wantittolookforcertaincommandsthatitcanrun.
So I'm gonnagointomyscrapspaceif I couldspellscratchcorrectly, Um, andinhere, I cancreatewhatever I want, So I'm actuallygonnamovethecurrentfolderheardfile.
I don't thinkthatthemforbetterwhenyoulearnhowtouseit.
Oh, forsure.
If I knewhowtousethem, I wouldwantyouverymuch, muchmoreintelligentandtoofcourse, I wouldalsobemuchfaster.
Butyouwillbehorrifiedtoknowthat I alsocan't touchtype.
Soifyouseemelookingatmykeywordsgoing, findingkeys, I have a terrible, terribletimesaver.
I havebeenworkingonit, but I wouldtouchtypeofthespeedoflight.
Canyoubelieveitmakesusfortwoyears?
Soyouknowwhat, count?
Thatdoesn't excuse.
That's a prettymiserablelittleaccountantand a crazyKikicraftaswellasboots.
Ck A tricksteriseating.
Youfollow.
I lovethelittlethenamerightnamesitjustalwaysfascinating.
Also.
Now, if I executedate, you'llnoticethatinprintSaidhellotomycounsel.
Uhoh.
I justrealized I knowyouguyswereabletoseethat.
I thinkbasically I added a date.
I gaveitmykindoffavoriteshebangBeenbashondigaveitanexecutable, uh, kindofcommand.
Andnow, if I gobackintothislevelstypingintherealworldhorrifiesmebecause I wasn't Thereis a cursewithtypinglive.
Exactly.
Soanytimeanythinglive, it's overwithorwithsomebodyelseinfrontofyoueverytime, everysingletime, andyou'llnoticethatwhen I goandrunlevelofoneagaindoesn't reallydoanythinginteresting.
Butwhat I candois I cansay, Okay, youknowwhat?
Let's updatemypath.
Let's pretendOh, I probablyshouldn't gobackintoscratchjusttomakethis a littlebiteasier s.
Sowhat I candoislikeanexportpath, whichis a variablethatrepresentswherethingslook, uh, where, like, programslookwhenthey'retryingto, like, dostuffon.
I canrunthiscommand, whichupdatespathtoincludethecurrentdirectoryaswell, andyou'llnoticethatif I echoit, italsoincludesthisdirectory, whichismycurrentoneonDDE.
Whatthatmeansisthatif I gotorun a commandsaydate, forexample, it'llcheckthatfirstsoitcheckseverythinginyourpathinorderfromlefttorighton.
Butthatmeansthatnowdate, insteadofbeingthesystemdate, ismyGod, I can't typeforthelifeofmeeyesactually, thedatethatitfoundfirst, whichisinmyscratchbased.
Sonowif I gointolevelsagain, I guess I couldhaveequivalentlydoneCDDutch.
I cannowarbitrarilychangetheoutput, and I knowthatit's ownedbythegroupleveloftwo, whichmeansithasaccesstoanythingelsethatisownedby a littletoolikefilethatwewerekindofinterestedinhere.
AndDioisTheogetdatestobeexecutedbythis, and I wantdatestobeonmycurrentpower, so I think I cansetin.
Oh, no.
Itis a functionfrommaybenotthislanguageorthissystem.
That's okay.
Um, sowhatwe'llgoaheadanddoisseeif I canget a catdidversionofthatfileprintedouttous, and I'm gonnathinkthroughatthemoment s o thereareThereshouldbe a waythat I canthinkofatthemoment.
Thereasonforthatisjustthat I waskindofaccidentallymessingwiththepermissionswithwhichthingswerebeingrun, whereas I shouldhaveleftthosealoneasmuchaspossible.
Goodtoknow.
Uh, sofromhere, uh, whatwecandoisOh, sorry.
Weshouldalsoexplainwhatthisis.
Sobasically, ifyoulookinlevel 01 a cz a likethecodethatsupposedlyisbeingrunon, I believeisbeingrunThereisthiskindof, likeprintafterthecurrenttimeflushstandardoutsiderswipeoutwhateverthingsAaron, yourbufferondhe, thencallthesystemdate.