粉丝256获赞831

今天我给大家介绍抓包工具,非得在这使用,它是一个非常好用的抓包工具,可以将网络传输、发送与接收的数据进行拦截、重发、编辑、转存等操作,也可以用来检测网络安全。 菲特勒尔是通过改写 app 代理,让数据从他那通过来监控并且拦截到数据。当然菲特勒尔也很屌,在打开他的一瞬间,他就已经设置好了他的浏览器代理了,当你关闭的时候,他就帮你把代理还原了,是不是很贴心? 想要抓到数据包,要确保 ctrl fafe 是开启状态点 flcout tic f 开启后在左下角会有显示,但是 也可以直接点击左下角的图标来开启或关闭找报功能。 stex 是请求的性能数据分析, expx 是查看数据内容。 奥特瑞斯邦德尔是允许拦截指定规则的请求。 come on poss 是自定义请求发送服务器, fux 请求过滤规则,他们来是请求享受时间。下一期我们讲菲特勒如何设置解密 htbs 下的网络数据。

其中的网址通常会有 h t t p 开头或者 h t p s 开头,这里的 s 是什么?有什么区别吗?当我们打开网页的时候,请求的信息先要进入一个分层模型,从上往下转化,最后在物理层发出信息,这些都是在客户端完成。 接收方如服务器也是在物理层接收信息,再逐步向上转化,得到最初的信息,这些也是在服务器里完成。 那么 h t t p。 连接代表的协议就是一种应用层的协议,用于传输比如网页的信息。那么 h t t p s 后面的 s 指代的是 t l s 标准,基于一种称为 s s l 的加密协议, 这两个几乎就指代同一种加密方式,我们后面就统一称它为 s s l 协议。那么 h t d p。 协议在最上层的应用层,而 s s。 加密协议会在哪里呢?我们先来接 少一些背景。大概在九十年代,大部分的网站只会用 http, 不会加密,因为加密需要额外的计算和传输时间,但是当时电商网站开始兴起,需要更安全的网络通信, 所以一九九五年, netsk 网检公司在当时作为浏览器界的老大,对此推出了 s s l。 加密协议。虽然公司好景不长,被微软的阿一浏览器抢过宝座,但是 s s l 协议则被各大浏览器所广泛使用至今。 那么 ssl 协议是在原来 osi 模型的应用层和传输层中间加上了安全层,毕竟主要是为应用层的 http 协议服务的。 那么有了 s s l。 安全层的 h t t p 就是为 h t t p s, 也就是安全的 h t t p。 那么不加密的 h t t p 传输有什么危害吗?当我们在浏览网页的时 时候,浏览器在和服务器传输数据时,中间可能会有黑客窃听中间的信息,那么数据没有加密的话,自然就知道传输的内容存在网络安全隐患,而通过加密后就变成一串乱码,没有密码几乎不知道原文是什么,只有双方都有密要的情况下才能沟通。 所以现在大部分网站都已经使用 h t t p s。 像谷歌浏览器中的这个标志,代表网站是 s s l 加密的。 那么本期视频主要介绍加密协议具体是如何加密传输的,主要分成两个部分,一个是安全连接的建立,还有一个是加密信息的传输。首先是建立安全的连接。 第一步,浏览器向服务器发送想要加密的 s s l 版本对应的参数编号,还有一个临时值 r a, 服务器在接收后开始回复 s s l 版本和 一个临时制阿密。接着第三步,服务器发送证书,包含一个公要,由权威机构签过名浏览器验证证书中的公要来验证服务器。第四步,发送结束信号,轮到浏览器继续发送。第五步,浏览器选择一个随机的预设主密要, 并且用服务器发送的工药加密后发送给服务器。服务器在收到后,现在双方都有了 irb 和右舍主密药,据此可以计算出最终的加密密药称为绘画密药,这个密药不再需要传输。 所以第六步,浏览器通知服务器,双方使用计算后的新密要来继续通信。第七步,发送结束信号,现在该轮到服务器发送第八步和第九步,服务器回复更改密要的通知,并且发送结束信。 好,这就是建立安全连接的全部步骤。接下来是加密信息的传输,双方使用另一种通信的协议。具体来讲,对每次传输的数据先进行分段,每段十六 kb 的大小可以选择性的压缩, 然后最后面加上消息认证码,他好像这段信息的指纹一样具有唯一性。接着加密,最后再上分段头,这样加密的分段信息就可以往下给传输层继续传输了。 好了,刚才具体介绍了 ssl 安全协议的主要内容,其实这里涉及到非对称加密、证书工要等网络安全的知识概念。

