is the sky always blue? actually check this out to learn more cybersecurity jh.live/training and join my newsletter jh.live/newsletter for more like this
This is a very NEAT technique, did you stumble upon this technique in the wild being used by some bad actors?, how did you come up with it, Its really nice. I LOVED IT
You inspired me to make some more Powershell-Obfuscation-Scripts (using comment-blocks, math and variables). I took a command, passed it through them (and of course through yours) three times and I wasn't abled to deobfuscate this one command in under five minutes 🤣
This video is eye-opening! It's crazy to see how hackers can use something as innocuous as environment variables to hide malicious PowerShell commands. The level of sophistication in cyber attacks is just mind-boggling. Understanding these tactics is crucial for staying safe online. Thanks for the insightful breakdown! Time to up my cybersecurity game.
Im really happy to see you grow, I have recommended you to a "thousand" others and now I see u got 1.3 m subs which is AMAZING. Keep on what ur doing! Greetings!
In case my previous comment got deleted for whatever reason, I'll say again: The default ISO from Microsoft's website is about 5-6 GBs. You just download that & install it on virtual box normally. Don't waste time with the "optimized for VM" ISOs.
As i understand reverse engineering, which is very little admitedly. This is how hackers optimize building ROP gadgets. If you get a fixed number of bytes to add to the execution stack, you make sure that what is added is entirely built from other sections of the static mapped memory, because specific strings of assembly will be in fixed locations to reference. So instead of creating code that takes several bytes you just point to a chunk of that already in memory, thereby keeping the exploit within that limited stack space required to maintain the overflow or use after free or whatever tactic the codespace was permitted to hit the stack without the kernel overflowing. Stringing multiple gadgets together creates a ROP chain which is the set of functions you need the exploit to do.
Did this idea come from a sample or just random thought ? Also nice to have more of the red team POV stuff. I've been trying to improve on red side since I've been made part of purple team and stuff like this is helping me make the mental shift.
You disappeared off my algorithm then I tried to remember ur name when I saw the xz hack and then I see u have 1.3 milli subs, you had 350k last time I watched a vid, killin it!!!
this is a great idea... now i just need to translate python to PS to make it work on any Windows environment. Usually I don't have python available on Windows systems during tests.
Thanks for the great video John, I would like to see what kind of setup you are using (home lab, personal rig, laptop etc.). Can you do a home lab, everyday carry video? I think it will be very interesting and inspiring for the community
Not to be harsh, but if you don't know, I wonder how hardened your stuff is. This was just an exercise in obfuscation, an attacker would already need a way to execute powershell code on your hardened system.
@@dyerseve3001 haha yep! Thanks for your reply. That's why I asked. I don't have any environment. I am just studying. some measures: Allsigned in the execution policy, no downgrade, ConstrainedLanguage, JEA, no powershell removing,WDAC Policy. Moreover, I could enable the various types of powershell logging in order to catch the execution of this obfuscated command.
make a video on how to detect hacking script which is in encoded javascript , i saw a pastebin post which can hack peoples crypto from g2a account scamming people via encode js code malicious
@@Hepad_ He's probably thinking: "Why would you spend 30 minutes writing this python script when you can spend 2 days writing a C++ code that will do the same exact thing?" lol
is the sky always blue? actually check this out to learn more cybersecurity jh.live/training and join my newsletter jh.live/newsletter for more like this
This is a very NEAT technique, did you stumble upon this technique in the wild being used by some bad actors?, how did you come up with it, Its really nice. I LOVED IT
You inspired me to make some more Powershell-Obfuscation-Scripts (using comment-blocks, math and variables). I took a command, passed it through them (and of course through yours) three times and I wasn't abled to deobfuscate this one command in under five minutes 🤣
This video is eye-opening! It's crazy to see how hackers can use something as innocuous as environment variables to hide malicious PowerShell commands. The level of sophistication in cyber attacks is just mind-boggling. Understanding these tactics is crucial for staying safe online. Thanks for the insightful breakdown! Time to up my cybersecurity game.
thanks, chatgpt, very cool!
yeah, why have chatgpt write this comment?? lmao
Im really happy to see you grow, I have recommended you to a "thousand" others and now I see u got 1.3 m subs which is AMAZING. Keep on what ur doing! Greetings!
Great video, seems like a good way to obfuscate commands!
Please bring a video on the new xz malware discovered
i agree
where do you get windows iso to run in vmware or virtualbox, the official site offers 22GB zip which is unreasonable
In case my previous comment got deleted for whatever reason, I'll say again: The default ISO from Microsoft's website is about 5-6 GBs. You just download that & install it on virtual box normally. Don't waste time with the "optimized for VM" ISOs.
Media Creation Tools from Microsoft let's you make an iso of windows
I’ve never once heard of any OS being that large; even something as bloated as windows.
You have built a nice very pythonic conditional christmas tree 😊😊
As i understand reverse engineering, which is very little admitedly. This is how hackers optimize building ROP gadgets. If you get a fixed number of bytes to add to the execution stack, you make sure that what is added is entirely built from other sections of the static mapped memory, because specific strings of assembly will be in fixed locations to reference. So instead of creating code that takes several bytes you just point to a chunk of that already in memory, thereby keeping the exploit within that limited stack space required to maintain the overflow or use after free or whatever tactic the codespace was permitted to hit the stack without the kernel overflowing. Stringing multiple gadgets together creates a ROP chain which is the set of functions you need the exploit to do.
Did this idea come from a sample or just random thought ? Also nice to have more of the red team POV stuff. I've been trying to improve on red side since I've been made part of purple team and stuff like this is helping me make the mental shift.
You disappeared off my algorithm then I tried to remember ur name when I saw the xz hack and then I see u have 1.3 milli subs, you had 350k last time I watched a vid, killin it!!!
Watching right now❤
If you have variables that only have the user name as a variable path, you could for example use string splitting on \ to get more options.
Great stuff. I would like to know how this looks in the event logs. Does it just show the env variables or does it show the cmdlet being run?
love the content!! keep killing it! what keyboard are you using in the newish setup?
Love you, dude. I am continuously hacked. Dangerous stalker. I have managed to thwart him a few times thanks to vids like this, many are yours! 🌹
what!?
You need medication
John please make a video on the xz utils vulnerability and on Jia Tan😭
Cool video keep it up
One form of obfuscation could even be caps, powershell should be case insensitive
this is a great idea... now i just need to translate python to PS to make it work on any Windows environment. Usually I don't have python available on Windows systems during tests.
I am new to coding so all of this has been informative but very confusing to me. I need to start from the beginning of your videos I guess lol
TNX bro
YES!😃
THANKS YOU
It's worrying the lack of Jurassic Park references.
Thanks for the great video John, I would like to see what kind of setup you are using (home lab, personal rig, laptop etc.). Can you do a home lab, everyday carry video? I think it will be very interesting and inspiring for the community
So helpful
is this really useful if my environment is hardened?
Not to be harsh, but if you don't know, I wonder how hardened your stuff is. This was just an exercise in obfuscation, an attacker would already need a way to execute powershell code on your hardened system.
@@dyerseve3001 haha yep! Thanks for your reply. That's why I asked. I don't have any environment. I am just studying. some measures:
Allsigned in the execution policy, no downgrade, ConstrainedLanguage, JEA, no powershell removing,WDAC Policy. Moreover, I could enable the various types of powershell logging in order to catch the execution of this obfuscated command.
It would be fun to run this on PowerShell Core in Linux or Mac 😂
You are naughty boy John
leaking my sauce man :( - +10/10 video
Use a debugger bro :D
Love the python content
Going to watch the video. Will ask if I want to know something
fun!
The icons are so big😅
Why is there so many ai written comments on this….
Activate Windows got me
please 1 video how to hacked gmail password please please new video
🙏🙏🙏🙏🙏🙏
LMFAO
😂 powershell_command = 'Write-Output 420'
i tried brute-forcing dvwa with hydra but wont work. I had to build a custom script can someone send me the command
make a video on how to detect hacking script which is in encoded javascript , i saw a pastebin post which can hack peoples crypto from g2a account scamming people via encode js code malicious
video content is good, but python code quality terrible
I'm not trust snyk.
420😄
I guess first
I guess I am first😀
Python... wtf
He's using Python, the programming language...
It's not a snake so don't worry it's not going to bite you!
LOL where have you been
What's wrong with python ?
@@Hepad_
He's probably thinking: "Why would you spend 30 minutes writing this python script when you can spend 2 days writing a C++ code that will do the same exact thing?" lol