Coding a Web Server in 25 Lines - Computerphile

  Рет қаралды 345,191

Computerphile

Computerphile

Күн бұрын

Пікірлер: 672
@uuu12343
@uuu12343 9 ай бұрын
He is a gift that keeps on giving A fundamental explanation of making a simple webserver in 25 LOC for easy understanding of its components A lecturer that 1. Uses Rust 2. Uses a framework laptop 3. USES NEOVIM very nice
@fractalphilosophorum9405
@fractalphilosophorum9405 9 ай бұрын
And runs on OpenBSD !
@moose-1
@moose-1 9 ай бұрын
And uses Firefox
@slendi9623
@slendi9623 9 ай бұрын
True
@bhavyakukkar
@bhavyakukkar 9 ай бұрын
And uses gruvbox
@PotatoCider
@PotatoCider 9 ай бұрын
he's too based
@vercolit
@vercolit 9 ай бұрын
I had this professor for a few lectures in my undergrad during covid. He was very enthusiastic, funny and explained things really well. He was also was explaining concepts with his neovim + rust setup. Happy to see him again on computerphile!
@samwalker4438
@samwalker4438 9 ай бұрын
I loved Laurie’s smile each time he wrote something he knew was absolutely dodgy!
@AdamSpurgin
@AdamSpurgin 9 ай бұрын
I write webservices for a living and I have that same energy when realizing I can cheat the system and completely ignore convention.
@AndreDeLimburger
@AndreDeLimburger 9 ай бұрын
The joy of modern programming languages. Listening on a socket in just one line.
@sumantagogoi
@sumantagogoi 9 ай бұрын
yep.. that itself was the main trick... that one line.. tcp listen..
@aawwmm
@aawwmm 9 ай бұрын
java had that in 1995... ServerSocket for those asking After looking into c it has Socket.h so even in c its there...
@dexio85
@dexio85 9 ай бұрын
It's not a programming language, it's the set of libraries it comes with. I think you are confusing two things here.
@AndreDeLimburger
@AndreDeLimburger 9 ай бұрын
The standard libraries that come with the language, are they considered part of the language?
@rogo7330
@rogo7330 9 ай бұрын
It's two syscalls to Linux kernel too. Not so heavy to implement that in any language that allows to do syscalls.
@OldShatterham
@OldShatterham 9 ай бұрын
Honestly I didn't expect the fundamentals of HTTP to be so easy. This sort of "from-the-ground-up" approach was really fun to watch!
@GottZ
@GottZ 9 ай бұрын
email is of similar complexity.
@Faladrin
@Faladrin 9 ай бұрын
Sure, when you have libraries in place that do all the actual on the ground stuff we don't see in the video.
@collinswisher6566
@collinswisher6566 9 ай бұрын
@@Faladrinreally the only library he used was the tcplistener implementing the protocol was all up to him.
@beentheredonethatunfortunately
@beentheredonethatunfortunately 7 ай бұрын
There's a degree of knowing I.T. being seen as knowing how to use Word and Excel. Been this way for a couple of decades at least. Very few people seem to know the basics.
@FinalManaTrigger
@FinalManaTrigger 5 ай бұрын
What you don't see is just how involved the library calls are, there's tons more lines of code behind the listner, for example.
@wildwestrom
@wildwestrom 9 ай бұрын
Programming Rust on a Framework laptop running OpenBSD. Absolutely based.
@gg-gn3re
@gg-gn3re 9 ай бұрын
neovim and looks like alacritty as well
@udasai
@udasai 8 ай бұрын
I fully expected Python, the Visual Basic of the modern age. It's the only reason I clicked the link, to see if I was right, since for any modern environment you can write a "web server" with three statements: import web library, set default response string, invoke the listener.
@jumbledfox2098
@jumbledfox2098 8 ай бұрын
incredibly based.
@hachikuku_
@hachikuku_ 7 ай бұрын
you all sound like reddit and hn nerds absolutely cooming over a dude's setup.
@gg-gn3re
@gg-gn3re 7 ай бұрын
@@hachikuku_That's the point, poindexter.
@nullptr.
@nullptr. 9 ай бұрын
You can tell this guy loves what he does. Thanks for the video!
@Microphunktv-jb3kj
@Microphunktv-jb3kj 8 ай бұрын
highly paid serf is a happy and productive serf... : )
@TheHenrik225
@TheHenrik225 9 ай бұрын
Great format for explaining web servers. Those 17 minutes flew by
@dylanmeeks54
@dylanmeeks54 9 ай бұрын
Rust user? Framework laptop owner? Based prof.
@KarunaMurti
@KarunaMurti 9 ай бұрын
Bet prof use Arch too btw.
@Lb8068
@Lb8068 9 ай бұрын
Based on what?
@beatboy6690
@beatboy6690 9 ай бұрын
Rust user, framework laptop and vim user. Mega based
@UnevenMike
@UnevenMike 9 ай бұрын
And neovim and firefox
@AntonAdelson
@AntonAdelson 9 ай бұрын
What's framework laptop?
@Sonex1542
@Sonex1542 9 ай бұрын
This was awesome. I was a programmer, now a DBA. Having someone explain code like this is what a learning experience should be.
@YandiBanyu
@YandiBanyu 9 ай бұрын
I always recommend everyone trying to one up their programming skill is to create web server using the HTTP spec. It really teaches a lot about what programming is. There is a document that you have to follow and the expected behaviour, how you handle edge cases, how you optimize some algorithm, etc. Why HTTP and not anything else is jusy because the sheer number of implementation available that you can use as a reference.
@laptoprelaks
@laptoprelaks 9 ай бұрын
interesting will try soon😂
@halfsourlizard9319
@halfsourlizard9319 9 ай бұрын
'I am abusing this monstrously.' == always the sign of well-written code.
@TAP7a
@TAP7a 9 ай бұрын
“What I’m doing is a crime against silicon” = writing some of the most ingenious code possible to write
@phill6859
@phill6859 9 ай бұрын
No, not even close
@phill6859
@phill6859 9 ай бұрын
​@@TAP7aif you think it's ingenuous then it's more about what you think than the code itself.
@kevinmcdonough9097
@kevinmcdonough9097 9 ай бұрын
Genius or, more likely, brittle code only workable by the original author. Could be either. Could be both.
@halfsourlizard9319
@halfsourlizard9319 9 ай бұрын
@@kevinmcdonough9097 Oh, very probably both 😜
@vincei4252
@vincei4252 9 ай бұрын
You can build the web server in one line of code if you put your 25 lines of code in a library. 😂
@ai-spacedestructor
@ai-spacedestructor 9 ай бұрын
or write all of the code in one line, even if we dont strip down the server to the bare minimum, a full server is still just 1 line of code if you format it in such a way that its all on the same line.
@vincei4252
@vincei4252 9 ай бұрын
@@ai-spacedestructor isn't every application just one line of code/one function? main() {... } It's turtles all the way down.
@mail2ajm
@mail2ajm 9 ай бұрын
Low level programmer:
@ai-spacedestructor
@ai-spacedestructor 9 ай бұрын
@@vincei4252 depends on the programming language, im not too familiar with rust to know how that is exactly.
@zfold4702
@zfold4702 9 ай бұрын
Nodejs😂
@pmmeurcatpics
@pmmeurcatpics 9 ай бұрын
Don't know if it's a coincidence, but the code really reminded of the one in the first chapters of the Rust Book - Building a Multithreaded Web Server. I've just been reading it a couple of weeks ago, and can definitely recommend taking a look if you're interested! Though it's worth mentioning that the code does contain some difficult Rust
@vincei4252
@vincei4252 9 ай бұрын
Difficult Rust can't be as bad as "modern" C++ with templates and meta-programming? Can it?
@pmmeurcatpics
@pmmeurcatpics 9 ай бұрын
@@vincei4252 unfortunately I can't make this comparison since I barely know C++, let alone "modern" C++. Rust does meta-programming using things called macros - from what I've heard, they're quite powerful and reasonably easy to understand? Though they're definitely WIP, so there're a couple of rough edges here and there. There was a talk recently, called something like "Anything you can do, I can do it worse with macro_rules!", where the host showed a somewhat extreme example - a macro they created that can automatically create a fully functional XML representation of a token tree of Rust code
@framegrace1
@framegrace1 9 ай бұрын
This code will be very similar on any language, really. Even the ones with no sugar added.
@TAP7a
@TAP7a 9 ай бұрын
@@vincei4252they’re as bad as each other syntactically, Rust is probably a little more coherent, but the precision demanded by the Rust compiler is simultaneously much more reassuring and frustrating. Whereas modern C++ is less coherent, but quicker to get running, but only if you accept all the footguns that come with it.
@NetherFX
@NetherFX 9 ай бұрын
The funny thing is, there's an async tutorial in the Rust Book that explains how to use threads with a web server do handle 4 workers. If I remember correctly it's not even 10 lines more. Would've been a cool addition!
@Gnarkson
@Gnarkson 9 ай бұрын
which rust book?
@NetherFX
@NetherFX 9 ай бұрын
@@Gnarksonshould be chapter 20 in "the book" (referring to the official book)
@Gnarkson
@Gnarkson 8 ай бұрын
@@NetherFX thanks
@lanatrzczka
@lanatrzczka 9 ай бұрын
Even before the rest was completed, just the bit that sent back "Hello Computerphile" was totally amazing to me.
@linuxguy1199
@linuxguy1199 9 ай бұрын
Nice! One of my first projects was writing my own webserver in Java, later added PHP support and used it to host my website.
@andiuptown1711
@andiuptown1711 8 ай бұрын
How did making a Java web server go? Any tips?
@ayanSaha13291
@ayanSaha13291 8 ай бұрын
Learnt something nice today! Thanks for uploading, Lastly the authors enthusiasm regarding his craft was quite infectious.
@TallMoose
@TallMoose 9 ай бұрын
Great video! Just a few weeks ago my collegues and I were chatting about a web project I was working on, and the question of "How exactly does a web server even work?" came up. At the time we didn't look too deep into it, since we are all high level programmers who don't remember our college days. This really pointed out how simple you can really do it!
@yugshende3
@yugshende3 9 ай бұрын
I like this transition. We went from Perl one liners or insane algorithimic one liners to now people applying creativity to web servers and api designs. I was just thinking about how computer science is getting boring nowadays but I’m glad that there’s still a few breaths left until it totally becomes the next accounting-esque profession.
@sofianikiforova7790
@sofianikiforova7790 9 ай бұрын
I’m not sure it will ever be an accounting-esque profession. The amount of creativity involved and flexibility of tooling, and solutions are always going to be more open ended than accounting.
@yugshende3
@yugshende3 8 ай бұрын
@@sofianikiforova7790 I agree but I think the creativity part of it is tied behind the language. once people can code in their native languages I think more or less the syntactical accuracy will become a matter of just putting the right structure in place. So, more or less like accounting. Similarly how people still do creative stuff with accounting (eg new ways of building ledgers like crypto) but the basic premise has converged onto a more or less singular agreed-upon convention. Computer Science was fighting that premise at its very core I think with several languages and several programming paradigms. But with the advent of AI the programming paradigms or "code structure" might become meaningless. A computer for example doesn't care if the JS file is minified or beautified. We do.
@Lurco8
@Lurco8 9 ай бұрын
Fantastic content, that's what I was always missing in the "basic" server setup - the way the server actually functions!
@Norman_Fleming
@Norman_Fleming 9 ай бұрын
it is important to remember that whichever end you are writing, you need to consider the other end a bad actor or buggy AF.
@Ebiko
@Ebiko 9 ай бұрын
That's what he's saying. He's ignoring any safety concerns for this example like error handling or exploit fixing
@smccrode
@smccrode 9 ай бұрын
Great video! If you want to remove the duplicate INSERT mode you can add: set noshowmode into your config.
@slluxxx
@slluxxx 9 ай бұрын
awesome. even though i am a fullstack dev, this seemed always daunting and i never wanted to look into it but its actually super super easy. really well made!
@1111-z8h
@1111-z8h 8 ай бұрын
Although my English is not good, I spent an afternoon watching and learning from this video. This video is really simple and easy to understand for beginners like me.
@teej_dv
@teej_dv 9 ай бұрын
TELESCOPE USED!! LETS GOOOOOOO!!!!!
@mjhika
@mjhika 9 ай бұрын
TELESCOPE!!!
@Pbertrand_dev
@Pbertrand_dev 9 ай бұрын
wait arent you teej the creator of telescope but you also stream on twitch?
@n0kodoko143
@n0kodoko143 9 ай бұрын
Telescope, Lets GOOOOOO
@RenXZen
@RenXZen 9 ай бұрын
timestamp 1:51 woooooooooooo
@DamnitDutch
@DamnitDutch 9 ай бұрын
🔭 NeoVim without Telescope LITERALLY unusable 🔭
@comosaycomosah
@comosaycomosah 9 ай бұрын
this channel is fire tbh
@joaopedrorocha4790
@joaopedrorocha4790 9 ай бұрын
I love this guy's computherphile videos! He's always very clear and bring practical stuff.
@MegaAresik
@MegaAresik 8 ай бұрын
Didn't expect the video to include the Rust programming language. As always valuable materials presented for pure knowledge:)
@daze8410
@daze8410 9 ай бұрын
@ThePrimeTime needs to see this
@taylorswe
@taylorswe 9 ай бұрын
the "I'm abusing this monstrously - agen"
@romevang
@romevang 9 ай бұрын
I think he watched it on today’s stream, we’ll see if it gets posted.
@cthoadmin7458
@cthoadmin7458 6 ай бұрын
Tried it and damn! It worked! Utterly brilliant. What a fantastic way to learn! Yesterday it was Rust hello world for me, now I have a basic web server running.
@codewizard58
@codewizard58 9 ай бұрын
You can make a secure web site with about 60 lines of C that is extensible. Did this 28 years ago and was used as part of one the the first internet proxy firewalls.
@sundhaug92
@sundhaug92 9 ай бұрын
One difficulty with supporting multiple sites in a webserver is that you have to support it using both raw HTTP ... and TLS SNI (ServerName Indication) and ideally TLS ESNI (Encrypted SNI)
@Simon-ir6mq
@Simon-ir6mq 9 ай бұрын
This was really nice! I'm so used to getting everything low-level served to you as a library call when you actually need so little of the library you could just do the thing yourself.
@dehrk9024
@dehrk9024 8 ай бұрын
I love listening to these smart people it's so motivation and takes you into the presence, sharpening your mind..
@pedroth3
@pedroth3 9 ай бұрын
Like all computerphile video of Dr Laurence Tratt. Great work!
@VivekYadav-ds8oz
@VivekYadav-ds8oz 8 ай бұрын
Glad to see Rust having reached a point where it's no longer "Building a web server in Rust" but just building a web server, oh and btw we chose this whatever language because it's mainstream enough and understandable enough to not take away from the main point of the lesson.
@em_the_bee
@em_the_bee 5 ай бұрын
I'm sorry, you forgot to add .unwrap() and a semicolon, so your comment does not compile
@nelioasousa
@nelioasousa 8 ай бұрын
Absolutely amazing! Thank you very much, Mr. Tratt.
@sneaksneak6522
@sneaksneak6522 9 ай бұрын
Awesome video, great job at explaining the questions asked. Absolute chad energy Laurence Please do more videos like this!
@dougclendening5896
@dougclendening5896 9 ай бұрын
Realizing that someone needed to program the libraries you were using feels like a lost art. We stand on the shoulder of giants.
@gerokatseros
@gerokatseros 9 ай бұрын
Best channel in you tube ... i am surprised by how well and simply everything is explained. I don't use rust but i already figured out how to do it in Python!
@Meow_YT
@Meow_YT 9 ай бұрын
"In 25 lines" is doing a lot of heavy lifting with those libraries wrapping so much networking code.
@CramBL
@CramBL 9 ай бұрын
"Those libraries" he's using one library and it's the relatively tiny Rust standard library. Try writing to stdout in less than 25 lines without calling 50 lines of C or another binary that does just that.
@zerker2000
@zerker2000 9 ай бұрын
​@@CramBLNot wrong in spirit, but "call the SYS_WRITE syscall" is like 5 lines of assembly, or a hardware serial port equivalent in low-level systems
@Meow_YT
@Meow_YT 9 ай бұрын
​@@CramBLOh stop. It's just a bait title. So much is going on behind the scenes. People slowly forgetting how much work has been done by others in the past, and it boils down to "in 25 lines". It's a bit tiring. And it's all going to be forgotten if anything major happens and people don't know how to fix the problems. Cos all we'll have are the imports and no one knows the magic inside. Just 1 billion lazy devs that know the 25 lines.
@gg-gn3re
@gg-gn3re 9 ай бұрын
@@CramBL yea and try doing it without a kernel, that's even more lines!
@habl844
@habl844 9 ай бұрын
Libraries like... the kernel??? That's where the whole IP stack and sockets are implemented. Even in assembly this code wouldn't be massively longer.
@tmnt9001
@tmnt9001 9 ай бұрын
First of all, fantastic video. It's amazing how you managed to simplify such a complex topic. Second of all - as a software engineer - your corner cutting made my skin crawl. 😅
@MJ-xh8co
@MJ-xh8co 9 ай бұрын
I did the same project for a distributed systems course. What a great small project.
@PatrickPoet
@PatrickPoet 8 ай бұрын
"you could call it a good listener," you startled a laugh out loud out of me:) Thanks.
@ddude27
@ddude27 9 ай бұрын
Crazy to think we've abstracted all the low level aspects for creating a web server. Just going through all the standards/protocols invented to get this web server going that looks simplistic would take a lot of computer science courses to get a deep understanding of it all.
@DevduttShenoi
@DevduttShenoi 9 ай бұрын
This guy's the kinda professor I wanted all my academic life! nvim, rust in linux on a framework laptop! Be my guide sensei 😭❤
@wbfaulk
@wbfaulk 9 ай бұрын
Pretty sure he was running FreeBSD, based on the browser's "user-agent", not Linux.
@gspapp
@gspapp 9 ай бұрын
OpenBSD @@wbfaulk
@smikkelbeer6352
@smikkelbeer6352 9 ай бұрын
​@@wbfaulk OpenBSD, even
@wbfaulk
@wbfaulk 8 ай бұрын
@@smikkelbeer6352 dammit
@metcaelfe
@metcaelfe 7 ай бұрын
Oauth clients are an incredibly useful implementation of these
@Vl_OLET
@Vl_OLET 9 ай бұрын
no way y’all happened to upload the exact type of thing i’ve been looking for lately
@bersl2
@bersl2 9 ай бұрын
0:34 I am currently waist-deep in the Apache internals at work, so I can attest to this.
@Lion_McLionhead
@Lion_McLionhead 9 ай бұрын
Remember the good old days when writing a 1 line web server in perl was the rage.
@patrickle2500
@patrickle2500 9 ай бұрын
You have taught more about general services (it doesn’t have to be for web) than college ever did for me
@rkin2009
@rkin2009 9 ай бұрын
I don't know why, but I just thought about how to make a web server and this video came up. What a coincidence!
@shad0wman
@shad0wman 8 ай бұрын
ive always loved how "gobblygoop" is an official industry term
@AliciaSykes
@AliciaSykes 9 ай бұрын
Me expecting him to run `npx http-server index.html` and be done with it 😆 Great video, thanks Laurence!
@philrod1
@philrod1 8 ай бұрын
25 lines of code plus 4.6 gigs of node packages for some reason 😂
@jslay88
@jslay88 9 ай бұрын
While its nice to see this broken down for people, I also want to stress how dangerous this is without proper security and exploit handling. It is almost always better to implement some well known http server library if you need this functionality. It's not just handling files to have basic security here. There are all sorts of RCE via injection you have to be concerned with, etc, depending on which language you implement this in. However, this is a great exercise for learning this!
@rursus8354
@rursus8354 9 ай бұрын
I knew almost all, and I detest Rust, but I just learned the proper layout of the server response!
@slmjkdbtl
@slmjkdbtl 9 ай бұрын
It'll also be very informative to show people how to build a http server in C in 100 lines, with socket(), recv() etc. Rust already wraps things in pretty std packages, and it has syntax noise which can confuse people who aren't familiar with it (compared to the simplicity of C)
@HarryHelsing
@HarryHelsing 9 ай бұрын
Rust and Neovim, I like your style.
@PbPomper
@PbPomper 9 ай бұрын
Can't get used to Rust syntax.
@marcruijs1039
@marcruijs1039 9 ай бұрын
Love seeing the framework laptop!
@wcheswick
@wcheswick 9 ай бұрын
Lovely sample. I used to do all this with a shell script. Same approach, and potentially quite safe.
@AndrewTSq
@AndrewTSq 9 ай бұрын
Loved this episode!. Thanks.
@DoRullings
@DoRullings 9 ай бұрын
They could do a http path traversal, e.g.: [address to server]/../../../../etc/passwd
@Turalcar
@Turalcar 9 ай бұрын
I think you could just start with // to get to the root
@sofianikiforova7790
@sofianikiforova7790 9 ай бұрын
He acknowledged this insecurity.
@DoRullings
@DoRullings 9 ай бұрын
@@sofianikiforova7790 Yes he does. I only showed one way to access directories you don't want other people to access. It wasn't meant as a "gotcha" moment. 😉
@DoRullings
@DoRullings 9 ай бұрын
​@@Turalcar I'm not sure if it would have worked on that server, tbh. In any case, I would have written the comment in the same way as it makes it easier to read/recognize, and KZbin comments are not suitable for this as anything resembling a URL is easily caught by the scam filter.
@MyCodingDiary
@MyCodingDiary 9 ай бұрын
Wow, this is exactly what I needed. You're a lifesaver!
@tramsgar
@tramsgar 9 ай бұрын
Alright, ship it! We'll send out a patch later if we can be bothered. Now write a web broswer in 51 lines. Release is on friday afternoon, chop chop.
@SoreBrain
@SoreBrain 9 ай бұрын
Great video, loved it!
@deadlock107
@deadlock107 8 ай бұрын
Recreated it in python and learned a lot. Thank You!
@NonameEthereal
@NonameEthereal 9 ай бұрын
Using a slightly different one eh? I checked, and I spot some OpenBSD httpd! High Five Laurence Tratt! (And OpenBSD does run very nice on the Framework laptop. :D )
@MyCodingDiary
@MyCodingDiary 9 ай бұрын
I wish I could give this video more than one like. It's that good!
@seasong7655
@seasong7655 7 ай бұрын
I did the same for my website using python and flask. It's surprisingly easy (at the start)
@coutinhotiago
@coutinhotiago 7 ай бұрын
I love production ready code 🙂
@SeniorScriptKitty
@SeniorScriptKitty 6 ай бұрын
much obliged, i appreciate it.
@emjizone
@emjizone 8 ай бұрын
Laurence Tratt and @Computerphile, I hope you'll soon make a video explain how an why this naive server is so damn *vulnerable* to many sorts of attacks, particularly BF, DoS and LL attacks.
@chyldstudios
@chyldstudios 9 ай бұрын
simple and to the point. nice!
@FabianVilersBe
@FabianVilersBe 9 ай бұрын
10:50 you could use the split_whitespace() function 😊
@likebot.
@likebot. 9 ай бұрын
I remember a time when this webserver would have sufficed, when we could "leave our doors unlocked" metaphorically speaking, when the most malicious of actors were simply trying to bypass front door security for the sake of learning. But that time predates the webserver, the web, and even _The Cuckoo's Egg._
@SrFrancia0
@SrFrancia0 9 ай бұрын
You didn't have to flex your vim skillz that hard lmao what a legend. Also noticed the framework laptop
@slendi9623
@slendi9623 9 ай бұрын
11:58 this path traversal makes me cry
@SeralyneYT
@SeralyneYT 9 ай бұрын
I figured out the security flaw in that 5 seconds after Laurie said he was doing something dodgy. But yes, the fix for that would absolutely just be a few lines of code
@rtdietrich
@rtdietrich 7 ай бұрын
Very nice! thank you
@Kargoneth
@Kargoneth 7 ай бұрын
More robust and secure than some systems that I've worked with.
@abcde...7960
@abcde...7960 7 ай бұрын
It is an interesting video thanks for sharing.
@BillySugger1965
@BillySugger1965 8 ай бұрын
What I want to know it, how to connect a TCP socket to a serial COM port and then write a crude web server on an Arduino to simplify remote connections to embedded projects.
@shoaib_zubair
@shoaib_zubair 9 ай бұрын
love your shirt pattern.
@taylor1038
@taylor1038 9 ай бұрын
Love the Framework laptop!
@groverphonic
@groverphonic 9 ай бұрын
Good to see another openBSD enjoyer :)
@Eunakria
@Eunakria 9 ай бұрын
it's probably worth noting that even after fixing the path traversal attack, there are a number of other vulnerabilities in this implementation that make it very unlikely for me to recommend it for even small-scale deployments. just off the top of my head: rate limiting of any kind is nonexistent, resource exhaustion is trivially possible by sending an arbitrarily large request, any client can take down the server by requesting a nonexistent file, etc.. there are also a number of more subtle path traversals; even if you check for paths that contain `..` segments, you still have to account for paths that start with two slashes, etc..
@shadowmil
@shadowmil 9 ай бұрын
If this webserver is a shovel. Things like nginx and apache are excavators. Sure, they both can dig holes. But really aren't comparable beyond that.
@tnetroP
@tnetroP 9 ай бұрын
The Go standard library says hello :)
@itwsntme
@itwsntme 7 ай бұрын
That was very clear
@addas4
@addas4 9 ай бұрын
Thank you! You gave me courage!
@petersuvara
@petersuvara 9 ай бұрын
Great to see someone coding in rust! Thank you. 🙏🏻
@varantavers
@varantavers 9 ай бұрын
Rust mentioned, uses Framework. Instant like.
@EmanuelRaziel
@EmanuelRaziel 7 ай бұрын
Thank you a lot!
@RoyRope
@RoyRope 9 ай бұрын
Very nice explanation.
@dbreise
@dbreise 9 ай бұрын
Thank you for this. I work for a hosting provider and deal with Web Services of all kinds so It's really cool get an idea of how it all works under the hood. But for real though, you need to iron that shirt! 😅🤣😂
@thecakeredux
@thecakeredux 9 ай бұрын
I didn't know you could change indents in visual mode. More nvim knowledge unlocked.
@Timm2003
@Timm2003 9 ай бұрын
He uses OpenBSD, a true GigaChad!
@fedpo6022
@fedpo6022 9 ай бұрын
BSD stands for BaSeD
@Timm2003
@Timm2003 9 ай бұрын
@@fedpo6022 100%
@vasiovasio
@vasiovasio 9 ай бұрын
Using Apache since 1999, I think this video is Cute! ☺️☺️☺️
@Perspectologist
@Perspectologist 9 ай бұрын
Great to see Rust. Even better to see Rust code that compiles. This was an excellent explanation. Thanks.
Creating Your Own Programming Language - Computerphile
21:15
Computerphile
Рет қаралды 90 М.
TLS Handshake Explained - Computerphile
16:59
Computerphile
Рет қаралды 566 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 131 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 86 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 42 МЛН
WHY IS THE HEAP SO SLOW?
17:53
Core Dumped
Рет қаралды 271 М.
CPU Pipeline - Computerphile
21:48
Computerphile
Рет қаралды 69 М.
The Problem with Time & Timezones - Computerphile
10:13
Computerphile
Рет қаралды 4 МЛН
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,2 МЛН
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Рет қаралды 1 МЛН
Just In Time (JIT) Compilers - Computerphile
10:41
Computerphile
Рет қаралды 278 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel (kiwi)
Рет қаралды 220 М.