小白速成系列,两分钟完全掌握编写恶搞病毒超详细教程!今天教大家如何两分钟内用脚本制作恶搞病毒,我们先来看看效果。 首先我们新建一个文本,这里开始声明,一个函数声明,一个阿乐变亮 被表示俄罗克变量,从糖出输入框获取变量之以及糖出输入框的消失提示 衣服表示代码记录 判断流程。如果阿勒特变量为波比,则进行下一步。糖出消息盒子内容为好生长真乖以及标题为关注波比了,变成点个赞再走吧。 要表示以上条件不成立的另外一个代码执行分支,当俄罗克的支部为波比时,我们糖醋消息盒子,消息盒子内容为 以及标题为 重复调用函数字形泡动流程代码结束, n 的方程表示函数定义网结束,调用函数开始执行程序。 利用你的聪明才智,把文本名称改成一个人愿意打开的名字,注意后缀名必须为 bbs 别人总结是现在发给你最好的朋友!

今天给大家分享一下如何快速使用对象存储 iss。 步骤一,开通 oss 使用 iss 之前,您需要先开通 iss 服务。首先登录阿里云控制台,在左侧产品列表中单击对象存储 iss, 之后单击立即开通,然后按照页面提示完成开通操作。 步骤二,创建存储空间 bucket 开通了 ss 之后,我们需要创建一个 bucket, 用来存储各类文件。首先单击 bucket 列表,之后单击创建 bucket, 填写 bucket 名称。 bucket 名称要求全局唯一,创建后无法修改,只能包括小写字母、数字和短划线, 且必须以小写字母或者数字开头和结尾,长度在三至六十三字符之间。选择 buck 所在数据中心,选择后无法修改 存储类型,可根据您的实际需求选择。标准存储,适用于访问量比较高的文件,存储费用较高。低铁访问,适用于月均访问频率低于一至两次的文件,存储费用低于标准存储,但最少需存储三十天,且被访问时会产生数据取回费用。 归到存储,适用于基本不被访问的归到文件,存储费用低于低频访问,最少需存储六十天。文件被访问前需要先解冻。冷归到存储,适用于一些需要超长期存储的备份文件、原始数据等。存储费用最低最少需存储一百八十天文件被访问前需要先解冻。 如果您的业务对于恢复时间、目标 rto 以及恢复点目标 rpo 有较高要求,建议开启同城。勇于存储八个月的数据会勇于存储在同一个区域的三个可用区中,数据可用性更高,但存储费用也会相应提高。仅知 指标准存储和低频访问。如果您对数据安全有更高的要求,建议开启版本控制。八 kes 内被覆盖或删除的文件会转为历史版本,您可以随时恢复历史版本。文件读写权限,用于设置文件的访问权限。私有,仅授权用户可以访问八 kes 内的文件。公共读,所有用户都可以读取八 kes 内的文件, 仅授权用户可以向八太子写文件。 公共读写,所有用户都可以读写八 k 内的文件。如非必要,建议选择私有。 如果你要加密存储数据,可开启服务器端加密。目前支持 oss 完全托管加密和 kms 加密,支持 aes、 二五六和 sm 四加密算法。 使用 kms 加密时需要开通 kms 服务。若需要使用指定 kms 密,要加密还需要在 kms 平台创建一个 kms 密。 如果您需要实时查询与分析巴克特的访问数据,建议开通实时日制查询,目前可免费查询七天内,且每天不超过九百 g b 的日制,超出限额会产生费用。如果您希望定期备份巴克特内的文件,可开启定时备份,开通后两个月内可免费使用。单击确定 步骤三,上传文件八个创建完成后,您就可以开始上传文件了。单击文件管理之后,单击上传文件,这里选择文件上传的目录,可以选择上传到当前目录或者指定目录,若填写的目录不存在,上传实惠自动创建。 这里选择文件上传后的访问权限。继承八个文件的 acl 和八个体制私有,仅授权用户可以访问目标文件。公共读,所有用 用户都可以读取目标文件。仅授权用户可以修改目标文件。公共读写,所有用户都可以读写目标文件。单机直接上传,可选择本地文件上传, 你也可以将目标文件或文件夹拖到上传区域。 步骤四,下载和分享文件您可以将您存储的文件下载到本地或分享给他人访问。如果您想下载多个文件,可以选更多个文件,之后选择批量操作下载,最多可同时下载一百个文件。 如果你想下载单个文件,可以选择目标文件右侧的更多下载。 如想预览某个文件,可单击文件名,目前仅支持预览部分图片文件。如果要将文件分享给他人访问,可单击目标 文件名。设置链接有效时间后单机复制文件 url, 该 url 在有效期内可供任何人访问。如果您希望访问文件 url 时,可以预览,例如图片、网页、文件等。 您需要为您的存储空间绑定一个自定义域名,并通过自定义域名访问这些文件。更多信息请参考 oss 官网文档。


