Promptless UAC Bypass & Powershell Privilege Escalation techniques - Hak5 2510

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น • 129

  • @jdgregson
    @jdgregson 5 ปีที่แล้ว +21

    This is NOT a privilege escalation vulnerability. The user must already be a member of the Local Administrators group. This only bypasses the UAC prompt.

    • @jdgregson
      @jdgregson 5 ปีที่แล้ว

      Additionally, BitDefender's Advanced Threat Defense blocks this attempt.

    • @jdgregson
      @jdgregson 5 ปีที่แล้ว +1

      @@markdownsouth1500 Bitdefender will block scripts based on what they try to do, so this should be blocked no matter who runs it, while other scripts that don't do suspicious things will run just fine. As for a password bypass, you can set Bitdefender to prevent settings from being changed without a password, but that is not activated by default.

    • @NassifDJ
      @NassifDJ ปีที่แล้ว

      @@jdgregson could be used to escalate the privilege in a trojan that is already installed but cant do certain things, that can re execute the trojan with admin rights

  • @JustinHyneswashplant26
    @JustinHyneswashplant26 5 ปีที่แล้ว +8

    This is so interesting and is very efficient compared to other methods, thank you for the video.

  • @TheOxis1
    @TheOxis1 5 ปีที่แล้ว +53

    Hey Darren, I see an added '?' at the end of your ps1 file in the video, but it's not in the original code, I think that's what causing the error in Powershell when you run the script

    • @hak5
      @hak5  5 ปีที่แล้ว +20

      Correct! Good eye!

    • @ericellenwood
      @ericellenwood 5 ปีที่แล้ว +13

      ? is an alias for where-object the message was asking for its parameter

  • @aquatrax123
    @aquatrax123 5 ปีที่แล้ว +13

    And this is why as a Windows admin, I always run applocker to prevent unsigned scripts and exe files from running. What a world of difference applocker has made but it's sad no one else uses it.

    • @neoc03
      @neoc03 5 ปีที่แล้ว +8

      - if the user can open powershell they can just run it by copying and pasting the entire script into the terminal (takes some minor modification to get it to work).
      - they can also run "Set-ExecutionPolicy -executionpolicy bypass -scope all" which will allow unsigned scripts to run. I block all non-admin users from using powershell and ISE by GPO
      - I'm a Windows sysadmin, and I've switched to Linux for all my personal devices if that tells you anything.

    • @sturmbreakers7817
      @sturmbreakers7817 5 ปีที่แล้ว

      neoc03 And what if you set gpo to prompt for password for everything even if your logged in as administrator?

    • @LiEnby
      @LiEnby 5 ปีที่แล้ว

      Wouldn't work, PowerShell and task scheduler are both built in Windows utility's thus they would be "trusted"

    • @RobinCawthorne
      @RobinCawthorne 5 ปีที่แล้ว +1

      @@neoc03 dude, there's loads of priv escalation for Linux as well.
      Still though, nice to know you're happy and familiar with both OS'

    • @neoc03
      @neoc03 5 ปีที่แล้ว

      @@sturmbreakers7817 it would still bypass it. It elevates in a way that doesn't trip a UAC prompt.

  • @glen_nz
    @glen_nz 5 ปีที่แล้ว +2

    Excellent find Lokiuox! Thanks for sharing Darren! Might have to try to rubberducky this, to demo to my Desktop Support team :)

  • @_OOTP_
    @_OOTP_ 5 ปีที่แล้ว +16

    It's not really privilege escalation if you have to be admin for it to work...
    It's just a bypass.

    • @Whatsthegeek
      @Whatsthegeek 5 ปีที่แล้ว +6

      you don't need to be admin to do this. it works for any user on the system (tried it)

  • @Gameek
    @Gameek 5 ปีที่แล้ว +3

    i don't know if you did this or not but i got this idea : how about using the virtual desktop feature to hide rubber ducky's tasks

  • @luismarrero9293
    @luismarrero9293 4 ปีที่แล้ว +1

    it did not work for me. if you have to open powershell as admin and also change execution policy to enable run script what will be the purpose of running the powershell to bypass uac and apply payload. it is really ideal scenario normally will not work because by default poweshell policy is not enable.

  • @littlemeljoe
    @littlemeljoe 4 ปีที่แล้ว +3

    So does this work on a guest account also or only admin

  • @DimusTech
    @DimusTech 5 ปีที่แล้ว +1

    Well for me the "windir" doesn't exist under HKCU since it's actually a system wide and not users property, so this thing doesn't work for me at all from a non admin user on the PC. Maybe Microsoft updated something and fixed this loophole

  • @akz7366
    @akz7366 4 ปีที่แล้ว +3

    ok, now where is the tutorial

  • @rsinistic
    @rsinistic 5 ปีที่แล้ว +12

    You still need to be admin .click bait . No PE technique here.

  • @luvr.
    @luvr. 4 ปีที่แล้ว +1

    hello, please response to this! powershell admin works, but what does it do? like does it end up just resetting the search or does it delete/erase half of my files and data. (basically any harm to pc?) please respond i am new to this :(

  • @firstlast493
    @firstlast493 5 ปีที่แล้ว +4

    (((
    "uac.ps1 cannot be loaded because running scripts is disabled on this system"

    • @ccollinsio
      @ccollinsio 5 ปีที่แล้ว +4

      Aleksei Buivol that’s an easy fix. Just google the error and copy-paste the solution

    • @_OOTP_
      @_OOTP_ 5 ปีที่แล้ว +4

      Set-ExecutionPolicy -ExecutionPolicy Bypass
      :)

    • @DoorThief
      @DoorThief 5 ปีที่แล้ว +2

      Sounds like you did something wrong

  • @YaboyKelvin
    @YaboyKelvin ปีที่แล้ว

    Hey! So I have some problems with my PC whenever I try to run an app and it gives me the prompt the yes button is grayed out, and it won't let me type in an administrator password. I've looked a bit and noticed that my windows account was set to a guest and the administrator account was gone. How do I fix this?

  • @grosgogogogt
    @grosgogogogt 3 ปีที่แล้ว

    I gust they find a way to secure it
    running scripts is disabled on this
    system.

  • @j4zzx297
    @j4zzx297 5 ปีที่แล้ว +4

    Ive not learnt powershell but why is a $ a dollor sign and a hash tag (#) a pound sign? Why isn't a £ a pound sign?

    • @jarod1701
      @jarod1701 5 ปีที่แล้ว +3

      J4zz x Because not even the British care about Britain anymore.

    • @naveenkumar-nn7iv
      @naveenkumar-nn7iv 5 ปีที่แล้ว

      J4zz x their is no ₹ sign either..no complaints

  • @nackrr9742
    @nackrr9742 4 ปีที่แล้ว

    The power thing keeps popping up and it won't stop, it keeps closing and reopening, please help.

  • @quipo1225
    @quipo1225 3 ปีที่แล้ว

    Hi I got a virus on my machine and command prompt came up with a code saying something like prompting UAC privilege escalation, can you help me get this off my machine?

  • @neonsalad7gaming301
    @neonsalad7gaming301 4 ปีที่แล้ว

    Whenever I start up my pc, User Account Controll Windows Powershell keeps popping up and asking me if I want to allow this app to make changes to my device, if I clicked close button or “No” it keeps popping up but when i choose “Yes” nothing happened but my bitdefender keeps prompting me “Malicious application blocked” it bothers me because bit defender just blocked the “application” but i cant get rid of it. Is this a virus? I hope you can help me on this one. 🙏🏽

  • @0dayCTF
    @0dayCTF 3 ปีที่แล้ว +1

    Anywhere here from the Autopsy room on THM?

    • @ares-ns
      @ares-ns 3 ปีที่แล้ว +1

      It isn't easy to find the flag....you must go deep in %appdata%

  • @professor2776
    @professor2776 3 ปีที่แล้ว

    hey Darren, I forget my admin pass, so now i can't install any apps, i need to install a vpn, if you could help me through this, i wanna install the app withoug UAC pass, if there is any way that you could help me that would highly appreciated

  • @mr_redstone6699
    @mr_redstone6699 5 หลายเดือนก่อน

    Does this still work after 5 years?

  • @mrsxber1916
    @mrsxber1916 4 ปีที่แล้ว +1

    what software did u use to record this video??

  • @thegrinch360
    @thegrinch360 ปีที่แล้ว

    If you are in an environnement which doesn't allow unsigned scripts like correct configured AD, your solution won't work

  • @makingchangeslifechanges4950
    @makingchangeslifechanges4950 4 ปีที่แล้ว

    can you post up how my work can stop users from doing this?

  • @VG_Precious
    @VG_Precious 2 ปีที่แล้ว

    How do you run the script?

  • @superq9941
    @superq9941 5 ปีที่แล้ว

    I get a error windir is not a property

  • @antticodes
    @antticodes 5 ปีที่แล้ว +2

    I am not very familiar with powershell. So, how could I use this to give myself admin and disable lanschool on my school pc (I have tries alot of stuff found in internet but it's very well protected, and I am too lazy to install linux on usb and try to run it)

    • @LiEnby
      @LiEnby 5 ปีที่แล้ว

      Only way to find out is to try it**

    • @neoc03
      @neoc03 5 ปีที่แล้ว

      Most windows enterprise environments are protected against this. It wont allow you to run the task on demand so you can't kick off the process.

    • @LiEnby
      @LiEnby 5 ปีที่แล้ว

      @@neoc03 it doesn't matter anyway it only works if your account is an admin allready

  • @CHERRY_ED
    @CHERRY_ED 3 ปีที่แล้ว

    can i bypass somthing else them powershell?

    • @alexm8807
      @alexm8807 3 ปีที่แล้ว

      You can start other programs from powershell

  • @littlemeljoe
    @littlemeljoe 4 ปีที่แล้ว

    How did you get the uac to turn into ps1

    • @ameloskii3086
      @ameloskii3086 3 ปีที่แล้ว

      just write .ps1 at the end when you save it, also make sure that you have selected to display all files rather than .txt ones when saving

  • @rurouniEnes
    @rurouniEnes 6 หลายเดือนก่อน

    Hello from THM :)

  • @HighnoonVader
    @HighnoonVader 5 ปีที่แล้ว

    Are you already a local admin on that pc running this? I created a new user account to test on this but it didnt work, even on an unpatched windows 10 vm. Powershell keeps opening a new shell and closes itself and repeats.

    • @neoc03
      @neoc03 5 ปีที่แล้ว

      are you running the script from the shell or copying and pasting the into the shell? It does work.

    • @HighnoonVader
      @HighnoonVader 5 ปีที่แล้ว

      neoc03 running script from the shell. Tried both cmd and powershell.

    • @GHOSTNINJASD
      @GHOSTNINJASD 5 ปีที่แล้ว

      Same here, followed the same steps here. Added a pause and it stops looping but directory never gets created.

    • @HighnoonVader
      @HighnoonVader 5 ปีที่แล้ว +1

      Yea. Note that this is only bypassing uac, not privsec.

    • @siren8624
      @siren8624 5 ปีที่แล้ว

      The user you're running this as must already be a member of the local administrators group.

  • @shadowflee2
    @shadowflee2 5 ปีที่แล้ว

    Good to see you man 🙃

  • @coombee1
    @coombee1 5 ปีที่แล้ว

    Can we see a bash bunny script to Set .PS1 Script To Open With PowerShell By Default instead of opening notepad?

  • @littlemeljoe
    @littlemeljoe 4 ปีที่แล้ว

    I’m confused

  • @bana2s
    @bana2s 5 ปีที่แล้ว

    Your documentation for the Bash Bunny is inconsistent and in some places just plain wrong. I was going to write email about it, but all of the Hak5 web sites seem to be down.

  • @Jennn
    @Jennn 2 ปีที่แล้ว

    Thank You Thank You~!

  • @spetsnazrussia2446
    @spetsnazrussia2446 5 ปีที่แล้ว +1

    Useful as shell

  • @Football.Nille01
    @Football.Nille01 5 ปีที่แล้ว

    Very cool!

  • @VanishingTacos
    @VanishingTacos 5 ปีที่แล้ว +1

    Another reason to run Linux :)

    • @TheSkepticSkwerl
      @TheSkepticSkwerl 5 ปีที่แล้ว +3

      Cause we all know Linux is "more secure" 🙄

    • @VanishingTacos
      @VanishingTacos 5 ปีที่แล้ว +1

      TheSkepticSkwerl it is 🤔

    • @Canadian789119
      @Canadian789119 5 ปีที่แล้ว +1

      whoami
      root
      :)

    • @RobinCawthorne
      @RobinCawthorne 5 ปีที่แล้ว +2

      @@VanishingTacos is it though?
      I think it would be better to be more specific as to which distro you're on about.
      Some distro's sec is questionable.
      Still, Linux and the idea behind leaving the source open for all to see takes the cake over anything Microsoft ever had in mind.
      A little peeved that MS now had a seating at the Linux table. 😔

    • @privatprivat6629
      @privatprivat6629 5 ปีที่แล้ว +2

      There are more exploits as you think but its not so famous so not so much Information about

  • @jasonbourne7179
    @jasonbourne7179 4 ปีที่แล้ว

    Approved for 30k.

  • @CyberAbyss007
    @CyberAbyss007 5 ปีที่แล้ว

    Good one. Thanks!

  • @shadowflee2
    @shadowflee2 5 ปีที่แล้ว

    If you send me the stl I can make some black ones on my printer .

  • @night_hunterz2596
    @night_hunterz2596 5 ปีที่แล้ว

    Nice man...

  • @Geisterhebel
    @Geisterhebel 5 ปีที่แล้ว

    Awesome :D

  • @PilotPlater
    @PilotPlater 5 ปีที่แล้ว +1

    I always thought UAC was a joke.

    • @Canadian789119
      @Canadian789119 5 ปีที่แล้ว

      For the special users S-1-3-135- blah blah. Ofc. man.

  • @SpencerEgbert-r8g
    @SpencerEgbert-r8g 2 หลายเดือนก่อน

    Boehm Mountains

  • @JeffreyPrice-y8r
    @JeffreyPrice-y8r 2 หลายเดือนก่อน

    Ari Burg

  • @GlitchyChris
    @GlitchyChris 5 ปีที่แล้ว

    wow nice

  • @AnthonyAnderson-i5k
    @AnthonyAnderson-i5k หลายเดือนก่อน

    Heller Wall

  • @IamJakoby
    @IamJakoby 2 ปีที่แล้ว +1

    Obviously this being old this method is patched but I did a video on a new method I found. I have it formatted to use as a function as well and make it too easy.
    th-cam.com/video/nBNmupIBI54/w-d-xo.html

    • @tenkei000
      @tenkei000 5 หลายเดือนก่อน

      You're "new method" is not a UAC bypass. It can be useful to have scripts hit the UAC accept but don't sell it as a replacement for this. On top of that self promotion on someone else's video is rude.

    • @IamJakoby
      @IamJakoby 5 หลายเดือนก่อน

      @@tenkei000 2 things, its just a hardware uac bypass so very niche but very in line for this channels content considering you need to use their device. i also won an award for that specific payload from hak5, and it was one of the payloads i submitted that got me to win hak5 hacker of the year. but youre heart is in the right place

    • @tenkei000
      @tenkei000 5 หลายเดือนก่อน

      @@IamJakoby Please correct me if I am wrong. Darren's example is a bypass that allows for privilege escalation. Yours allows for Ducky Scripts to accept the UAC but would require you to already be a user with elevated permissions. If this is the case these are on two different levels and your original post on this video is miss leading.
      Yours doing more than I saw it doing in your video or not I do, as a owner of a Bash Bunny, appreciate your contributions but lets keep things clear on what we are talking about.

    • @IamJakoby
      @IamJakoby 5 หลายเดือนก่อน +1

      @tenkei000 well neither is technically privilege escalation. He has to be an elevated user as well. But like I said it got patched, and so did both of my versions I shared publicly. Once they were burned I didn't want to burn anymore so I made a hardware version that would work for their purposes
      That's all it is at the end of the day

    • @tenkei000
      @tenkei000 5 หลายเดือนก่อน

      @@IamJakoby Well damn Darren... my whole problem was I trusted his title. I just re-watched his video, your right it is not a priv escalation. My bad, y'alls technique is in the same category. I was trying to call you out for being miss leading and it was the Hak5 man himself.....

  • @ccollinsio
    @ccollinsio 5 ปีที่แล้ว +3

    The first non-admin script you run should be to make yourself admin. If your username is “dk” Run this: net localgroup Administrators dk /add

    • @ccollinsio
      @ccollinsio 5 ปีที่แล้ว

      mark downsouth no kidding Sherlock lol did you watch the video? Darren shows you how to bypass that

    • @_OOTP_
      @_OOTP_ 5 ปีที่แล้ว

      @@ccollinsio it only bypasses UAC if you're already an admin.

  • @zombo611
    @zombo611 5 ปีที่แล้ว

    For systems that block running. ps1 files, try opening the poweshell_ise. exe paste the code and hit F5 key.. Quack Style

    • @poshmag1c0deposh69
      @poshmag1c0deposh69 5 ปีที่แล้ว

      Encode it and run it....or encode a downloader tat downloads it as a string and invoke-expression it. If the script is big the encoding will be big and will not fit on run line so will need to be launch in the cmd interpreter.

    • @neoc03
      @neoc03 5 ปีที่แล้ว +1

      @Harry open powershell and enter "set-executionpolicy -executionpolicy bypass -scope all"

  • @sunclonkt7839
    @sunclonkt7839 4 ปีที่แล้ว

    wow 8min --__--

  • @superq9941
    @superq9941 5 ปีที่แล้ว

    Epic

  • @badasscarstracks
    @badasscarstracks 5 ปีที่แล้ว

    Neat.

  • @d.velkov1-vi26
    @d.velkov1-vi26 5 ปีที่แล้ว

    !!!How to bypass icloud!!!

  • @PyPylia
    @PyPylia 5 ปีที่แล้ว

    3rd

  • @DAVIDGREGORYKERR
    @DAVIDGREGORYKERR 5 ปีที่แล้ว

    I would rather that you didn't do this as this means that hackers will get access to computers that they should not have access to.

    • @hackedemy9324
      @hackedemy9324 4 ปีที่แล้ว +2

      Sir I think that's what hacking is about

    • @dxfvgyhjh
      @dxfvgyhjh 3 ปีที่แล้ว

      @@hackedemy9324 lmao

  • @WalterSherry-f2b
    @WalterSherry-f2b หลายเดือนก่อน

    Pfannerstill Valley