一分钟教你搭建 dns 服务器,呃,今天呢,我教大家怎么来配置 http 服务器和 dns 服务器,然后呢我们来看一下这张客服图,最下面的呢为客服灯,然后呢这右边的为 http 的服务器,左边的为 dns 服务器。 现在呢我们就开始来配置,首先呢我们第一步,然后他的 ip 地址是幺零点一点一点一,他的指望延码是三个二,五点零,这里要注意了,他的运营服务器为多少呢?幺零点一点点三,我们点击呢保存。第二步我们来配置 s。 好,现在我们开始来配置这个 app 的服务器,首先呢它的 fd 是幺零电源的啊,它的主管原码是三个五点零,我们点击呢保存。然后呢我们点击服务器的设置,点击什么 appp, 然后这里面呢我们找一个文件夹 啊,开始了,然后点击启动,这个 app 的服务器呢就设置好了,然后我们再来设置 dns 服务器啊, dns 服务器呢,我们首先呢给他配个 ip 组为幺零点点的三,他的昨晚延码是三个五点零,点击来爆头。然后呢我们到服务器的设置里面,首先呢我们给他一个主题运营,比如说三 w 点 your in levels 三点 com, 然后呢它的 ip 是多少呢?幺零点一点一点二, 然后呢我们点击来添加,你看邀你一遍一遍的啊,最近的一个运营制作的三 w 点,所有内部三点啊,我们点击开启动, 最后一步呢,我们来进行测试,我们在服务器上面呢选择 a p p 的 plus, 然后在这个里面输入什么呢?在这个里面呢输入三 w 点,所以 next 三点 com, 然后呢我们点击访问,你看看到 可以访问这个网站,那么呢这就是我们通过客户的人去访问这台服务器,然后这台服务器的域名是三 w 点 j n f 三点 com 是通过这台 dns 服务器解释出来的。关注我,下期呢更精彩。
粉丝5.9万获赞19.7万

