hey guys Dan Duran here in this tutorial you will learn how to set up a Python 3 simple HTTP server
in Kali Linux as well as Windows 10 and 11. this is a useful skill for web developers penetration
testers and anyone who wants to share files over a local network quickly and easily let's get started
alright let's start with Kali Linux so for Kali Linux it's super simple because Kali Linux already
comes with Python 3 which is pretty awesome I'm here on the terminal and I'm just going to type
in Solo Su CD desktop perhaps and you'll see that I have on my desktop a bunch of files let's get
into hack the boxes it's one of the folders that I have a lot of content let's see there you go
perfect so now we're gonna throw in the Python 3 like that and and we're going to serve it on
let's say Port 8000 perfect we're serving it now this is pretty cool if you are in your Kali Linux
you can access that server very easily by typing in any local IP addresses so I'm going to start
with 0.0.0.0 colon and then 8 000 there you go now I can access this folder with everything on this
IP address zero right my zero IP address then I can access it also using 127 the 0.0.1 8000 there
you go perfect I can also access it through my localhost so check this out localhost and then 8
000 like that and now if I type in IPA I can see my actual IP address I can copy this and then
paste it over here a thousand and voila perfect that's that's awesome so now check this out this
is one of my remote connections to a Windows device now if I go into my browser and I type
in 192 168 to 177.45 and then 8 000 like that and there now I can just pick and download any
check this out this is a flag from hack the box I can download anything from my Kali system into my
Windows device how about the opposite how about if I want to install Python 3 and do the same thing
on a Windows advice it's a little different but it also works wonderfully so let's get that going in
your Windows device what you do is uh go back to your Edge in here and type in Python 3 install and
make sure you go to python.org like that and then download your python app perfect I already have it
installing here I'm not going to go through the process of installing it but I can modify repair
because I already have installed but in here you just install it so I'm not going to install it and
now what I'm going to do is I'm going to go into my command so C and D command prompt and I'm going
to power this as the administrator you don't have to but I don't know I like living on the edge all
right so now from here I'm going to do CD users and ran and then let's get into the desktop type
in there there you go so these are the folders and files that I have on my desktop as you can see
and let's start the server so in order to start the server on Windows you do a py that's python
command for Windows devices and then M HTTP server and then let's bind it to Port let's say 9000 like
that and let's get it going there you go so we're serving now there's something that you have to do
on your windows devices because it has a firewall let me just get the IP address from this machine
so ipconfig and it is where is it here you go 177.38 all right perfect so now what I'm going
to do is I'm going to go into my Kali install here type in 177 38. and then Port 9000 and
it's not working it's not working because the firewall is not letting me so let's go
back to my Windows device and then go into your security settings right here click on firewall
and network protection and then right here your private Network you have to turn this off
right there so you can share your IP address with other devices inside of the network make
sure you do it temporarily right so it doesn't stay on you can see right away
that I have access to my Windows device from my Cali and that's it super easy if you are a
fantastic or ethical hacker this is the perfect way to just serve anything from any folder that
you have on your Kali Linux whether it is the desktop downloads or anywhere inside of your
Kali Linux and serve it on the browser so you can download payloads and things like
that on other devices I highly recommend it I hope you have fun I hope you learned
a lot and make sure you subscribe to this Channel and I'll see you next time foreign
[Music]