Mar 21, 2017 01:01 PM
(This post was last modified: May 23, 2018 09:50 AM by gogglebot.)
Hello HF!
Please note that this has since been patched in at least Windows 10 by an alteration to eventvwr.exe and other similar signed executables, rendering this script/method dead on up to date Win10, I have no idea about other versions of Windows however. Outdated PCs may still be vulnerable however
I recently found out about a method of bypassing the User Account Control (UAC) prompt (this thing) and decided to implement it into a batch script, thus allowing the script to drop a file/program (be it another .bat, .vbs, or an .exe, etc.) and give it administrator permissions, silently, without telling the user that it is running, and at least in the case of a .bat, runs invisible so there is no cmd prompt window but the batch still runs in the background.
Further the script makes it so your dropped file is run every time the user logs in to their computer, again silently with no window popping up (notice in the video below that no cmd prompt window appears when I log in, it's hidden.)
This could be used as a non-disruptive installer for your piece of software, if you want a file to run hidden at login time, etc.
Click here for a demo video of it in action!
The code used in the demo video, with annotations, is below in this pastebin:
http://pastebin.com/bxt4S1MF
If you would like an in-depth explanation of this script and the mechanisms it uses, ask and I shall update this post (or make a new one later)
Please note that this has since been patched in at least Windows 10 by an alteration to eventvwr.exe and other similar signed executables, rendering this script/method dead on up to date Win10, I have no idea about other versions of Windows however. Outdated PCs may still be vulnerable however
I recently found out about a method of bypassing the User Account Control (UAC) prompt (this thing) and decided to implement it into a batch script, thus allowing the script to drop a file/program (be it another .bat, .vbs, or an .exe, etc.) and give it administrator permissions, silently, without telling the user that it is running, and at least in the case of a .bat, runs invisible so there is no cmd prompt window but the batch still runs in the background.
Further the script makes it so your dropped file is run every time the user logs in to their computer, again silently with no window popping up (notice in the video below that no cmd prompt window appears when I log in, it's hidden.)
This could be used as a non-disruptive installer for your piece of software, if you want a file to run hidden at login time, etc.
Click here for a demo video of it in action!
The code used in the demo video, with annotations, is below in this pastebin:
http://pastebin.com/bxt4S1MF
If you would like an in-depth explanation of this script and the mechanisms it uses, ask and I shall update this post (or make a new one later)
Keep me fed and alive at Uni:
Bitcoin: 16cwoYXfhaK6V5c8kJKn9SBMtDUARUs7BS
I'll draw terrible art in paint.NET for you, on request, in return <3
Bitcoin: 16cwoYXfhaK6V5c8kJKn9SBMtDUARUs7BSI'll draw terrible art in paint.NET for you, on request, in return <3