前面的话我们已经知道了,我们如何进行一个网络的通信,以及我们浏览器到底是发送了些什么东西给到我们的后端,后端返回了一个什么样的东西给到我们自己,对吧? 那所以的话,我们现在的话自己来搭建一个这个简单的服务器,来看一下我们啊,能不能去啊?做这个用 no 德来做后台的一个服务器的操作。 ok, 那现在的话,我们就用我们的这个 httt 模块啊,来进行一个相对应的一个操作。那 htvp 的模块呢?是 note 的核心模块啊, 所以的话,你说 no 的本身自带了如何啊?进行一个什么搭建服务器的这样子的一个模块。 ok, 那我们就直接用这个模块,我们来用我们的 no 的把这 这个福气搭起来,并且让他能够什么返回一些数据给到我们浏览器,并让浏览器进行一个显示,好吧,好, ok, 那我们现在话就来开始动起来,那这句话,我们啊从这里, 这里的话,我建了一个新的文件夹,那在这里的话,我们啊新建一个文件,好吧?比如说 ins 一点, 在这里的话,我们把这个首先第一步呢就肯定是什么要导入我们的这个 http 模块啊,导入 note 的 http 模块,好,那在这里话,我们就是 like 我们的 http 等于我们的 ready, 那在这里话把我们的 http 模块导入进来,那紧接着的话,我们要创建 一个服务啊,那我们就是嘛, sorry, ok, 啊,等于我们的 httpdngrow, 那就这个方法。 ok, 那这句话我们是什么创建我们的这个福气实力, 好,那紧接着的话,我们啊创建了的话,那么我们就要什么去呢?监听啊,别人的请求,对不对?好,那这里的话,我们啊就可以啊,监听啊,服务器 监听请求数据,好吧,千金请求, ok, 那在这一晃我们就什么呢啊?肯定有什么事件啊? solo, 点腕,好,这一晃我们就监听的是什么呢?监听的是请求 reast, 好,那这一晃我们就写一个 rech, 好,然后这里的话,他会反 返回相对应的一个参数啊,就是这里话,呃,如果有请求,他就会执行我们的这个箭头函数,也就是我们传过来的这个匿名参数啊,函数对象啊,也就是我们的回调函数, ok, 那在这里面的话,我们啊如果有这个请求进来,那么我们就可以这么输出一下这个请求啊, iq 点预防要好, ok, 然后呢,我们在这里的话,我们啊要把这个请求真正的这个答应起来,我们还要什么?设置一下这个我们的服务器啊,监听的是哪一个端口号,对吧?啊?监听 端口号好,默认的话是我们的什么八零端口,那我们可以什么啊?进行一个设置啊? solo 点 nice, 比如说我们设置成三千的端口也可以,是吧?好,那么啊,如果你这个间端口啊,能够正常的一个监听,那么这句话我们就可以输出啊,这个服务器已经启动了啊,服务器启动, ok, 然后呢,这一块我们把这个,呃地址我们写出来,对吧?好,比如说我们现在的话,呃,那么要访问我们的服务器的话,那么就是幺二七 点零点零点一,然后冒号三千的端口,那这样的话我们就可以访问到我们的福气了, ok, 呃,但是这句话我们只是在控制台去输出这个请求,我们希望就是能够输出点什么内容啊?反响应啊,那这句话响应的话,我们有什么响应对象?我们在这里我们用什么响应对象啊?就是响, 响应点内容,那这句话响应什么呢?比如说响应个哈喽沃出去,好吧,哈喽沃, ok, 那好,那这样的话,我们就把这个哈喽沃啊给他什么响应出来, ok, 那现在的话,我们来看一下我们能不能完成这样子的一个服务器。 ok, 那我们启动一下。 好,那么我们就是 no endex 一点 gs, 好,那这时候话,我们这个夫妻就已经启动了,我们来访问一下啊,点开。 好,那现在的话我们就可以看到什么哈喽卧了,对吧?非常的简单啊,你可以看到这一双就是响应啊,我要响应什么?那种响应哈喽卧,对不对? 好, ok, 啊,那这句话就是说我们啊,如果有请求进来,那么我们就是输出啊这个内容,那我们看啊,我们输出了什么样的一个内容呢?我们输出了这个地址,对吧?阿姨, q ui 啊,你这是什么访问? 我们的首页,对吧?你看这是什么首页的一个访问。好,然后这里话又访问了一个什么这个图标页面,那这个图标页面呢?是画室吗?是默认是我们的,这上面的这个什么小图标啊?上面的这个小图标也就这个地球类似的,这个图标呢,是浏览器会自动发送的一个请求,他会去请求这个图标,那 请求图标这个地址就是这个 f a v icon 啊,那这里的话,我们没有这个东西啊,但是呢,我们返回来的也是什么? hello, 所以的话,你会发现呢?我们在这里的话啊,呃, 所有的话,那么你看这两个内容啊,都是什么?都是响应回来了,哈喽,我不管他是请求图标也好,还是请求我们的什么这个幺七零点零点一啊,他反反应回来都是这个哈喽我,那所以的话,你要根据不同的这个地址返回不同的内容,那什么我们 就要通过什么判断了,对不对?那么在我们的这个啊服务器上,那么我们也会什么去根据啊,他请求的是什么样的一个地址, 比如说这个路径是什么,我们返回不一样的内容给他,对不对啊? ok 啊,那也就说,哎,我啊,这个百度的首页啊,那就应该是长这个样子的,那百度的新闻页,对吧?比如说百度新闻页,那么这个地址不一样,那么返回的内容也会不一样, 来尝试一下做这个判断,对吧?那其实啊,我们比如说,就先来两个简单的一个判断,比如说我们的鱼蛙,要是吧,比如说,呃,这个的话,就是阿 eq 点鱼蛙要是不是等于说我们的这个首页就是什么斜杠,对吧?好, 如果是斜杠的话,那么就是告诉他啊,那这是什么?这是首页,对不对?好,那这句话我们就返回首页, 好啊,那这是什么啊?首页啊? ok, 那如果是登录的话,那否则啊,你括号啊,那如果是什么登陆页,那什么 iq 点 ui 啊,等于我们的这个 logo, 然后我们就告诉他啊,就是吗?这是登录页 iq 点 按的我们的什么老丁配置好啊,如果啊,没有这个页面的话,就假设,哎,我这个判断都完了,是吧?好,那就是我就返回啊,四零四, no, 放,对不对啊? no, 啊,四零四找不到页面啊? no, 放 好, ok, 那这样的话,我们呀又可以把这个,呃,简单的一个什么不分析不同的页面,我返回不同的内容,那么我们就可以实现了,那 ok, 我们来实现一下。好,那么我们重新启动之后呢,我们来看一 一下我们的这个内容啊,那首先的话,我们啊应带子啊,就是首页对吧?好, ok, 那我们现在话访问一下我们的登录页啊 logo, 看一下有没有问题。 好,那么在这里的话我们会发现呢?哎,我们的这个楼顶啊,有问题啊,为什么呢?来,我们来看一下, 在这里的话我们可以看到这里,哎,我们的什么写的代码有问题对不对?这里画什么阿 es 响应对不对啊?这句话也是阿 es 响应啊,响应的内容。好, ok, 我们这句话啊再重新运行一下, 那重新运行之后呢,我们再来啊刷新,哎,你看什么?这就是我们登录页,对吧?好,如果我们随便写一个啊,没有的页面,那么他就会什么显示,四零四闹放, ok, 那这样的话,我们就把这个简单的一个搭建服务器的一个操作啊,给大家进行了一个演示。

服务器搭建 htp 代理 ip 详细教程综合小编的行业经验,这里总计归类为五部,详细操作步骤如下,一、 购买服务器国号 vps 服务商推荐九十一伏公至玛丽八年行业品牌机器稳定,现价比高,直接购买最低配置单地区机器 选择购买完成。二、远程连接拨号 vps 服务器并调试成功。关于机器的连接教程,这里就不多做介绍了,需要强调一点的是,搭建 http 代理必须使用 lax 系统连接调整到有网,如下图。三、 tidy proxy 代理搭建一、 安装 tiny proxy yum install y apple release yum update y 升级一样,可能会等很长一段 时间。 young install why teeny proxy? 二、配置 teddy proxy 允许访问该代理端口的 ip, 默认为只有本机可以使用该代理把这行注释掉,可以使所有 ip 都可以使用该代理。配置完后重启。 teddy proxy systems will enable teeny proxy service the simple restart in the proxy service 防火墙开放你的配置的代理端口。 if the boss i input ptcp support eight thousand eight, hundred and athj accept 三、验证 tidy proxy 在另一台主机上运行以下命令检查是否用了代理。 ctrl x 代理服务器 ip 地址代理端口 httpdin 点 opgat 四、安装 python 及编写脚本一、安装 python 下面是我的 安装脚本,我每次都是直接用这个脚本来自动安装。 usor bin and bash yum y install with zli bzlib developopencil developgcc make cdpythln 三点六点五、 configure prefix us or local with ssl make make automobile style make clean cd rmrf python three six point five tip three install upgrade paper thumb three v and n tip three v 二、编写更新代理的脚本 由于 adsl 拨号服务器拨号后 ip 已经变化为新的 ip, 这时候要通知其他使用 ip 者新的 ip 地址是什么,这就需要有一个接口或者缓存工期,调用存储变化后的 ip。 我这里采用 用 reddis 来缓存。 import retime request 口令 utf 八拨号间隔 adsl cycle 六十乘以六十乘以二号拨号出错重试间隔 adsl or cycle 五号 adsl 命令 adslbsh spring it on ppp zero spin iphone ppp zero 代理运行端口 proxy port 八八八八号多号网卡 adsl if name ppp zero 代理持鉴名 proxy key adsl 测试 url 测试超时时间 testimous 二十号 api 端口 api port 八千 cutting of eight import reimport high import requests from reddest import strictly disinport platform import command as a process import sub process else raise value error class thunder death get it 获取本机 ip parent if name 网卡名称 return if status zero pattern recompelithnum inette ddd netmask res result researshift result ip result rupert turn ip death pass proxy 测试代理 parent proxy 代理 return 测试结果 try response requests get tasturl proxies httphttp proxyhttps https proxy timeout esttmeout return true except return force def remove proxy 衣橱代理 return none reddest strict release reddess hole print death set proxy 设置代理 parent proxy 代理 return none redescry strict redecef redescy asset print deaf adfl 拨号组进城 return none while true print try self remove proxy except path if that is zero print ip self get it if ip print print proxy ip court formative self test proxy print self set proxy print time sleep else print else print time sleep else print time sleep if name main sender sender sender ad 都是打开让别人可以通过这个你自己名字的按钮。相比以上就是,那么这样的话,我们就是他的 p, 再找到 ap 的详细教程,作用都是让别人。


