text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
there analysis it did that is a weird file name um let's see how do I reference that one I honestly do not know did I delete it it did awesome so let's grap 1 two 3 four from this and we can just copy and paste this so this will be 60 my SQL DB okay instance ID 1 2 3 4 and we can also link 60 we did not title it um log... | 3,576.88 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
log 21 Megs so hopefully it's close to being done um I'm assuming the event log format is compressed and this Json isn't so it would be SEL bigger um but I guess we could look at the um other output while we wait so this is the one when I did the hunt and sigma I probably have it in my history right hunt so it's going ... | 3,735.52 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
there um got another what uh 613 1553 so it creates the user twice that's weird I wonder if they deleted the user somewhere and then reinstalled it it's odd we don't see a password change so we don't know that then we have this lateral movement thing um Network log logons and let's see I forget exactly what log types a... | 3,801.64 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
benign probably unless there's two attackers but we do have an RDP login so one of those questions protocol used RDP and let's see is logs I'm going to do a 25 po shell logs because I want my logs to be next to each other so again that's why I do that incrementing thing because when I like H I wanted to put something t... | 3,918.52 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
reset okay I guess it's just not in this log it'll probably be in this giant Json dump whenever it finishes Json 22 Megs now now see and it's not just on one line if it was on one line I would um just copy this log file off and I could start analyzing with JQ but it ends with invalid Json so um that would make JQ very ... | 4,059.64 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
think it's e l and B let's see where's Dash e uh sbl I forget exactly what they are it's just like the endianess of things so we do strings D E B I'm going uploads strings D EB does this get anything it's not really getting stuff but it's not just text like we saw before I bet my hard drive because I'm recording the vi... | 4,146.64 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
we don't have that because um it's not private domain so I'm just going to wait for these two commands to finish so going to pause the video and hopefully that speeds this up okay that chainsaw is finally finished so we have the security logs so before we get to looking at that I'm just going to grab the strings of thi... | 4,265.159 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
VM so that will probably speed up some time later on so let's go take a look at these uh the security. Json file it is 36 Megs so it's almost double the size when we convert it over to Json but now this is going to be a lot easier easier for us to just search through the downside is um it's in multi-line format so we c... | 4,293.76 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
because we're in a list or whatever they call that and then we can pipe it over to a select statement and we just do event. system. | 4,377.48 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
event D is equal to 4724 I think I just end that JQ let's see oh we got to give it the file name uh let's see that did not like it there we go and nothing oh we have a typer we have 3724 so 4724 it's going to search this Json file and print everything out now the issue is we have a lot of data here we only want to get ... | 4,388.88 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
colon and then drill down to what it is so it was a event I want to say event it's not event data it's in system so event do system do what is it time created attributes and then uh system time so I'll put that at the top so you can see everything we'll close that bracket off and now when I run this it should only tell... | 4,471.48 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
filter um on that and to filter we can go all the way up where we have this event code and then do an and and then we say um Event Event data do subject oh no we want Target Target username is equal to move it SVC it's gonna take a second to run and there we go we have the query it is not sorted by time um the way I ge... | 4,579.04 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
um this is every time the move it service password has changed and we can see um the attacker was on the box July 12th we know and that is when it changed it's also the only time move it changed its own password every other time it looks like administrator is changing it so let us copy this query we can go back to here... | 4,674.48 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
22 and we don't have a title on our log uh 22 we will call this um move it PW changes there we go awesome that's done when the attack are remotely accessed that was in the RDP um we had that somewhere was that let's see where do we answer that it was in the screenshot um here it is what we have credentials I don't know... | 4,788.679 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
done it is so if we go into analysis DHS strings. | 4,910.04 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
VM 251 Megs so let's GP move it SVC out of this we have a lot let's see um I see it right now we have it there but what I probably would have done is a sort dasu because we see this string just coming a lot right we did wc- L let's see 1600 lines sort D and 113 so doing that s-u really helps so I'm going to do a unique... | 4,917.199 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
because is it the ASP or aspx webshell there are two web shells then the header of the webshell I guess we'll try the aspx first so let's grap um move. | 5,038.88 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
aspx on strings VM and then we can do a-b 20 and- A2 and that grabbed before and after so whenever we see move it. text we'll grab 20 before and 20 after I'm going to search for title and I think we have it here right there so we will put this bash um what was that command that okay awesome and this will be um move ASX... | 5,056.84 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
go into this directory get out of the file okay LS we'll just copy it so we can say um export def log is equal to our path and then we will grab the operational log do we have to put quotes around it Echo def log awesome so let's go back to our analysis directory Mount C Sherlocks analysis and and then uh a chainsaw co... | 5,187 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
doesn't really get us much more information than what we'll have Let's see we just look at the analysis file while it's going Defender chainsaw we should do A- s and these that are empty eventually I guess it's at the very bottom we'll see Defender being triggered and we'll understand why they switched over to the aspx... | 5,310.08 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
output streaming to the console but I'm just going to pause the video we're going to wait for that to finish so it is now done so now if I do that um l-s on defender. chainsaw and we go to the bottom man maybe I want to do the Json dump because this gets ugly in this uh bracket but we can see the alerts um let's see wi... | 5,397 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
Json so generally I use this to do a first glance at the log because it's good at highlighting what I should be looking at and then I generally go over to the Json and look at there because it'll be a lot cleaner of output than this is right um see action id9 so this is remove suspicious Behavior uh completed successfu... | 5,450.84 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
ASP and we see it here so this is Defender cleaning that up it says it's a back door it detected from the user move it SVC there's the engine um the path C colon inet Pub dubdub duub root move it. ASP the process name so this was Powershell I think this was the WG and the console history and that's the um thing I screw... | 5,493.159 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
log security hunt we answered two questions there Powershell oh we do have the console history on 5050 yep that's where he put it so yeah that pretty much wraps up the video I just wish this one thing would finish so we can show you exactly how it looks um in the Json output so I guess I'll let that finish we'll pause ... | 5,567.08 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
than the other format we can we could probably filter by action id9 but um and also Google to see exactly what action ID is it's just a bit easier to read and we can see um it's concrete so it's positive this is a virus we have the process name if we had cismon logs we could probably look at the process ID and Trigger ... | 5,640.639 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
time | 5,698.76 | 0 | {
"video_id": "iqu5SkdK8_w",
"title": "Post IR Investigation - MoveIT Exploit - HTB Sherlocks - I Like To",
"url": "https://www.youtube.com/watch?v=iqu5SkdK8_w"
} |
what's going on YouTube this is ipsec and I want to tell a story about a web pen test I did a couple months back I think it was in July specifically it was an API pen test and I thought I found a SQL injection in the URL I put a single quote it aired out I put a single quote and then two hyphens and it didn't error so ... | 0.359 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
characters by putting a character after the SQL comment because that shouldn't change my query at all and I did find some bad characters namely one being the comma and the comma was used in almost every SQL payload because that's how you separate um columns you want to extract and if the union has like four columns you... | 56.94 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
tricks already so we didn't discover anything new we just didn't know how to search for what we wanted which is a common thing in this industry so I could just go and paste exactly what the syntax is this is like the trick of doing this SQL injection you do this weird as a ASB joins um but that doesn't really teach you... | 104.04 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
pen testing for almost two decades now and I still learn new things or at least new to me at this time because there's plenty of times I do something like man I just learned this and then go back like six or seven years and like oh wait I learned it way back then and just forgot so we're going to take a lot more time a... | 156.48 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
run the app in vs code and debug set breakpoints all that type of stuff if I'm not in Docker I know there's probably a way to hook vs code into Docker and have it do that but I'm a simple man right so let's go take a look at this actual application I have it running here it is going to be a flask app and it is using my... | 211.319 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
the username is ipsec so right here is going to be where the vulnerability occurs and if you ever see raw SQL in code nowadays it's probably going to be bad or maybe it's go language doesn't really have a good orm um this is kind of why SQL injections fell off the face of the Earth or they're not as common in web apps ... | 267.84 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
user supplied parameter there's no SQL injection in here but here we do have SQL injection we have the select styrofoam uses where username is equal to just raw input here we should do like an escape or even better a prepared statement which we'll cover later in the video but we don't so this is where the injection occ... | 320.4 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
vulnerabilities and libraries I use and then the code security is actually going to scan the code and find the vulnerabilities so here we have it finding a SQL injection and then it recommends fixes for them so this is using the mysqldb Escape string if we look at a another fix and it's using it from other Open Source ... | 374.58 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
code with copilot and sneak via ansible and also if you don't use it when you sign up please go to sneak.co ipsec it is free and this is an affiliate link so I do get some credit for bringing you to the platform so now that that is said let's go over the rest of this code um there is going to be a trick let me just sto... | 425.699 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
it is intercepting so let's refresh go over to the repeater tab we hit it and we see ipsec if I do a single quote I'm going to get a very verbose error we probably should disable it um because this is going to say exactly what it is um let's just share this what this looks like in the web browser this is the wonderful ... | 493.62 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
that in production and sneak also will warn me I think that it is yeah that is a medium finding tells me to turn debug to false so we can do that save it F5 to rerun so now when I do a single quote we get a internal server error so now let's go over to SQL map so I'm going to do SQL map Dash U and this is another thing... | 554.22 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
here we see it just try to get user slash slash if we do a invalid username so we'll just do I or if we do slash slash it goes not found so we need to put some data here but we can tell SQL map to go ahead and ignore that so it's asking do we want to quit and make sure everything's okay nope we already validated exactl... | 621.06 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
when I do a space is a bad magister's request because space is invalid in URLs um URL encoded it is a plus or a percent 20. and this is going to be really weird um this is a weird brip sweet Quirk if we go to convert selection URL and encode key characters it's a plus what happens if we do the other encode convert sele... | 683.64 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
that's the downside I wish um key characters did that we get internal server error that's not surprising because we haven't unbalanced thing between sides of this if we look at the actual output we likely have four columns ID username password email so we can do select one two three four and we always get internal serv... | 737.76 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
so if we look we have this wrapper here validate username I'm using something called pedantic so if I go in the code we can look at models and we have this name model and that's going to force the parameter username to be a string between 1 and 256 characters so if I change this to 12 it's going to make injection reall... | 805.32 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
I did this in fast API with pedantic I had the parameter as a string because that's generally how you do SQL or no SQL statements and when I sent it to Json it just flattened it out to a string and it wasn't vulnerable I couldn't use pedantic and have it vulnerable to no SQ well injection so that was really cool um and... | 860.459 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
typing um I think I have a script and here I do so I have a very simple thing we're just going to import pedantic the base model and we have name and string so if I do a Python 3 Dash I on this then we can um set our user so what I did is just put me in a it ran the script and then put me into a python console so now I... | 920.279 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
static type of what I want um also if later on the code changed uh python will happily change the type of variable over to an INT because it redefined it um so that is pedantic and a nutshell now that we know that I'm going to take this generic error off and put just this value error so now if we did something and set ... | 991.139 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
percent 20 by percent 20. and then one and that's going to use the first column in this case it's probably ID we got null so it worked we could also do it if we had ipsec here it Returns the data but we only have one user so order is not going to do anything two we're ranked by the name three we're ordering by the pass... | 1,068.72 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
is I'm going to copy this and then I'm going to use fuff and we can do um Dash U put in the URL let's see if I had to put this in that actually generally how I use fluff is I copy the request so I can just do V I'm going to make a new directory let's just do this in Dev shm uh the request user.request yeah that's fine ... | 1,140.299 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
and this is telling me that comma is a bad character if we do um match request or is it match code uh 400 there we go we can see all the bad characters and a comma is on this list so this is how I did it this is how I normally find Bad characters I just go over to fuff or I may just manly go and try things so if we do ... | 1,225.26 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
learn injection or you just want to learn SQL this is a great site I'm going to just do view sample fiddle and it's going to build a database for me and then give me a SQL statement over here if I want to change languages I can change various things so if I just click on run SQL it gives me the output um we're going to... | 1,293.84 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
because we are interacting at this spot we put a single quote and then a comment so the quote by the application gets tossed away and I don't know what this error is I do build schema again execute okay that worked I have no clue what happened there uh so we can do Union select one two three because it's getting three ... | 1,356.72 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
if you wanted to like get data from other tables but you should know that if you watch enough of my videos if you don't go to ipsec.rocks type SQL injection and I'm sure you will find some plenty and plenty of videos so now the trick we want to be able to do this Union select without any commas so how we can do that is... | 1,431.059 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
as something and this really just gets thrown away the as a doesn't matter this is just um required as per the syntax we're essentially assigning it to a variable that we never use but if we didn't have it and just did all these selects and joins we have an error each derived table must have its own alias so the join i... | 1,512.179 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
and normally I just right click I'm sure if this works um I'm going to copy this before I do it and then we can do convert selection URL all characters uh validation error name must contain letters numbers apostrophes ipsec Union select stir I am not sure where we violated the pedantic did I do like a double percent be... | 1,598.7 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
and this is a bit more readable if we don't URL encode every single character and again I can't just do that because pluses are bad it don't work with this so go here paste and we have it and of course if you wanted to take data from like information schema or something you just put it where this select is um maybe we ... | 1,677.059 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
it should be relatively simple um we're going to get rid of passing a um parameter inside the statement and then in I want to say SQL Alchemy do colon and then the variable you want to call it um I'm gonna do use it here because that's going to probably make a little bit more sense in a minute and then I'm going to do ... | 1,746.96 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
mapping a list expected for parameters did I screw this up do I want username I was expecting the application to give me null this mapping or list so we did text username I was pretty sure it wanted a dict C the text is closed out I'm actually going to pause recording and figure this out instead of wasting more time so... | 1,827.72 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
keys username oh I am an idiot I was doing a comma not a colon um I don't know why I was doing that 'll fix it there we go we get null because this is no longer injectable it's just saying hey that user does not exist there we go so that fixes that and now sneak if we go it's going to scan the code for vulnerabilities ... | 1,940.039 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
find a cross-state scripting here I believe let's see let's click this and maybe it got hung somewhere I'm going to change the output let's see how do I change the terminal it's looking at output debug I am not sure so problems nothing from sneak yet still scanning normally doesn't take this long I thought so I am goin... | 2,005.74 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
see the status of everything and it was saying the code scan was complete but it wasn't showing here so this was just a visual studio code bug we saw before and there's one vulnerability this Json dot dumps and we see it may result in cross-site scripting so if we look it wants us to use an HTML dot Escape so we can sa... | 2,088.3 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
longer is so definitely check out sneak if you haven't hopefully this video has helped you understand SQL injection a little more I'm probably going to do another one of Boolean injection in a little bit so um if you want to see that make sure you leave a comment down below it definitely does help me take care guys and... | 2,160.3 | 0 | {
"video_id": "61kf4CEnOZk",
"title": "SQL Injecting Beyond Strict Filters - Union Without Comma",
"url": "https://www.youtube.com/watch?v=61kf4CEnOZk"
} |
what's going on YouTube this is IPC and we're going to be talking all about Pam the plugable authentication modules for Linux specifically we're going to be using Pam exec in order to log the passwords of users logging into the box using pseudo SSH uh whatever right and at first we're going to do it with the bash scrip... | 0.08 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
server and that DNS server talks to the internet you'll still be able to get out so I like using DNS as an xfill for things like this but that's covered in a future video this is all about like an introduction to Pam and this isn't anything new I just want to like talk about Pam a bit so you understand when it comes to... | 45.399 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
against the local Linux database if you wanted to roll your earn authentication which you almost never should do you'd have to take a lot of things in consideration you'd also have to run as root because you have to open the shadow file and then you have to read the hash you have to understand all the like hashing thin... | 93.84 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
we look we can see Pam is separated into four independent groups we have account management authenication password and session management um but instead of just reading the whole man page let's just look at exactly how it's configured so the Pam scripts are in pam. D if we look at all these we have a bunch of scripts r... | 138.2 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
common off and then Pam shells I don't know exactly what Pam shells is so let's do a man on Pam shells to understand what this does and it only allows access to a system if the user shell is listed in Etsy shells so this way if we used invoke guest command on like um VMware where is the shell located Etsy shells it wil... | 189.319 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
prevents users from logging into the system when VAR run no login or Etsy no login exists the contents of the file are displayed to the user um so this is probably just a list of users that can't log the Box um if you just asked chat GPT what it is it would probably tell you this you wouldn't know it has an argument so... | 251.64 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
external command and there are plenty of legitimate use cases for this but every legitimate use case gets replaced by them just making a custom Pam module for that functionality um I would probably recommend removing this library from your computer because I don't think anything legitimate uses it you could do like a u... | 301.479 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
going to be your username in my case IPC and then the user is going to be who you're going to which would be root right so that is how all that works if we go down it gives like an example I don't like the example the man page gives it's kind of out of date it's talking about the NIS database which is I think Network I... | 353.039 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
whenever a user logs in to mount a SMB directory because Linux won't just do that automagic like NTM authentication because it doesn't store the password and memory for that user so you would have a Pam module that when the user logs in it would have Pam EXA it exposes the authentication token because it needs to run t... | 407.4 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
would probably be better off um you could also like when a user logs in execute some binary that does multiactor authentication but again if you're using like Google MFA they have their own Library you install so all the use cases of Pam exec that I can see kind of get replaced by just using um functionality that is li... | 452.919 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
cat and then Dash that's going to get standard in and let's see we probably want um Pam our host and then Pam our user and then let's log this to ver log password.log so now we have our shell script here we want to make it executable so we'll do chod plus X and now we want to edit common off so pseudo V Etsy um pam. D ... | 509.759 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
and then it's going to be home IPC Pam logger and that's where a script lives you can put it wherever you want right you could do like user local bin logger if you want so now we have that let's go that LS VAR log was it passwords dolog doesn't exist let's SSH Local Host I think I have SSH running let's put a bad passw... | 574 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
it exits before then I like logging invalid passwords because sometimes like users have different passwords they type the wrong password to log into a box and that password's good elsewhere so it's handy to know invalid passwords um let's see we could also make sure we're getting pseudo so if I do pseudo who am I we do... | 648.399 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
what's going on uh I thought it should work um I'm confused but The Show Must Go On I guess uh let's get rid of this I don't like bash scripts we'll do go Lan hopefully it works once there um so let's do a go mod AIT and I'll call it logger that's how we start the project and we'll touch main.go and let's open up VIs u... | 721.48 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
just start uh we did package main let's do Funk Main and let's see how do we start this program off well we want to open up the file so we'll do file error and then OS open file and we'll call it uh let's actually create a global variable so we have to like change if we open the file multiple times so we'll call this u... | 806.04 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
then it denies the login and we don't want to deny logins because we lock everyone out so we're just going to fail open this is not like proper go to just say hey if it's an exit Let's ignore it and exit like everything happened but we definitely don't want to lock the system out that defer is going to close the file H... | 872.759 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
like it goes to elastic search super easily it's easy to search things like Json just the way to go for me so we'll say go get because this is going to be a non-standard Library github.com rs0 log this is my favorite logging Library we install that and we can tell the logger to use Zer log give it the log file we want ... | 927 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
there and you don't have this zero log um sometimes that happens just replace log with zero log log and I think this is all we need so let's do a go build and now we have logger so if we uh let's do tail-f ver log password.log let's do SSH Local Host put a password in and we get it out in Json format we can see the pas... | 997.12 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
work because we only have Json output so give a few lines and I'm going to hope I can open up CMD yes I can SSH uh let's see what is this IP I think it's 192 168 587 hopefully this is right we'll do password there we go awesome so this is my host IP then we have the Emeral port and it's connecting to the box on Port 22... | 1,079.48 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
call it at the end we're not going to expose the off token we're just going to call it so the password's going to be blank so what that enables us to do is say if the length of password is equal to zero uh we can type then we're going to edit the line and I know um if user has blank PW or if remote user uses blank PW c... | 1,150.679 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
open up the file again so we'll do file error OS open file log file and we want um OS o create and then Oso um read write what the hell just happened my IDE is cracked Oso read right okay oh because that's a pipe not a comma there we go and then the permission uh 0644 probably right that's what we should do we should n... | 1,218.799 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
file and then we're going to read everything into this slice and we can grab the um last line by going to the like how many lines there are then back one so now we got the very last line and now we want to create a search string so this search string is going to be validating that um the last line is indeed the usernam... | 1,298.24 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
can't use single quotes most people use the back ticks because it's a more characters so you don't have to worry about like escaping quotes and things like that so there we go so now all we want to do is say um if strings contains the last line in search string we don't care about that so here we're in like the um last... | 1,373.84 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
true so replace um let's see the last line and then oh what is this going to be I want to say result colon failure I think that's how it's going to write it just in Json format okay so now we have that we want to create a writer so we can write to this uh like write the log file so we do buff IO new writer and we want ... | 1,442.6 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
and that's going to be the length of last line and I think either minus one or minus two because you have the um line break right and the file seek is going to be a negative number and that's easier if I do it that way so in 64 last line offset and then we do IO uh what is it seek end this is going to go to the end of ... | 1,510.2 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
line and we're going to do OS get environment am user there we go the E is not capital okay Moment of Truth uh let's see this is already in an SSH connection we can just do go build let's do tail-f bar log passwords okay are we ready aate Local Host bad password we only wrote once uh we should pipe to JQ and the result... | 1,582.919 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
bet we reread it it a success odly enough the our user is the same that is odd if we do su I think we can see it is a fail but we see it's calling s-l the user it wants to go to his route the user you're calling it is me so that is going to be the first uh Pam video right and then the next video we're going to be um se... | 1,656.76 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
so there's a high chance of you being able to keep that connection alive getting all the credentials if you're doing it over like a DNS xfill so with that being said hope you guys enjoyed the video take care and I will see you all next time | 1,717.679 | 0 | {
"video_id": "FQGu9jarCWY",
"title": "Using PAM EXEC to Log Passwords on Linux",
"url": "https://www.youtube.com/watch?v=FQGu9jarCWY"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.