in this video we're gonna take on the tri hack me advents of cyber three, 2021 edition, day two and without further ado, let's just kind of dive into it you know so hey, i do have to apologize guys i'm sorry, i'm not in costume anymore the vibe the illusion, the artifice of christmas spirit and halta sheer is gone it has abandoned us, but we at least still have some fun with the advent deciber here at trihacme so, hey, i'm over at trihacme com christmas over on my screen here if you scroll down as you haven't already you can join for free join the room aoc and get ready to play we got the ball rolling just yesterday for the trihacmy advent of cyber to day to task, so only numbers at this point never mind i'm not gonna say that edit that part out if you haven't seen the introductory video or the kickoff video that i help kind of put together for this trihacmy advent of cyber event you can find that on my channel and i hope you enjoy anyway, let's get to the good stuff we just finished up the day one to save the gifts activity but now we're moving on it to the day two elf, hr problems and the story behind this give me a little bit i will read through the story and just cover all this high level stuff so if you're already a wizard if you're already a guru already know what we're talking about here feel free to skip forward in the video but if you are a hey someone new getting starting to feel the cyber security let's let's learn what we can learn together here this is mcskinney needs to check if any other employee elves have left or been affected by the grinch industries attack, but the systems that hold employee information have been hacked can you hack them back to determine if the other teams in the best festival company have been affected and here are learning objectives understanding the underlying technology of web servers and how the web communicates we also have understand what cookies are and their purpose learn how to manipulate and manage cookies for malicious use we are gonna be doing some cookies stuff we are gonna be doing some web http kind of like hey internet computers networking right here but it's gonna be a lot of fun it says https for your computer to en web sever to communicate with each other an intermediary protocol is required this is where http or the hypertext transfer protocol steps in the http protocol is a client to server protocol to provide communication between a client and a web server now web servers just another computer just way out here in the back that still kind of saying hey, i have information to give you i have pages i have results that you want to see and i can hand them to you you being the client and you as the client you just sort of you ain't you're on the phone right you're calling up the web server and the web server answers and they say hey yep, i've got all the information that you need that's the role between the client and server kind of do out there when you as the client start to call them up on the phone you make an http request and that request is crafted and it's kind of has a couple of special properties right it has a method and a target and now the method is what you want to do with this webs over here? do you want to get information or do you want to post something over there to the site those will always be included the target header specifies what to retrieve from the server and the method specifies how when retrieving information from a web server it's common to use the get method such as like hey loading a picture retrieving a picture literally actually take a look at this when we were requesting this tri hack me page right here we had gotten this file included this nice little christmas star here and we got we sent a get request to retrieve that image file so that's a good thing to know it happens all the time and you'll be able to see it once we kind of get in the weeds here on what this challenge i just has us doing here when retrieving information it's common to use the yet method such as loading a picture and when you send data to a web server it's common to use a post method such as sending log in information like you trying to log in and authenticate to use this website before you're uploading your profile picture or you're changing your profile description that is all sent in a post request because you are giving the webs of your information to now do new things with it once the server receives a request it'll send back a response including any requested content if successful and a status code the status code is to tell the client you me us how the web browser interpreted the request the most common successful code is http 200 status ok that's what you'll see if things went well if you called them up they answered the phone and you were able to retrieve get or actually set or post the information that you wanted to so here's an example you can see this is the raw http protocol here and take a look this is a you can see that header just right there and then hey, maybe the server information again who were calling up on the phone when you make this request how you want to receive it and then down below here i'll go ahead and changes to a different color so it's a little bit more readable this is the content that you would retrieve as part of that request that's the message right the raw data the protocol itself is only one small piece of the puzzle once content is retrieved from the web server your browser needs a way to interpret and render the information scent that's right this is just structure this is all the bones and the skeleton like the blueprint that makes up the information that you might see from the web page, but it's not all the pre pictures of the flashing colors and animations right web applications are commonly formatted in html the hypertext market language year, but it's rendered and styled in css or the cascading style sheets javascript another client side language actually client side doesn't it runs in your web browser, but dynamic it's scripting and something that could be used to add dynamic functionality and cool features to a web page in today's web environment, the use of web frameworks has significantly increased in popularity most modern web applications use many web frameworks and other web solutions that an end user doesn't even have to see or interact with now that could be ruby on rails that could be laravel that could be jango that could be flask that could be i guess express right for the node jonas group fanboys for more information about http request methods and headers check out the web fundamentals room let's hop over there web fundamentals is they know the tri hack me room that you could explore and work through it's super good i want to go verify and check it is a free room so hey, if you aren't subscribed to try hack me you could still jump in play and kind of get a good idea what's going on in that activity but now let's move on now let's talk about something fun and something cool cookies here cookies are how authentication really works it's the bare bones, it is the vessel, it is literally the core and raw structure of how you can log in and the website knows that you're actually logged in and you are who you say you are this is all because http right here, http is a stateless protocol and what that means is that it doesn't keep track of the previous communication that was done you're calling up on the phone to your buddy turns out your buddy has amnesia, he doesn't remember anything that you just said past what you just said so you have to kind of have a secret message or something part of and included in every single thing that you say so it knows oh, oh, oh, i'm talking to buddy or whatever, that's the use of cookies here so when you send request to a web server the server cannot distinguish your requests from somebody else's and let's imagine you're the omnishic server and you're getting phone calls from like everybody phones are ringing off the hook to solve the stateless problem and identify different users and access levels the web server will assign cookies and create a manage a stateful session between the client and the server cookies are like tiny pieces of data or metadata, right and information locally stored on your computer that are sent over to the server when you make a request again so i was saying hey, that's the kind of secret code when you're calling up the server and you say hey, 123792 this is john and then it knows who you are and what you're doing because you were able to authenticate and you passed it the cookie a secret special token the thing is you don't want other folks to know what that cookie is you don't want them to know your secret pasco you don't want them to know that little token that could be used to say you are who you say you are cookies can be assigned any name and any value allowing the web server to store any information that it wants today we'll be focusing on offensication cookies also known as session cookies authentication or session cookies are used to identify you and what level of access you have for your session so here below is a diagram describing an assigning and using a cookie from the initial request to the session request so this is going to be fun i'm going to be able to draw all over this and kind of make a mess here check it out here's the client over on the side let's see if my pan wants to work oof oof we did our best skies i don't know why epic pen always tends to lag over here but of course you have your client the web browser on left hand side and you already know hey, this is our server here now as this happens and it goes sequentially right you make one htt p request you can see this is a post request right here we go ahead and post hey, i want to log in with this username and this password and that works oh my can actually draw better heroes here so the server goes on and says cool cool cool cool cool! i see who you are i know who you are now i'm gonna say cool dude set this cookie so i actually have an understanding of who you are and that way we know as we're talking to each other here's the secret code so that you can be who you want to be barbie girl now now that this user is authenticated they go do whatever they want to do on the actual application we'll go and say hey, i want to go make changes in the admin portal, so they'll send a get request to go receive that page and because it is including the cookie here here let's try a little picture let's try a little do i have a circle yeah here's my cookie it just looks like a donut looks like a yellow donut i don't have any good like cookie, colors and then the server comes back and he's like sweetman i know who you are i can see your cookie you've got the secret passcode check it out here's all the information that you wanted because it was able to determine you are who you say you are based off of the cookie and that's that explanation hope that was fun to begin the process and when you send a request such as a login request your browser sends us information blah, blah, blah this is everything that i just discovered and talked about there is one good thing here it says when the server receives your get request and cookie it'll locate and sometimes desirialize your session d sirilization is the process of taking data from a given format like json, json, the javascript, object, notation and then rebuilding it as a logical object or some kind of data format that a computer programming language, maybe php, maybe python, maybe javascript, whatever, it can actually read an interpret and understand it's not just a flat boring chunk of letters and numbers right because that's just a data representation we want to bring into a form that our programming language knows how to work with if all of that succeeds the web server goes ahead and responds as it does over the phone with a 200 aok thumbs up, you're good here's your stuff now the winter saying what cookies are on how they're used for let's dive into their contents ooh okay now i gotta be honest i gotta be completely honest here cookies are made up over 11 different components 11 and that's a lot and some folks maybe you're like dude can count all those things on my hand i have ten fingers, but i know that i need 11 because of that so many components in a cookie each component of the cookie whether it's a name value domain path expire set size secure the same site etc i would venture to say unless you're doing some crazy hardcore which crafting voodoo stuff you don't need to know all of the ins and outs of the you know stuff beyond this i'm saying i'm saying i think really the name in the value are the most important pieces that you will mess with as you tinker with and explore cookies all of this stuff maybe maybe maybe sometimes you need to worry about it not always so if you are willing if you don't mind press the i believe button with me and that way you don't have to overwhelm yourself in thinking bro, i don't want to memorize and study and make flash cards for the 11 different components of cookies i got to be honest sometimes it's just the name and value that really mean the most here, but of course the domain is like hey, where is it actually set for a specific website in the path where is it okay to be used when the cookie expires is just an kind of important thing, but the size htb only some of these might not always need to be in the weed with you should know that they exist right because they are settings and they are values for a specific cookie, but be that as it may or whatever, whatever, idiom you say to wrap up a thought that you don't know how to wrap up looking at all the components a cookie may seem intimidating there's no need to worry his attackers oh try hack me just said this try hack me taking the words right out of my mouth cookie components are always preps in pairs the main pair is that name and value that's the most important part right will define the name of the cookie and the value of the name the second pair is the attribute value pair this defines an attribute of the cookie and the value of the attribute that's actually setting it here when you're using a set cookie header in an http request or response right from the web server, the web server saw said way back here they were like hey, we're setting it cookie with this web server response all of that information that you just saw below is what's gonna be included in there just here now the thing is cookies are stored locally as in you carry them with you right you you're the client of course so what if you could tamper with and change that cookie and then when you give it back to the server when you're calling the server up on the phone you say hey, remember how i used to be bill bob now, i'm joe schmo because i know the pascode 72918 and the servers like cool dude and that's the idea that's how you can manipulate cookies and you could do specific stuff you could get unintended behavior determined by the web developer that's why you don't want to have your cookie shared, but if you are acting as the adversary, you know you're putting your hacker hat on you kind of want maybe to get access to someone else's cookies because then you could access their session and access their pages on a web server that's the idea that's the gist there now you could do this in your web browser like you can just straight up do this in firefox, chrome, edge internex floor safari, opera i don't know i don't know you're up through these days brave is that what all the cool kids are using developer tools can be accessed by pressing f12 or control shift i on your keyboard in your web browser there is a little extra extra fun features called the developer tools or sometimes the browser tools this developer tools are open to access your cookies navigate to the storage tab in firefox or application tab and chromer edge select the cookies drop down on the left hand side and this is everything that you might be looking at when you're working on a page storage application and the cookies tab we'll kind of set all that here for you cookie values might seem random at first so ever they often have an coded value or meaning behind them that can be decoded to a non arbitrary value like a javascript object like jason kind of as we were discussing before from attackers perspective you can decode the cookie value to identify the underlying objects once you've identified the underlying objects you can modify them to whatever you want like again hey, the account name that you're trying to log in with bill bob changed to joe schmo is there an is admin premier like a true or fall or a one or a zero that says hey are you a super user on this website totally change that you can resend the cookie back and if the web server interpretates it understands it maybe you got access below as a summary of how cookie values can be manipulated obtain a cookie value like a regular normal one when you're calling up the server on your phone just registering and signing up for an account if you decode that cookie value identify the obvious notation of the structure of of the cookie and then change the parameters inside the object to a different parameter with a higher privileged level like admin or administrator right kind of that idea i was just mentioning now if you re encode the cookie back to what the server is expecting because it needs to be able to know that this cookie hasn't been changed or tampered with it wants to look as similar to a normal and regular cookie as it could like i'll bring this back to the actual case of cookies look if you try to bring grandma, chocolate, chip cookies and all of a sudden you had oatmeal cookies given back to you you're like what the heck this isn't this isn't what i would have expected in this transaction here they know something nefarious is going on or they just can't handle it maybe grandma's allergic to oatmeal cookies or something i don't know and then you do something with the cookie you let it invoke itself you let the server handle it and read it oftentimes done by refreshing the page because and it forces the server when you make another get request hey, can you tell me what's going on little process and do all of it if you want to learn more about all about that there are some other rooms in trihacmy http, and detail or other authentication bypass challenges and different trihacmy rooms let's go take a quick peek at some of those this is the web fundamentals one down below we have hdp in detail and i will store down the very bottom also again a free room fantastic authentication bypass mmm that's a subscribe one okay okay so hey, just know what you're getting into if you're tackling some of those other fun extracurricular triac me rooms, but now let's get on to the challenge let's get on to our task here what we are actually trying to accomplish let me go ahead and close out those other tabs because i do want to be able to open up this new one here it says open the static site in a new tab here all right so that's this link go ahead and click on that and this is the web page i am greeted with the best festival monitoring with some log in or sign up form and i get some snow flex falling could i turn the snowflakes off no, it's just a facade just a lie just like me what i put on santa's costume so we open it up we register and account and verify the cookies using the developer tools in your browser alright, so hey let's go ahead and say john hammond password please subscribe oh and i need to actually sign up right thank you thank you lastpass use that password manager guys please subscribe and let's just say john and john com great to count here we go uh oh, so google chrome wants me to save this password try last pass wants me to save this password it says hey you don't have permission to register on account currently please contact in a minisator for more assistance did i get a cookie though so if you wanted to as try hack me mention you you can hit f12 on your keyboard or hit ctrl shift i on your keyboard or you could very well right click and do like an inspect element and that will pop up a the notion here of the developer tools now i'm going to go way way over to the side here because there are going to be something that we particularly want to see is this this isn't i want to verify what i just said was a okay, yeah, so this opens some other things when i hit control shift i when i hit f twelve it's still the developer tools being opened i am probably dumbo and not seeing wear storages, but i suppose it's under the application tab right, so if we go to application and then we go to cookies can i expand this and let's see yeah there is a static labs trihacmidoc cloud entry there ooh, so this is a kind of connection that we have set up we see a list of cookies with their name and value over here one of these is for font awesome and the other as you can see for the domain here is for static labs tri hackney cloud now this value you can see down below my face is just about in the way but it's a lot of letters and numbers seemingly these are more numbers and they are letters and interestingly all the letters are a through f which sounds a lot like hexadecimal i don't know if tri hackney's gonna maybe give us that clue, but we did see hey, that's we found our cookie it says what is the name of the new cookie for your account so that was user auth right, we were able to see that right over here and now if we go back we can submit that i'll hit enter what encoding type was used for the cookie value there is a hint here in case you didn't know but i'm gonna take a guess that that is hexadecimal yeah, okay cool, what would that hint have been if we wanted to click on that use cyber chef to decode the value ooh okay let me let me fire up a cyber chef link there we go if you wanted to if you just genuinely had no idea what the heck we were looking at i'll copy this this cookie right here right click select it all and copy by bring it into cyber chef if folks aren't familiar with cyber chef cyber chef is an incredible tool to be able to do different things with data represented in different way and you can stack a lot of different operations whether it's whatever you want it to be then you can clear this out or manipulate them or move them around and see the input and output like rapidly so that's a ton of cool stuff that you can do with this cyber chef is super duper handy it's all online totally free so hey, if you want to do you can explore different recipes and see what the output is basics he fours not it and two is like doing the operation in one direction from is doing it the other operation in the other direction so like in coding versus decoding if we wanted to decode this cookie it says hey, we could convert a hexadecimal bite string back into its raw value they give an example here all these and let's take that here we go the hexadecimal representation is just a number system right it's base 16 rather than base ten like we normally count in and use in our language which is base base ten right zero to nine this time it's zero to nine with an a through f in hexadecimal just like you saw up here in the input there we go we have company the best festival is registered equals true username is john hammond, so that's it this looks like the same representation that we saw above and this as trohackme had mentioned the structure with the curly braces kind of wrapping around it let's see they had another example here json right this is that structure and i'll zoom in just a tad on that to focus on that when you see the curly braces and when you see kind of a key value being set with the colon to another actual value, age, colon 50 eye color, colon blue whatever that structure is json each of these are actually kind of represented and separated by a comma here you can see that after each entry but that is just a method in its way to store data it doesn't actually mean anything it's not code you can't execute it it's not gonna run you're not compiling or running any json but it's a representation to show data in information and that's why they literally call it the object notation because it's the notation it's how it's presented and would stored so that's json javascript object notation we could manipulate the cookie and try and bypass the login portal what's the value of the administrator cookie if we try to change our username to admin so let's go back to cyber chef and do that let's say our username if we kind of took this output here down below i'm actually gonna do something weird i'm gonna remove everything from input and clear out my cyber chef operations and i'm gonna paste it in here so that now we could modify and tinker with what we actually want to change here and manipulate this cookie let's change that username to admin typing that in and let's change this two hexadecimal now you can see this could take a delimiter here you could click on this and change it because this is full of spaces we don't want any spaces so let's change that deliminator to not and now i have this big long string here double click in right click and copy and pasting and let's go give this back try hack me here's the value it's submit and that's correct now let's go back to our cookie editor here in our developer tools on the static website and let's try to right click a cookie and edit that name or edit that value here so i could slap this in replace it just like that and we could see that that was able to be changed and manipulated down below now if i were to refresh the page you could click on the refresh button in your web browser or you could hit 5 or whatever, i really really recommend almost everyone when you're trying to refresh a web page hit ctrl shift r that makes like a hard refresh without cashing any information in the background so any pages that you previously requested and your web browser knows hey, i don't need to request those again because i already requested them no, no, no it tells your web browser look i'm gonna request everything no matter whether or not i've seen it before and that will kind of give everything a clean slate so if you've done any manipulating like changing your campering your cookie control shift r pulls it all back down fresh let's do that on the keyboard real quick ooh did i miss did i make a mistake very very likely let's check out my user off okay no, it is the correct thing but i don't know if i've actually told the server hey, i want to set that cookie let's go verify that one more time we've made this cookie if i wanted to go back to the homepage oh, yeah this is trying to do some like get request i want to go back to the actual homepage there we go okay so, that was just kind of a an idiosyncrasy at the very very top of the web page i may have changed the value for the cookie, but it was still taking me to a page that wasn't trying to log in or or get me anywhere it was already telling me hey, you can't log in because it saw in the url from those get parameter values hey, you are not allowed to log in so all right so we have some operations or some teams here that seem to be either responding or not responding i'm assuming this green is good as a status red is not and yellow it could be something else i know these actions i don't know what those are let's let's go back to the room first see what we're doing here team environment is not responding that is hr could submit that team environment has a network warning oh, that's finance so hey, listen i i i might have just steamrolled over probably the most important part what we did just then when we manipulated that cookie is ultimately in a authentication bypass and that's the danger right when when you either know someone else's cookie or you could figure it out because it's represented in such a weak and easy way like you shouldn't find yourself with web servers that will just have json encoded data that you could easily manipulated and tinker with we didn't have to know the admin password we didn't have to change or modify our permissions we literally just changed our name to admin and that's a weakness that's a serious flaw on the web servers perspective us is the client us is the you know acting as the adversary puttin on her hacker hat that's something that we could use and abuse, but it's this is the learning point this is the value when we kind of see hey, jason and the in the cookie we can manipulate and change that cookie and ultimately you have that power even as the client, even as the end user that's not a server side thing you can change that so there's the danger in that all right hey, we've got all of this figured out here sorry it looks like it is the application operation or that team that is having trouble here with their connectivity looks like i can click on stuff but it doesn't do anything i guess that's i guess that's the speed test but hey, let's go and answer that application is a team it's having a bad time and if you want to learn more about any authentication bypasses we should just trying out this room application bypass tasks yet released each day and progressively harder yep kind of as we knew from yesterday come back tomorrow for day three's task where namsack will be recording a video walkthrough ooh, he's quite a fellow he's quite a handsome man that's gonna be a ton of fun thanks so much for hanging out everybody this has been the day two task for the tri hack me advent at cyber 3 or 2021 addition and we learned a lot you know there's a lot of reading there's a lot of learning a lot of cookies http, stuff but boy oh boy did we get into some good stuff and i hope you had fun i hope this was educational i hope this was entertaining and i hope it's keeping you happy, healthy and excited for the tri hack me adventive cyber 3 we're having a ton of fun i'm pretty excited about all the upcoming rooms and there are just so much activities for the holiday season like everyone's doing a ctf everyone's doing a great game, everyone's doing some fun, cyber security learning and i guess we're just gonna have to completely neglect in our friends and family because i'll just we just want to hang out on the keyboard do some ctfs thanks so much for watching everybody i love you i'll see you in the next video take care。