i'm gonna show you how to do two cool things in this video first, we're gonna spin up a website and linux with one command we're gonna hit enter website, web server running right here on your linux box this is super helpful in so many situations and we're gonna do it in python second, i'm gonna show you how to talk to websites using the command line because that's our favorite place to be right now right there instead of using a browser we'll use our command line to browse that website and we'll be using tools like curl and w get essential things that every it person needs to know especially hackers and especially you so kitchekkathi ready let's do this welcome to linux for hackers and everyone because everyone needs to learn linux episode eight i'm gonna refill my coffee real quick and then we'll get started and just like every episode i'm gonna give you access to a free linux lab right now here in your browser thanks to our sponsor hack the box academy hack the box academy is what you need to use if you want to become a hacker if you're starting from zero like i don't know what the junk i'm doing you got to cover and as your hacking skills increase you can move on to more advanced courses going into the basic tool set and learning things like network and numeration with in map cracking passwords with hashcat and even crazier things like hacking wordpress, dns and numeration using python, which sounds awesome web attacks which ugh spiders freaking me out i don't like that at all hate spiders any wells hate spiders comment below ah now what's also cool is they have job roll paths let's check it out that's pretty cool in partnership with hacker one you can go down the path of becoming a bug bounty hunter let's take a peek inside their real quick dang look at that twenty modules full of hacking goodness all to help you become a bug bounty hunter and then again if you're just getting started junior penetration tester so what are you waiting for check that link below and get signed up right now because we're gonna be using their free linux fundamentals course to access a lab in our browser a linux lab, but our browser so cool, so yeah get logged in if you already have an account you signed up if you don't and once you're logged in go and click on modules on the left click on all modules and scroll down until you find linux fundamentals go ahead and start or continue then finally to get started with our lab go ahead and scroll down just a little bit almost to the bottom where we have my workstation go ahead and click on start instance to start your linux lab here in your browser let that bad boy boot up, take a little sip of coffee and once you see your work station going click on interact to open that sucker into a separate window or a separate tab and now we're ready to rock all right let's work on that first cool thing let's set up a website with one command here in linux now you're probably wondering why why do we need to do this now first, it's just cool to do like right it is second it'll be a very useful tool to have when you're hacking or doing other it stuff let me show you so like always let's open up our favorite place in the whole world the linux command line our bash shell open that guy up oh yeah and by the way you can do this in your own lab you don't need to use hack to box academy if you already have a linux vm with cali or parrot or you have linux's remain os that'll work, but here we go with our bash shell open make mine just a little bit bigger here oh too big ah, we're gonna spin up a website with one command using python check this out and if you'll know what python is i got a python course right around here somewhere check it out here we go type in python space, dash m space and then http, dot server and that's stinking it check this out we're gonna hit enter website web server running right here on your linux box and that crazy what you don't believe me let's go visit the website right now, so let's go ahead and fire out firefox fire out, firefox that felt redundant there he is right there and here in this web browser we're gonna navigate to local host which basically means this computer you're on right now this server we're saying hey go here because that's where the website is locally hosting it right here okay but we're not done yet local host and if we look at our terminal here our website's not running on the typical website port see right now it's running on port eight thousand the normal website port would be what http port eighty or most websites are now on four four three for ssl but anyways eight thousand is a non standard port so we need to specify that here in our browser, so we'll do a colon right after local host and type in eight thousand and watch what happens here it's kind of cool what couple things happen first our terminal freaked out it's like whoa whoa someone's here because we are we're here but the logging of this is so cool and we'll talk about that here in a second, but back in our browser what's happening we've got a directory like just like a listening of files here there's our desktop folder and documents and downloads like what's happening and if we we can click on these go ahead and do it right now going to documents and there's nothing there go to desktop there'll be some stuff there look at all that and tell you what try this right here in our desktop we have my credentials that txc click on that now this right here is a file on your desktop but we're now accessing that through a web server which if you're tracking with me here gives us another way to transfer files beyond the usual ways we use if you're wanting to get files from your atlantic server you can transfer files in a number of ways over assh overftp you can use netcat but if those ways aren't available you can quickly spin up a web server a website on linux and access those files like your browsing a website and of course at that port that you're using like eight thousand isn't available to you we can stop our server doing control c here in our terminal get the up arrow to bring that command back once more and we can specify another port beyond the one that a default to which is eight thousand we can say i don't know seventy six hundred for some reason and bam web server website running on port six seventy six hundred let's try it out local host colon port seventy six hundred bam now just so you know the reason that's listing a directory of files is because it doesn't have an index html file to look at which is what websites kind of use to bring up pages so real quick just for fun let's do something to change that so let's stop our web server control c type in ls to see where we're at and let's go ahead and make a new directory the command will be nkdir and we'll call this website and then we'll change directories into that directory cd website let's go ahead and make a little test file here we'll do nano index html and just end this file say hello hi welcome to my website and then for nano to save and get out of there do control x hit y and enter to save so now let's go in up arrow a few times to launch our same python one liner here go and launch that and now when we go out to we'll just refresh our page in the browser boom our website now important to note here is that when you run that python web server that one liner command it will launch in whatever directory you're currently in that's why i brought up this one index to htmlfowl we had and it's the reason it's not giving us a list of files like we had before because that's one directory up and we we're not there anymore now bonus time i'll do control seat to close that web browser once more actually know what i'm gonna keep that open i'm gonna keep it running i'm gonna open up another terminal and do another web server here i know things getting crazy and i'm not gonna use python this time i'm gonna use php because you got an options here so i'll type in php and we'll type in dash capital s and we'll say one two seven dot zero dot zero dot one no what is that what is that address it's an ip address this is your first time seeing this that's our loot back address this is a special ip address that will always loop back or fur back to your nick or your network interface card inside your computer now this is a virtual machine and same thing this virtual nick whenever you reference one two seven zero zero, one will always go back to your machine and also doing one two seven zero zero, one is another way of saying local host local host is kind of like the dns for one two seven zero zero, one that's why you'll see those welcome mats and people's houses that they're a nerd it'll say there's no place like one two seven zero zero, one it's a loop back it always loops back to your home your your computer your home so i love those very nerdy anyways i digress so to finish this up all we got to do now is specify our port we'll do a colon and say i don't know eighty eighty five it enter and boom now we have two websites running our computer so we have the one that's running on seventy six hundred mr python still up and running not to go to local host port eighty eighty five it is running but we don't have anything it's referencing to to pull up what do you say we add one more website let's do it let's go crazy open up another terminal we can use npm a node package manager to launch a we'll use a command oddly enough npx not gonna explain that right here and then type in hctp dash server do a dash p to reference a port and we'll say eighty eighty six just one more after the other one bam not through web server let's go there up and running it's so cool see yeah right now we have three web servers running on our linux machine here three separate websites personally i prefer a python because i freaking love python but whatever you want to use and sometimes you may not have python available to you you never know so you gotta get to be ready gotta be ready to pull out any tool you can now we're gonna spend up one more website i know like we have three why would why do we need four trust me trust me we're gonna spend up in a patchy web server a very very popular web server that you'll see across the internet and more often than not you already have a patchy installed on your machine and that does apply to you if you're using the hacked the box free lab here so let's launch yet another terminal it's getting kind of busy here it's okay and all we have to do is simply start the apache service so i'll do a system ctl and actually i want to stop there do you remember how to start and stop services we already cover this in this series now if you're just jumping into this video and going i don't know chuck well then go back go back and watch it but if you already know how do it right now anyways here we go system ctl start and then we'll do our service name i know it to be apache ah a patchy two and go oh it wants some pseudo access let's go open our credentials on our desktop here the mic credentials txt file on our desktop i'm gonna snag that password let's copy that sucker ah gonna highlight the whole thing that's how it works copy it paste that here and we still get an air now if you recall back on our episode where we talked about systems cdl and how linux services work you could probably troubleshoot this yourself, but i i know why it's not working apache by default wants to use port eighty but port eighties are being used by hacked box academy and how we're getting this option in our browser here so we need to go real quick and change the default port from port eighty to something else like maybe port eighty wow, why am i doing port eighty eighty which is really simple we just need to edit one file not as simple as like one line command line things, but we'll do it real quick i'm gonna type in pseudo and then nano or text editor i'm gonna edit this file it's an etc or etc or etsy how do you want to say it how do you say comment below and then apache two i'll do ports dot c o n f that's a file we're gonna be editing hit enter and they will use our directional arrows to get down to where it says listen listen we're not doing eighty today we're gonna do port eighty eighty so let's go and change it to look like that now the reason it says listen is because the web server is gonna go hey, if you want to come and talk to me if you want to get things from me requestings for me we'll talk about that here in a bit i'm listening but i'm only listening i'm port eighty eighty if you try to come at me i'm port eighty eighty four i'm not like gonna hear you eighty eighty only so let's go ahead and do that hit control x y enter to save and now let's say that santa command wants more system ctl start a patchy too and we need that dang password again and paste that sucker and now should be running no errors so if we open up yet another tab in our browser and we go to local host port eighty eighty woohoo look that it's an apache two default page now we got four websites running on our one server go tell your mom should be proud of you whoo did you think you'd built four websites today, yeah coffee break for you and for me now that we have our websites up and running maybe we talk to him let's talk to our websites, but not in the traditional way not with our browser because that's what losers do that's what most of the world does we're special, we're different we're gonna use our favorite place in the world to talk to our websites we're gonna use our command line so open up yet another terminal it's getting busy anyone else getting crowded claustrophobic it's okay new command time this command will be used so much in your career type in curl or c u r l curl stands for client url and you really can't put this command in a box because it's used for so many stinking things i follow the creator on twitter and curl runs pretty much everywhere including this garment watch right here it comes pre installed and pretty much everything it can be used for a ton of things one of my main use cases is downloading files and you can do it with a bunch of protocols http, which is what i use most of the time and of course https, there's ftp the ftps and scp, but we're not just gonna be downloading things from websites with kurl we're gonna actually communicate with those websites test them send them things try to trip them up and hack them kurl is an extremely powerful tool let's test out a few things real quick what do you say we talk to that first website we created the one in python now do you remember what port that was because i almost forgot there he is right there port seventy six hundred so actually i'm gonna make sure this terminal is open on the side, we're gonna type in curl, let's already type in space and then just the address of our website so i'll do local post port seventy six hundred and go now right there instead of using a browser we use our command line to browse that website which i mean it's gotta like so what i think that's cool that's it's neat right and you can pretty much do that with any website like real quick let's try the apache website we just spun up remember that was port eighty eighty saw curl local host changed my port to eighty eighty it's about to get busy ready look at all this, but it's that entire content of that website the homepage, but it's all on html right it's all on code because you're essentially downloading the code the source code of that website when you run kurl which is pretty stinking cool now, i'm gonna clear my page real quick now kurl is i'm covering curl like the beginning like we're opening up the front cover of the book and reading the first part of the first paragraph and that's all we're doing right now there's so much to curl but i'll show you a few more things instead of just having the output of that website just blowing up at us on the screen we can also save the website to a file let's try it out real quick so i think curl once more we'll do a dash lowercase oh, let's type in a file name let's just say cool website and then after that we'll specify our web address, local host and import eighty eighty for our apache website ready set hit enter and go bam so we just downloaded something with coral if we type in ls to see what happened there it is right there cool website and what do you say we look into it real quick now quick quiz how do we look at that file without opening it in a text editor like nano or vim if you recall we can use the cat command cat to concatenate it cat cool website bam there it all is now i'm gonna show you one more thing with curl and it's it's powerful you can use curl to analyze the way a website will talk to its client and vice versa the messages the code they use to make things work let me show you real quick so it's clear our page once more and we'll do our command curl this time we'll do a dash upper case or capital eye and then our website local host and we'll do a patchy once more eighty eighty and hit enter it's gonna be less wordy this time check it out bam now there's so much happening right here and it would take a bit to explain so we're not gonna cover everything just know that this right here is a header and more specifically a response header and gosh that the way i wrote header looks so bad let me erase that and fix it there we go now this might be kind of fuzzy if this is very new to you but think about it like a letter when you send someone a letter if you've ever done that in your entire life have you sent a letter before because i know some of the audience might be younger well you send a letter of course inside the letter you have the contents the actual message you want to give somebody and on the outside on the envelope you have the mailing details address where it's going where it's from that that stuff on the outside is what we're talking about when we're talking about the headers it's the information about who's sending and what kind of data they're sending so we can see hey, we have information about the server it's an patchy server we got content length we got content type so many things that you can look at troubleshoot manipulate if you're hacking and you're gonna use this all the time you can check on the health of the message like two hundred ok is the best message in the world when you're dealing with websites that means yes, it's good, it's here here you go friend you're happy now we're seeing the response header of the header that we receive back from the server when we send something to him, but let's see that's something that we sent because it's a conversation here what do you say we take a look at the request header let's try that one quick now we're gonna use something that's gonna make the screen very messy don't worry about it with clear our screen look quick we're gonna do curl and one more switch lastly, i'm gonna show you on curl i'm gonna do dash or tick v for verbose meaning this guy's gonna be very chatty head enter and yeah it's a snake and lot, but let's go ahead and scroll up to the very very top almost there, all my good and sticking forever, i'm going slow because i don't want to miss it ah here we are at the very top so just under where we actually inputed our command we have the headers here is our request header now as you're using curl notice on the left we have these arrows when an arrow is like that that's always going to indicate a request header when it's like this when it's pointing the other direction that's a response header so just a little fun fact there, but notice our request here is a get request because we're trying to get something there are other types of requests we could instead of getting something we try to send something we say it'd be a post request and we're trying to update data which you know as you can imagine if you're hacking adding something to something hmm gonna be handy someday and there's many others like put and update we're not gonna go into it here just know there's other methods we can use but by default most of the time when you're going out to a website your web browser which is the client is sending a get request saying hey, get me that stinkin web page i want to see some cats playing piano and if everything's cool that website's gonna come back with a response header normally it's gonna be two hundred okay, that's gonna tell you about what it's sending and then just below that the contents that response all the good stuff now one more tool i'm gonna show you and this one's really quick it's one i use sometimes, but essentially does the same exact thing as curl for one function, i use it for it's called w git go and type in w git and let's type in local host and we'll use our python server again seventy six hundred and when you hit that bam it downloads the file it downloads that code of that first page that we're receiving notice to tell us right here it pulled down and decks html to type in ls there, it is right there and also notice that we got some handy actp headers going in requests sent a wedding response ooh two hundred okay now speaking of which two hundred ok is one of the healthier ones we like to see what's the code that we never want to see who one of those will be four or four not found so if you're requesting a website or a web address that doesn't exist on that web server it's gonna go dude are you lost it ain't here okay web servers they are an essential part of our technical lives if you're an it you live and breathe if you're a hacker even more so in this video we covered how to spin up a quick web server, a quick website and linux doing that gives us options it allows us to transfer files and it allows us to do some just cool things it's a handy tool that you will take with you in the future to do some cool stuff and we also saw how we could have a conversation with our websites using the command line which is our love language is how we like to operate right we can download vials send files look at the source code of web pages and like i mentioned before we just scratched the surface so much more to it and you're gonna learn more about it you can dive deep right now if you want and as you move forward in your hacking journey or your it journey whatever, you're doing right now you'll pick it up don't worry because it's always just one google search away who anyways that's about it for episode eight thanks again to our sponsor hack the box academy for making this freely available on youtube and for the wicked awesome free lab right and if you want to keep going down that hacking journey they've got what you need and also have you hacked the youtube algorithm today make sure you do hit that like button notification bell comment subscribe we gotta hack youtube today, ethically of course yeah that's pretty much it i'll catch you you guys next time。

