text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
can say copy and then if I go to virus total we can search this hash and then see if anyone has submitted the file so if we search this we see uh this is probably the wrong file if we go to details it'll tell us probably what the file name oh MSI exact. exe so that was not it let's see if we look at the original file n... | 543.32 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
uh yes stop refresh this may not work okay there we go and it refreshed see come on give me that behaviors tab there we go we can kind of see what it's doing um initial access execution um all the rules it matched um HTTP request it makes so we can see a lot of information about this executable without ever having the ... | 615.76 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
22 and now we're going to suddenly see all the um queries this executable had made right so this is going to be the power of cismon and I know a lot of organizations just don't install cismon because they're not doing um centralized logging so like well if I don't have Splunk or elastic then why do I want to increase t... | 704.76 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
processes did in a very easy way is something that's going to save you a lot of time and money right so this is the type of stuff we can do with Sison so let's go ahead and look at the questions so the first question is going to be how many event logs are there with event ID 11 and I said earlier event ID 11 is going t... | 761.959 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
have to work with going down the line so what we're going to do is dump the entire um data into Json so we're going to do the chainsaw dump just convert this to Json and then call this cismon do out and let's see I'm just going to move cismon out outside the chainsaw directory because we no longer need chainsaw we can ... | 836.199 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
event ID okay so we have all the cismon events here then I'm going to do a sort then we do a uni- c and then I'm going to because right here this column is going to be my cismon event uh yeah this is cismon event and this is how many times it has appeared in the log I just want to reverse these two numbers so I'm going... | 888.079 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
create two is change create time three network connection five is going to be process terminate seven image loaded so that's going to be like loading a dll i believe create uh we don't have eight this would be process injection things like that process access is 10 and I normally look at 10 right away if we see anythin... | 965.959 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
when you double click in executable it pops up like Windows smart screen making sure you actually want to execute it um 17 is going to be pipe event and this is probably create 22 DNS 23 is going to be file delete and then finally the last one 26 is file delete detected and I don't know the difference between these two... | 1,045.679 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
can do a select on system. event ID equals 11 and let's see we have oh it was 10 not 11 there we go so let's see cyber junkie is the user it is Ping sender and Firefox which this is normal so so this isn't really much to go off on we also have the call Trace which can be um helpful in identifying like Cobalt strike and... | 1,110.96 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
created in memory okay an event ID with one is recorded with detail such as command line whatever right which means we can SP spot any malicious process being executed what is the malicious process that infected the user system we already know this is Prevo from like doing the urb source research by just searching unit... | 1,189.24 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
one the user downloaded um it probably doesn't want those double backslashes so I'm going to do a-r to do raw and we can copy this and paste it submit okay which Cloud Drive was used to distribute the malware well we're going to assume this is um Dropbox right because that's what the open source research said however a... | 1,246.679 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
query name there's only three DNS request a Dropbox example and this um let's see it's definitely Dropbox but I don't like that answer let's where could we pivot off of this so let's go up and let's see exactly what quered Dropbox right so this is going to be this guid which looks like the preventivo goid right so let'... | 1,292.159 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
this is going to be system event ID is equal to 11 awesome and let's select Target file name and it's event data do that so this going to be the files that um Firefox created so we see it creating this random. exe and this is just how Firefox generally downloads it creates um various parts downloads each of them and th... | 1,396.96 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
evasion technique where the file creation date is changed to make it appear older many files it created on disk what is the timestamp change to the PDF file maybe this meant to say time stomped that's normally what I reference to it but let's look at our event IDs again so if I C meta we can see uh let's see there is a... | 1,470.279 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
file dropped a few files on disk where was once. CMD created again we're just going to use the um grap trick so I'm going to change this to 11 then we can grap for once. | 1,551.76 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
CMD and we're going to see when this was created right few files how many events is this what do we have two do we have two system event data nope we only have one so the UTC time here that ID 11 okay all this data up here always confuses me but this is all like um CIS like the event log data so task 11 um event IDs 11... | 1,565.2 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
CMD that's what was confusing me let's see I'm going to shrink some of the data so I want to see just the event data okay that's better so rule name okay so we have preventivo creating once. CMD and we also have MSI exec creating once. CMD so two things did I'm guessing prevent Evo executed MSI exact which then did som... | 1,670.84 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
to um look at the network connection so that's going to be event ID three so let's do three and the destination IP is this submit the malicious process terminate itself after infecting the PC with the back door variant of ultra VNC when did the process terminate itself so let's go ahead and look at that so let's see we... | 1,764.88 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
this whole select and I'm going to be lazy and instead of writing a query to um search for the process guid I'm just going to do- C we can GP on the goid and then pipe this back to JQ and let's see I'm going to do a JQ and let's select um we're going to do a list because I want to select two things um system. event ID ... | 1,863.08 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
data we grip this and then we just select the event uh Symon thing so let's do um what is it system event ID that go has a lot of things okay so this is the goid for um prevent Evo at least I hope it is yeah it was so if I do a for loop on this so we can do 4 I in this do Echo I done uh we have a syntax error because I... | 1,942.36 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
too much this is the process go a prevent Evo right uh let's go back to one of the selects vent ID one that's exactly what I wanted where is the process guid of this the parent image that's MSI exact still MSI exact still prevent Evo this is the go I want is this what I was searching I don't think it was 817 I think it... | 2,063.8 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
26 that should have worked one something is wrong something's not making sense to me oh we have to start of line and semicolon that's getting file deletes so what I'm confused about real quick and I wish I did not go into this Beyond route because we're seeing file deletes here but when I selected I did not see that wh... | 2,185.04 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
and there we go here's all the deleted files you can do l-s and then I can hide my camera so you can read all the files it deletes all the tempts and then deletes everything out of the photo and facts directory and here we can even see the ultra VNC display DL viewer I think it's deleting these because it copies them i... | 2,334.8 | 0 | {
"video_id": "1qbkZn8JAw8",
"title": "Analyzing Sysmon From Backdoored UltraVNC Malware - HTB Sherlocks - Unit42",
"url": "https://www.youtube.com/watch?v=1qbkZn8JAw8"
} |
what's going on YouTube this is ipag I'm doing Brutus from hack the box which is a very easy show lock that mainly focuses on the Unix log off. log it also lightly touches the WT file that's going to show you users that have logged into the box but I think there's going to be something for everyone in this video I'm es... | 0.68 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
grock rules or whatever they call them and that will extract the data out of the log so we can ingest it into elastic Splunk or whatever and make it much more searchable right so before we get into all that let's just um start off with this Sherlock um if we go over to Sherlock info it tells us a little bit about it an... | 47.399 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
and then we can unzip it and um we need to specify the password I'm going to use seven zip actually we'll do szip X Brutus doz because I know this asks me for the password right I'm sure there's something I could put in my unzip command to get that flag there but here we go we have alt. log and w temp and before I even... | 98.52 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
default to the last file on our box but if we did a man on last we can see all the options so we have like full time stamps but most importantly we have file so it lets us specify what file we want to use instead of our log W temp so let's just do a last then DF and then we going to specify W Temp and and we have the o... | 157.72 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
time zone uh you can waste a lot of time just because of that discrepancy so I always like making sure all my logs are in UTC format so now that we see something from um wtm like we can see logins the pts they were assigned IP address they came from the date of login when they logged out if we did the D capital F it wo... | 212.2 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
um let's just head-1 on this al. log and I'll use a to give me what field do I want so this is 1 2 3 four five I want to get the fifth field so I'm going to do an A and then we can say print dollar5 on alt. log and now we have all of this um because the PID is going to make this unique it messes up how we want to do th... | 270.68 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
to um that's it that's all we have to match right CU we're only doing the fifth field so we have cron this and we just want to trim it after that so I'm going to do a said s and I'm just going to do a Open Bracket let's see Open Bracket and Then star so it matches everything after that replace it with nothing and we ha... | 331.28 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
modified groups being added we have some pseudo commands um system D login a bunch of crons and a bunch of entries from sshd so if we wanted to we could just grip this log for user um let's do user to see what user was added so if I grap user ad on alt. log let's actually put that to the top of the screen so you can re... | 404.56 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
log um we have to grab 637 and let's see do we have a accepted password for cyber junkie right around the same time so this is most likely going to be in the UTC time already so we don't have to do any time zone conversions so now it's time to look at the question um before we do that let's actually save this to log pr... | 460.96 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
log can you identify the IP address used by the attacker to carry out the Brute Force attack so to do this um we can look at the log file so I'm going to grap sshd on the log because that's the only program that will allow like remote access access so let's look at all the sshd lines so looking at this we start out wit... | 494.44 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
just so it's a bit cleaner for me looking at and then if I want to add it later I can always do that but we see right off the bat this one IP has a bunch of failures and it says invalid user so I'm going to guess this is a Brute Force attack right now as we see it changing users but if we want it to be certain we could... | 549.56 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
numbers and let's see we have to get rid of that escape and then we have a list of all the IPS so if I now do a sort um let's do sort uni- C we have three IP addresses this IP address it kind of looks familiar to me if we look at it that's going to be the log source so I don't want to show this one actually because tha... | 607.959 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
the attacker gained access to an account on the server what is the username the attacker got access to so let's go back into all thought log so I'm going to go before I did that one grap and we want to see what a successful login looks like right I'm just going to search for cyber junky because we know from that last c... | 675.24 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
was login what account did they gain access to um it's probably going to be root um from looking at the logs we knew cyber junky was added to it so if we just put root here and then submit we have it and then the other thing we know that oh other way we could have validated this was brute Forest is if we go to this log... | 733.04 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
would SSH into Brutus run the command who I am I and exit so you'd also see it within the same second but because we saw this IP with a bunch of failed logins and then we see a successful login it immediately stops we know this is going to be the Brute Force attempt right so let's see um we need to put it in year year ... | 798.279 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
yes it is then hour hour so 06 3244 if we do submit it is the wrong answer so what we can also do is look at the um W temp file so let's go back to a last command and let's see when did they log in um this is the Brute Force IP and it's actually a second after so it accepted the password but probably accepted the passw... | 871.44 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
session for the account from question two so question two was when they manly logged in and that's going to be around this time so we need to know the session for that so I'm going to GP session on off. log and then we have a bunch of things in KRON so let's just hide KRON so we can g-v and then let's see this Pam Unix... | 941.72 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
was gain access let's go back to the accepted password it's probably this one is that question two was talking about the brute force was successful so 3140 that's going to be what we want to get so session 34 let's see are we right wrong answer uh let's go back accepted password for root 3140 maybe it wants the manual ... | 1,027.12 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
look at so if we grap user mod on off. log let's see they added cyber junkie to the pseudo group so that's definitely going to be the answer okay okay so we need to get the miter attack um technique ID so let's Google miter attack framework ID maybe let's see going here awesome so is it talk does it tell us what the th... | 1,122.12 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
log so let's run this last command again let's see first SSH so 3245 to 372 four now I know it says using the time in off. log so if it's wrong we'll go back there but we can just use this time first so let's see if we added 5 minutes here we'd be at um 3745 so we definitely don't want to add five so it's adding 4 minu... | 1,215 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
executed so if we go back to our programs uh what do we call it cat log programs I'm going to guess PSE sudo will be the log program that gives us what commands were being ran normally alt. log doesn't give you the commands but if it's with a pseudo it does because um you do a pseudo um you run the command as part of t... | 1,295.159 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
log and then let's see um they were added here so we may want to grab pseudo colon so this only shows us those lines now cyber junkie let's see session open route here we go so they're in cat Etsy Shadow and then they're doing a user bin curl to download this lper script so let's copy this paste that and we have comple... | 1,323 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
like how wonky that is right if we go back into off. log let's see I'm going to search for invalid we have invalid user let's see let's actually search for fail there we go so the a is going to be really challenging to just extract some data with because we have failed password for invalid user admin so if we were just... | 1,404.12 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
do this in Python um I think pi3 grock is probably what you'll want to use but I'm going to actually go with goang because um elastic has a nice repository I think that's what it is for so if we do um what is it elastic grock GitHub see it's maybe go Gro there we go this is going to be the library I use and essentially... | 1,464.72 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
can probably find some already made grock things so you can just copy and paste and get it working but I want to show how to actually make the gro files because I find myself having to do that quite often when I was maintaining elastic or Splunk right so let us um make a directory for a goang program I'm going to call ... | 1,535.279 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
this adds it into our project so we can begin using it um if we look at their example let's see I guess before we begin coding let's just do um grock test online and show exactly how like what a Ro pattern looks like this site's very much like regx 101 if you use it so they have samples here um let's see named group ca... | 1,599.799 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
else to mutate or transform the matches um grock is really just for extracting the important words so let's do the failed password and then if we said like percent word and then we could call it um day of week like it matches the first word right there are pre-built um queries so if we go all the way down here they're ... | 1,670.72 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
log um pattern and there we go we have a time stamp so we match that then we do a space and then this is going to be the log source so I'm going to say data I'm going to call it log Source like that let's see that did not match we do space after okay so we do a space after so it knows that is what we want and then we w... | 1,746.76 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
login type maybe for isn't really an important word so we won't match that then we can say another one word username actually I'm going to do data because usernames can contain like numbers and things like that I think data will still match that right like if I do back up one two well still matched but if it was on wor... | 1,835.24 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
perfectly matched right so there is one let's see there was something with invalid right so we also want to be able to match that invalid okay this was the example we used that would be a pain in the butt to do with a bunch of a right because the field changes so what we can do is we can do a um is it an optional I don... | 1,920.519 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
into visual studio and we're going to begin with G is equal to gr. | 1,992.48 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
new okay and if we go back to their example you can see exactly how to structure a program right here so we create pattern definitions and then we can add patterns so let's see I'm going to call it pattern definitions map string like that okay and then let's see um we want to be able to use CIS log base 2 I think right... | 2,002.32 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
pattern definition works and then we do result air PR string and then we can give it a log line so we'll give it this line like that then if a is not nil and we print the result okay so let's see if this works so we can do a go run main.go and we get pattern definition um unknown it doesn't know CIS log base 2 and this... | 2,105 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
data herror Json Marshall then re F A is nil I can print that and there we have it in Json okay they call it h name and not log Source that's fine but that is going to be this and a nutshell so what I want to do is um I'm going to have two patterns we're going to call this um base patterns and we'll call it log prefix ... | 2,202.68 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
create one let's do KRON because kron's going to be pretty quickly or pretty simple um see I wonder if it's already doing the cron for us off log we can just copy when adding these I like just putting the comment of what I'm working on there and let's see we can get rid of this because that's going to be log prefix so ... | 2,319.24 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
long prefix gets us to here Pam Unix Cron session do we have to escape things see I just want to undo this and maybe I didn't save nope we do need to escape those we probably should make these fields and things like that so we purse it but you get the idea of what we're doing we don't really need the cron in order to u... | 2,495.72 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
entry or SSH off copy this let's test it on the par string save it run and there we go we have it if we do JQ dot we have the login type is password the P ID of SSH result failed Source IP um the username backup 12 everything is looking good so what is the next field we probably want to do um let's see we have invalid ... | 2,608.839 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
session then this could be session ID this is a base 10 number okay now we want to do a big or operator of user see this will be oh there's a field username username there we go that works so we use the like conditional operator to say this is optional we match username and then we end the line with the period whenever... | 2,723.44 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
here and then we're going to Loop over all the entries so it's going to be key and then we'll do an underscore this going to be the value but we don't really care about the value right here I just want to get these pieces so we can do this then range log entries yep and then patterns yep that is right so what we're doi... | 2,817.96 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
let us make sure it's not that okay it is not this is our actual string is this going to be picking we have to escape that period huh let's paste that I wonder if it's because this has a dash and how we're doing the log prefix isn't going to capture that that is possible I think that's what happened so we did Word prog... | 2,907.079 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
see user add new user see do name is equal to then username username uid this will be base 10 num uid GID base 10 num G home this will be so path Unix path home dur comma shell and this can be Unix path again from and we can say Unix path again from there we go so we can add this let's see yeah that should be fine go b... | 3,041.52 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
string right here we're going to read a file so I can do um file air OS open all. log if we can't open it panic okay uh D for file close then scanner is going to be buff iio new scanner file so this is going to read the file it's going to Loop over the line and we can say line is equal to scanner text and then we can p... | 3,221.64 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
KRON and then if we terminate now we only selected the entries with KRON but really we probably wanted SD so we have these and then we could say uh show me let's see we probably want the username and then we'll add a colon Let's see we probably want actually before username let's do Source IP and then let's see we did ... | 3,307.599 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
the same person going through things um in this case it's just using a random ephemeral thing so it's not important uh let's see what else do we want to do uh this is the IP we can see a bunch of failed and then the accepted here and they go in again um let's go back to the questions to get an idea let's see uh how lon... | 3,392.68 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
a username then this will be TT Y is equal to to uh word TTY let's do data TTY space semicolon there we go bwd we need percent not dollar Unix path um p D then user I guess it's going to be Target user right TGT user usern name like that then command and let's see we're just going to grab everything I don't know greedy... | 3,495.039 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
it this way because all the Json on one line so you can do graps and g-v so we can see um this but we didn't grab the actual command we should have the command processed greedy data no let's see I wonder if it's not being terminated that way yeah it's probably got a different Terminator which honestly sucks um let's se... | 3,619.92 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
just do JQ Dot and then we can say do command and let's see we can say um dot user plus ran as TGT user username so there we have we have cyber junkie ran as rout with this command so that's pretty cool um let's go one more question and then we will end the video uh we showed kind of how we could do the Brute Force um ... | 3,784.2 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
3140 it's either 3140 or 3244 but we can get the session IDs this way right so hope you enjoyed the extra content with grock and it wasn't too confusing again as long as you understood the first part of the video when we GPT through the file that's all you need to complete the Sherlock and Target it at the um very easy... | 3,883.92 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
hope you guys enjoyed it take care and I'll see you all next time | 3,932.16 | 0 | {
"video_id": "bv08UcIL1po",
"title": "Analyzing auth.log and Playing with Grok Filters - HTB Sherlocks - Brutus",
"url": "https://www.youtube.com/watch?v=bv08UcIL1po"
} |
what's going on YouTube this is IPC and this is a follow on video to my Advanced SQL Union injection where I told a story about myself pent testing a web application that had SQL injection in the URL but there were some strict filters that prevented me from just doing normal SQL injection and exfilling data in that vid... | 0.08 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
character if you do it without the Stars you have commas which is a bad character you can do it with Boolean injections without either of those additionally I just like Boolean ejection a lot because you can xfill data when the web server doesn't send you data right like with Union injection you depend on the SQL Serve... | 48.48 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
but first uh let's look at the code um so I just built a simple app and I just extended it from the previous video um so if you watch that this is going to be very familiar I just added this forgot username endpoint where we do have a raw SQL query right here which in a Python program is definitely odd most of the time... | 97.159 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
of this video sneak telling me the code is vulnerable so if you don't know what sneak is well first off welcome to this channel because I use sneak all the time whenever I code things on this because it just makes it so easy to find vulnerabilities or not even when I code whenever I'm just doing a CTF challenge I load ... | 151.959 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
code and pointing out vulnerabilities it pointed out a um cross state scripting injection that it did not mean to introduce into this application and then we have some SQL injection here in the forgot user endpoint and this one in the just user endpoint as well this is covered in the advanced Union injection video we'r... | 196.4 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
doco and sign up I can't stress how cool this um software is so give a huge thank to sneak because without them I probably wouldn't be doing these videos where I just do deep Dives on specific things like Boolean injection so let's go and show what a Boolean ejection is if I go to Local Host 5,000 uh forg gopac we can ... | 247.519 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
if and then we can say or one is equal to one and then we can do a comment and we get a validation error um we have validation error for name model username because equal is a bad character well we can also use other statements um if we went to mySQL comparisons I want to say let's see if this works for me uh compare a... | 308.28 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
injection we could do this in burp Suite so the font is a little bit bigger but bur Suite is going to have a weird Quirk I don't like so if we go in here we have this I can highlight everything do control shift U we go back to this um the whole concept of bulling injection is we can extract data from the database so we... | 373.16 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
this Quirk I'm going to get out of burp Suite because I built a small python command line client that I called um inject C.P all that's going to do is give us a terminal prompt and then replace anything we input with a space and send it over to the um request so if I do Python 3 SQL inject we can say IPC we get result ... | 440.639 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
first step because this is going to tell us what database names exist in this database if you're not familiar go to ic. ro search SQL injection and watch some videos of me going through this um in the future I'll probably do a video specific on just enumerating my SQL but we have a validation error because this undersc... | 513.64 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
actually jump over to my SQL so I'll do stud my SQL uh use demo because that's the name of this database and if I do select star from users this is the valid um table right if I did select star from user I get an error so now the issue is I want to get rid of this star well I can do select one from user or users and it... | 566.16 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
this is how we can enumerate the users column or any column we want right if we put something that doesn't exist we get an error and the whole reason we did this select one is so we can only get we only have to guess one thing at a time right because if we didn't do select one let's say we did user here and users here ... | 632.279 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
right so uh let's see I typo that pretty badly so now we have this and again you can guess the um column name through guessing as well right now the next step is how do we xill data right we know this the first entry is equal to IPC so before that how do we go to the second one if I do limit two we get an error right s... | 689.48 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
through that and the reason why we got rocks is because this counts from zero so this is how we can switch this but if we went and did something like that we can't use a comma because that is a bad character so if we went back over to mySQL uh let's do the select statement and I'm going to take burp Suite off and we lo... | 767.079 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
actually swaps where the offset is right when we spell out the word offset offset is at the tail end of the query when if we do it with the comma it's at the beginning so little bit weird there but if we do um limit one offset two that is the same thing as 2 comma 1 right so hopefully that small piece makes sense but t... | 833.56 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
so the way we do that is through the substring command so we can do select username let's get this to IPC down here we can say substring usern name uh if we let's do comma one one that gets I we can do 21 that gets P if we did 1 three we get it so this is going to be be the number of characters and then this is going t... | 933.279 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
are let's see substring a reg substring and we got substring here and it tells us we can do a from and a for so that is the same as the commas so let's try username from one for one and there we go that's just an I so we can go here and do substring username from one 14 one from users and then it's going to be like I a... | 998.72 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
values So like um capital A if we convert it to hex would be 41 decimal would be 65 if we did J that' be 4 a decimal is 74 the reason why I'm going with decimal format is going to be I may have called it ordinal um I get things mixed up but we're going with decimal is because I don't have to deal with hex I'd rather ju... | 1,068.44 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
one like and what is this number uh we're doing P right now so let's look for p let's see where is it up here it's going to be 112 like 112 uh let's out of habit I always go to burp Suite there we go result zero 113 result one so why I like converting it to numbers is we can now do greater than or equal to however grea... | 1,147.44 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
going to use this functionality the only thing I haven't shown yet and I forgot to is you can get lengths of data so let's go all the way back let's remove the substring and I'm just going to say length um username limit was it one yeah one offset zero so this is IPC and then we can say like one uh length username that... | 1,232.84 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
then you can also ask comments or ask questions in the comments and I generally do a good job at answering them if you were verbose and how you ask them just don't say this doesn't make sense say why or what time stamp you're at so let's go over into the coding but before I go in the coding I'm going to pause the video... | 1,312.799 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
just not in a keyspace and we can make adjustments um and then the final thing we want is um get the data right so let's start off with a function forgetting rows and columns so I'm going to do Define row count and all we want is the table and then we can say we default the max to be 64 different rows okay so let's cre... | 1,363.44 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
would make a bad character right so that's why I do one um and then we can say from table let's see like this and then we can say not like zero and then this one can be matched is equal to requests.get URL plus payload and we need to Define URL so we can say URL is equal to http Local Host Port 5000 forgot like that th... | 1,445.88 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
text and unmatched. text and see what we get so I can just say um row count users and we can print oh we don't even return anything so let's just do this going to run it and let's see what data it gets come on Local Host 5000 so the Matched is going to be zero that's good unmatched is one which is good so here we can s... | 1,512.039 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
me that everything like it couldn't identify a case right with Boolean you need to know um true or false and if you can't do that you can't extract data so at this point we can just exit but now we know um what a good query and a bad query looks like so we can say for I in range then 0o to Max and say the payload like ... | 1,626.159 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
text I would probably do unmatch just because I think it's if the page does return some data Maybe This is better I don't know um we can return I and then if we don't get anything we can raise an exception that looks good could not identify number of columns and table there we go okay so let us run this we run it hopef... | 1,700.2 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
going to be ipac if it's one it's going to be please subscribe to Boolean that's how it's going to work so that's why we have offset okay so select length column from table and we can say limit let's go back here select users we did limit 0 offset one is it one offset zero that's probably it so one offset and then the ... | 1,800 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
table is going to be limit the offset so I think that is good let us try this so we can say print um we called it column length then users username zero zero should be IPC which hopefully we get six hit F5 it's going to run and we get six if we change the offset to one which is Please Subscribe it's going to take a lit... | 1,899.6 | 0 | {
"video_id": "mF8Q1FhnU70",
"title": "Automating Boolean SQL Injection and Evading Filters",
"url": "https://www.youtube.com/watch?v=mF8Q1FhnU70"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.