华为欧拉系统搭建雷克斯 htvp 服务器, em 杠歪 instolex 系统会自动安装 max 软件,查看雷克丽克斯的配置文件。防火墙,打开八零端科,查看欧拉系统的 ip 地址,启动雷克丽克斯, 在同一个局域网内输入欧拉系统的 ip 地址,显示 welcomex 基于 nikex 的服务器搭建完毕。如果将欧拉系统服务器设置成官网 ip, 配置好自助好的网页,一个网站由此诞生。

我们来介绍一款非常简易的开玩软件 misil, 它可以很方便的让你以 htv 的方式来分享你文件。我们首先来安装一下, 那安装好之后,那当前目录下有一个是第二个文件,就是我们要分享的文件夹,你可以看一下其中内容,包括一些文档和一些图片,还有子文件夹。那我们试的方式也非常简单,主要输入我们的, 因此我们集当前这个文件栏的路径秘密行中端就会显示分享的 htp 链接,那我们打开浏览器看一下, 哎,刚才我们文件夹中的文件就出现在了这个 app 链接里,然后我们可以点击图片查看,或者说点击文件夹中的内容, 请您下载。那我们来介绍了几个实用的参数,首先是杠自己考的杠二,接着他你就可以在浏览器端看到一个用内服包或踏包下载按钮,从而下载整个分享的沐浴露。 那接下来是杠优参数,他可以让你在浏览器端实现上传的功能。而如果说你只想分成一个软件, 那你就可以在执行秘密的时候,把分享的目录改为目的文件,这时候我们再打开浏览器,你只能看到这一个文件了,你学会了吗?

小伙学习三天购语言,就写了一个 http 服务器,哈喽,大家好,今天是学习购物员的第五天,那么今天我们用购物语言来写一个简单的 http 服务器,并分析一下他的代码实现, 那么购元写 gtf 其实是相当简单的,那么网上也有很多代码,那么我就抄了一段网上的代码给大家演示一遍,然后复制端代码放到这个变音器里面去运行一下, 那么出车运行的话,他是会成个挂起的状态,那么用这个 lit id 这里边演啊,那么简单来读一下这段代码,那么首先他引入了两个包,这个 fnt 是我们打印的一些信息,那么 nicetv 这个是一个 etb 的包,我主要是用的是这个包,那往下走的话,那么进入面函数,这是图函数吗?面函数里面进去之后呢?他用 htv 里面的还都放处理这个跟 注意这个路由,然后呢路由对应的处理函数是 index handle, 然后呢后面就是 htb listening, 然后呢?师傅这个呢是监听八千这个端口,对吧? 那么我们看一下这个 in this handle 这个,那这里有两个参数,对吧?那第一个参数呢?是一个 w 这个这个边量,那后面是 httb responsor writer, 那现在是一个类型,对吧? w 类型是 httb responsor writer 这个类型,那 r 的话是一个第一个参数,那么星号,然后加一个 gt 变成 cos, 那么这是一个指针的类型,对吧?那星号指星号后面 这个变量,现在就是这个类型,现在就是取这个值,对吧?那纸的类型的取值放吗?我上次说过啊,星号就是取值,如果是 n 的那个符号的话,就是取这个地址,对吧?卷出地址,那么这种形式呢就是取值, ok, 我们就不用分析太多了吗?这个呢就是 fn 点 f 的话,这个就是打印输出, ok, 我们在浏览器里面输入这个八千这个端口,那么如果你是本地的话,如果有做解析的 logo hose 八千就可以,如果你不是 没有做这个解析的话,可能是要压二七点零点点,零点一,然后呢这个八千摸这个斜杠,那么输出的,哈喽卧,对吧?那么他默认的是一个斜杠啊,这个是跟路径是这样的, 那么从这里的话我们是不是可以知道,呃,如果,呃,如果我们这里是不是可以定义一下不同的路径呢?比如说我再定义一个,对吧?呃,我定义一个六十这个路径,对吧?是不是好一点?六十,那我们用其他另一个处理 函数六十,然后复制一遍,对吧?再自己写一个六十,这是呢?再说说是这个是新闻页面,对吧?我们就 可以时间说,呃,不同的路由是不是有不同的一个输出呢?是吧?啊?我们再运行一遍, 他会先终止前面的一个调试,然后呢再进行变异啊,我们这时候呢,我们再刷新一下页面,然后呢请求 news 这个地址, ok, 他就输出了,这是一个新闻页面,对吧? 那这个呢?圆码的其实直接输出来的,那是不是可以输出,而且天热的代码呢?我们试一下,我们试一下。哎, 这有两个问题啊,我们试一下,比如说我在这里加一个 h 填页的标签, h 一,对吧?哎,我们 对点一下,好直行刷新啊,说明这个 h 一也是直行的,那么这个是可以去运行输出这个 h t 要代码,对吧? 是可以输出来的,那么我们能不能输出这个录就这个链接呢?就有时候我们分机请求的时候,对,这个链接是要要输出这个链接的,对吧? 这个代码呢,我其实也已经写出来了,我先把这个代码复制一遍,放放到我们这里去啊,放到这里吧, 那装大码呢?简单的讲解一下,装大码其实是固定的一些参数,比如说这个二点 pluto 就是协议啊,协议,那这个呢?就是 r 点 tls, 这个呢,可以通过这个来判断他究竟是 httb 系还是 httbs, 对吧?然后这个呢就是 rhose 是一个玉米, 那请求路径的话是 r request url, 那我们进行拼接一下,简单的先给这个 url 复制一个支付串,对吗? 初次画支付串,然后呢如果 t 二 s 等于六的话,那么这个是 http, 对吧?那如果他不是的话,那么就是 https, 对吧? 然后呢把这个 url 给输出来, ok, 我们先呃练习一下, 我们刷新一下页面, ok, 那么他就输出了这个 htvp 点幺幺七点零点零的八千,端口的六十,那么这个就是一个链接的打印。 那么今天的课程就讲到这里吧,我们下期可能会对这个链接的参数进行分析,然后进行做更深入的一些研究。好吧,我们这期教程就讲到这里,谢谢大家观看我们下期视频,再见。拜拜。

常见的代理协议有 httphttps、 suck 四五这三种。 http 协议的代理搭建方案最简单,但是 http 代理无法访问 https 网站, https 代理无法实现调用远端 ds, 所以我个人推荐使用 scuoks 五协议做代理。本文用于记录在 ubuntu 系统中搭建 sox 古代理的详细步骤。采用 dante server 作为服务端,首先更新服务器安装员, app get update 执行安装命令。 app get installed dante server 添加一个用户,用于进行连接代理时的身份验证, userat jackson in pastructure 等。由于我们只想使用这个用户用作 sox 的代理登录验证,所以 禁止这个用户的系统登录权限。 pseudogram etcetera password。 将 john shut on the shell 改成并 falls, 如下图, psudogram etcetera dented c o n f 晴空原来的内容,输入一下内容 log output internal 网卡 ip port 幺零八零 external 网卡 ip 验证账户 username 不验证账户 non method usernames are privileged root user libra nobody compatibility semaport compatibility routes their extension bind client pass from zero zero divided by zero two zero zero divided by zero log connect disconnect error pass from zero zero divided by zero two zero zero divided by zero command bin log connect this connect error pass from zero zero divided by zero two zero zero divided by zero command bind reply up primp log connect error pass from zero zero divided by zero two zero zero divided by zero port one to sixty five thousand five hundred and thirty five protocol。 tcpudp pass from zero zero divided by zero two zero zero divided by zero port one to sixty five thousand five hundred and thirty five command up associate。

旧手机别扔掉,秒变服务器,安装 kswell, 启动 php light 白色口 ftp 服务,上传代码到手机新建数据库,配置网站信息后即可访问。

如何拥有一个网站?首先你要有一台服务器,无论是实体的还是虚拟的。然后这台服务器就要揭露官网有一个官网 ip。 然后你需要注册一个域名,再去给这个域名做一个备案,把这个域名解析到服务器的 ip 地址。然 然后在服务器上安装我们的服务软件,包括并不限于 h t t p p h p macco 等等。然后制作网站的内容放到我们的服务器上,当一个站长是不是很容易啊?

同学们大家好,本讲我给大家讲解关于 windows 二零一二中外部服务器的大件。外部服务器呢,就是我们常说的网站 windows 二零一二呢,有很好的网站支持功能,那么我们在 windows 二零一二中只要安装英特耐的服务啊,就是我们这里面所说的 is 服务, 那么这个服务呢,里面就集成了关于外部服务器的管理。好,我们今天的实验步骤,先写一下, 实验环境中我们需要有一台 windows 二零一二的主机, 然后把它做成 ftb 啊,外部服务器啊,就是 htdb 服务啊,我们外部服务呢所对应的是 httb, 做成这样的服务,然后用一台客户端 windows 七来进行测试啊,这个地址的话也是点一点要领好,我们先把这个实验环境搭一下, 先切换到二零一二,在本地服务器中,我们首先第一步设置 ip 地址, 地址我们设置为一九二点一六八点一点一。 好,设置完毕之后,再设置一下 windows 七的 ip 地址, 那么这个地址呢,我们设置为一九二点一六八点一点幺零。好,确定两台地址设置好之后,下面我们开始啊写一下, 开始在 windows 二零一二上添加外部, 我们回到二零一二, 选择仪表盘中的添加角色和功能, 选择下一步,再选择下一步,选择下一步。好了,我们来看一下,找到我们要添加的外部服务器啊,那么我们可以看到备注后面的叫 iis 啊,叫英特耐特信息服务,那么我们把它勾选上,选择添加,然后选择下一步。 这里面功能栏目呢,目前为止我们不用啊,我们先装一个最简单的外部服务器,选择下一步再下一步。好, 然后这里呢再选择下一步之后选择安装就可以了,所有的过程呢,我们这里面都是用默认的方法完成的。 好,这里面显示的安装成功之后,安装成功之后,这里面我们直接选择关闭, 然后大家可以看到,当你安装好外部服务器之后,系统中呢就会出现一个叫做英特耐克信息服务的选项框,那么有了它之后就表示安装成功了。 好,下面我们开始进入到外部服务器的配置,在配置之前,我们首先在 windows 二零一二的主机上添加一个网站,这个网站呢我们要把它做好 啊,那么这个网站我们做一个测试,测试的网站啊,首先我们这里呢找到我们的 c 盘,在 c 盘下我们新建一个文件夹,取名叫做三 w 啊,那么这个名称呢是任意的, 然后在三 w 下面我们新建一个文本文档,把这个文本文档呢作为我们网页的编辑器,我们这里面呢写上一个啊,哈喽,我们就写一个哈喽, 我们这个哈喽,好了,写好之后注意同学们,我们这里面要选择另存为,我们要把当前的记事本保存为网页的格式,网页的格式,那么今天的网 业命名的,我们这里面把它命名称叫做英呆克斯,英呆克斯表示的是一个网站的主页,也是 is 中默认的 文档名称啊,后这名要注意叫做英代克斯,点 html 啊,叫这样的一个名字。 好了,我们这里面选择保存,大家可以看到这个的话,我们的网页文件就做成功了, 那么我们可以双击一下来看一下当前网页的情况,大家可以看到这个就是我们网页的基本形式, 这种地址栏目里面所显示的路径,我们称为叫做本地路径,在没有发布网页之前,我们只能在本机上对该网页进行浏览。 那如果说你想让其他的用户啊,网络中其他用户也能够看到这个网页,我们需要再进行如下的设置啊,我们这里面写下第四点,在豌豆四 二零一二上配置 is, 要求大家配置这个 is, 那么我们这里呢直接通过服务器管理器进行操作,在服务器管理器中我们选择高级,大家可以看到当安装好 is 之后,这里有一个 啊,英特奈特的信息管理器,我们只要点击这里就可以了,然后直接双击进去, 再双击网站, 然后在网站栏目里面大家可以看到这个标志呢,就表示我当前主机已经有一个默认的站点了, 我们如果要新建站点的话,这里面直接选择添加啊,或者说你在对空白处选择右键添加也可以,我们添加一个网站,那么这个网站的名称我们先改一下啊,名称这里面是任意, 我们这个名称呢仅本地可见,也就是说当你管理员进行网站维护的时候,那么这个名称他就是一个标识, 那么一个 is 中呢,他是允许添加多个站点的,我们给他起名主要为了方便编辑,比方说我这个网站就叫做外国的第一个网站, 然后物理路径在哪里呢?物理路径就是刚才我们放网页文件的那个路径,刚才我们在 c 盘下面新建的一个三 w, 那么这里面呢是我们当初放的是一个 ex 点 htm 的一个文件,我们只要选择这样的路径就可以了, 在地址栏目里面我们这里呢选中刚才我们主机的地址,如果你选择全部未分配,表示的是使用当前主机所有的 ip 啊,那么我们这里面的因为做的比较简单一点,我们就指定他当前我设置的 ip 就可以了啊,其他东西不要改动,然后这里面直接点击确定,那么大家可以看到这个网站呢就被 搭建好了,当网站搭建好之后,我们可以做一个测试,那么 好,我们测试的话在客户端来进行测试,我们写一下啊,这里面的第五步啊,在 windows 七上 通过 ie 访问网站,我们可以做一个测试啊,好,我们来看一下,我们切换到 windows 七,然后把 windows 七的本地的浏览器打开来,然后在这里呢我们输入, 我们这里的话输入 htdp, 两个斜杠,后面写上外国服务器的 ip 地址,点一点, 然后按回车,大家可以看到,我们就看到了刚才我们所设置的一个网页,所以最后一步呢如何去访问?那么这里的话要求大家输入的是 htvp 反斜杠啊,什么叫 htvp? app 的话全称叫做超文本传输协议,他是专门用来传送网页文件的啊,在网络里面我们后面的话可以写上该网站的名称啊,该网站的主机名也可以写上该网站的 ip 地址, 那么这样呢,我们就实现了网站的一个简单访问。好了,本奖到此结束,谢谢大家的观看,我们下节课再见!

准备工作一,温池系统设备二, httpscoks 五代理 ip 生成 api 提取链接教程一,温池配置 http 代理 第一步,右键桌面右下角网络,通过网络和 internet 代理手动设置代理,可以找到配置处。将前面准备的 http 代理 api 链接打开,将提取到的 ip 地址加端口填写进去。第二步,设置完成, 点击保存,打开百度,输入 ip, 验证是否成功。教程二,温时配置 sox 五代理由于 windows 系统自带的代理服务器配置只显示支持 http 代理,所以让人误以为 windows 不支持 sox 代理,但其实它是支持 sox 的,只需要 配置的时候正确编写信息即可。第一步,同上右键桌面右下角网络,通过网络和 internet 代理手动设置代理,可以找到配置处。 此时注意,我们在生成 http 代理的 api 时,选择 sox 五代理生成,然后打开链接提取到 ip, 然后再到设置窗口,在填写 ip 地址之前,前面加上 succept, 后面的端口正常填写。 第二步,设置完成,点击保存,打开百度,输入 ip, 再次验证即可。以上就是温时配置 hptp scoks 五的教程,很多教程仅仅写了 http 代理,但并没有写 sox 五的教程,今天分享给大家,希望对大家有帮助。

今天给大家介绍下 gdrhttp 代理配置详细教程。 一点一,打开 jeter, 添加代理 http 代理服务器,再添加一个现成组,放在代理服务器的下面。一点二,代理服务器设置端口默认八八八八目标控制器,选择 test pain 现成组。一点三,在网页上也要设置代理服务器,我用的是 h chrome, 和 firefox 设置一样。 一点三点一,设置证书,点击右上方浏览器的三个点 gt 设置搜索,设置里面输入证书 gt 点开管理证书,点击受信任的跟证书颁发机构,点击导入证书, 后面会有一个证书导入导向的界面,跟着步骤导入即可。需要导入的是 gt 的安全证书,所以需要找到 gt 的安装路, 我的安装后复制到桌面了,所以直接找到 desktop 导入即可。一点三点二,返回到证书搜索的地方,搜索代理,点开计算机的代理设置,点击连接局域网,设置代理服务器,填地址和端口号,地址 是自己计算机的本地 ipd 指端口号是刚刚在 gtr 设置的端口号。八八八八勾选上为 lan, 使用 darling 服务器,这些设置不用于拨号或 vpn 连接,点击确定就设置好了。 以上就是 jet http 代理配置详细教程,希望能有效帮助到大家。