• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Password Protect a folder (external link)

Joined
Jul 16, 2014
Messages
3,235 (1.63/day)
Location
SE Michigan
System Name Dumbass
Processor AMD-9370BE @4.6
Motherboard ASUS SABERTOOTH 990FX R2.0 +SB950
Cooling CM Nepton 280L
Memory G.Skill Sniper 16gb DDR3 2400
Video Card(s) GreenTeam 1080 Gaming X 8GB
Storage C:\SSD (240GB), D:\Seagate (2TB), E:\Western Digital (1TB)
Display(s) 1x Nixeus NX_EDG27, 2x Dell S2440L (16:9)
Case Phanteks Enthoo Primo w/8 140mm SP Fans
Audio Device(s) onboard (realtek?) SPKRS:Logitech Z623 200w 2.1
Power Supply Corsair HX1000i
Mouse Logitech G700s
Keyboard Logitech G910 Orion Spark
Software windows 10
Benchmark Scores https://i.imgur.com/aoz3vWY.jpg?2
RAN across this on Tom's Hardware. Been looking for something like this for a while.


My question: How to take this a step farther? The article suggests saving the lock BAT in the same location as the folder, or am I reading this wrong?



 

Kursah

Moderator
Staff member
Joined
Oct 15, 2006
Messages
12,721 (2.64/day)
Location
Missoula, MT, USA
System Name Kursah's Gaming Rig 2018 - Ryzen+ Edition | SpartanCore | SpartanCore2
Processor R7 2700X @ Stock (3.7/4.35) w/PBO+XFR2 | i7 3770 3.4/3.9 Stock | i7 4770 3.4/3.9 Stock
Motherboard Asus ROG Strix X370-F Gaming | Intel DQ77MK | SuperMicro X10SLQ
Cooling Noctua NH-U14S Push-Pull + NT-H1 | Stock Intel Cooler + AC MX4 | Stock Intel Cooler + AC MX4
Memory 16GB (2x8) G.Skill DDR4-3200 | 16GB (4x4) Samsung DDR3-1600 | 32GB (4x8) Mushkin Stealth DDR3-1600
Video Card(s) MSI GTX980 Ti Gaming 6G LE @ Stock | Onboard Intel HD 4000 | Onboard Intel HD 4600
Storage SSD 250GB + 960GB, 1x2TB | 120GB SSD, RAID10 6x2TB (6TB) | 120GB SSD, RAID10 6x3TB (9TB)
Display(s) Samsung 32" TV IPS 1080p, Dell 23" U2312HM IPS 1080p | 19" Dell on KVM..mostly headless operation.
Case Corsair 600C - Stock Fans on Low | Lian Li Lancool PC-K7 - Cougar fans | Modified Lenovo TS430 Case
Audio Device(s) Aune T1 mk1 > AKG K553 Pro + HiFiMAN HE-350 (Equalizer APO + PeaceUI) | Not in use
Power Supply EVGA 750G2 Modular + APC Back-UPS Pro 1500 | EVGA KR500 80+ Bronze (Both) + APC Smart-UPS 1500
Mouse Logitech G502 | Dell USB Laser Mouse (KVM)
Keyboard Logitech G15 rv2 | Dell USB Keyboard (KVM)
Software Windows 10 Pro x64 | Windows Server 2012 R2 (Hyper-V) | Windows Server 2016 (Hyper-V)
Yep it appears you create/save the BAT file within the directory you want to lock. Though discussions of how to use it make it sound like you must point the BAT to it externally in order to maintain the lock. THen since this BAT has your password in plaintext, that begs the question if it is really secure? In some situations it may be...to anyone that is able to sniff around they may find it.

Here's a 10 y/o (but still regularly discussed in up to 2019) discussion further based on the development of that particular batch file: https://social.microsoft.com/Forums/en-US/9a0f17af-928e-4732-a3ba-90d54ed961ea/lock-folder-without-any-software?forum=softwareresources

The revised script in the third to last post might make more sense. But I have my concerns with any of them and prefer encryption myself, similar to what's discussed in the last post below:

It also depends on the use-case and application desires of locking/passwording a directory. If you have a multi-user system and are admin, you can set NTFS permissions to restrict other users that are not admin (or shouldn't be), you could even restrict them at least initially until they realize they can audit and edit with their administrative authority.

:toast:
 
Joined
Jul 16, 2014
Messages
3,235 (1.63/day)
Location
SE Michigan
System Name Dumbass
Processor AMD-9370BE @4.6
Motherboard ASUS SABERTOOTH 990FX R2.0 +SB950
Cooling CM Nepton 280L
Memory G.Skill Sniper 16gb DDR3 2400
Video Card(s) GreenTeam 1080 Gaming X 8GB
Storage C:\SSD (240GB), D:\Seagate (2TB), E:\Western Digital (1TB)
Display(s) 1x Nixeus NX_EDG27, 2x Dell S2440L (16:9)
Case Phanteks Enthoo Primo w/8 140mm SP Fans
Audio Device(s) onboard (realtek?) SPKRS:Logitech Z623 200w 2.1
Power Supply Corsair HX1000i
Mouse Logitech G700s
Keyboard Logitech G910 Orion Spark
Software windows 10
Benchmark Scores https://i.imgur.com/aoz3vWY.jpg?2
Heh! its like they copied and pasted that, with some editing, just to create a story as a "New idea here!".

@Kursah did you notice the attribute change? its doesnt appear as an actual lock but just hiding the folder.
 

Kursah

Moderator
Staff member
Joined
Oct 15, 2006
Messages
12,721 (2.64/day)
Location
Missoula, MT, USA
System Name Kursah's Gaming Rig 2018 - Ryzen+ Edition | SpartanCore | SpartanCore2
Processor R7 2700X @ Stock (3.7/4.35) w/PBO+XFR2 | i7 3770 3.4/3.9 Stock | i7 4770 3.4/3.9 Stock
Motherboard Asus ROG Strix X370-F Gaming | Intel DQ77MK | SuperMicro X10SLQ
Cooling Noctua NH-U14S Push-Pull + NT-H1 | Stock Intel Cooler + AC MX4 | Stock Intel Cooler + AC MX4
Memory 16GB (2x8) G.Skill DDR4-3200 | 16GB (4x4) Samsung DDR3-1600 | 32GB (4x8) Mushkin Stealth DDR3-1600
Video Card(s) MSI GTX980 Ti Gaming 6G LE @ Stock | Onboard Intel HD 4000 | Onboard Intel HD 4600
Storage SSD 250GB + 960GB, 1x2TB | 120GB SSD, RAID10 6x2TB (6TB) | 120GB SSD, RAID10 6x3TB (9TB)
Display(s) Samsung 32" TV IPS 1080p, Dell 23" U2312HM IPS 1080p | 19" Dell on KVM..mostly headless operation.
Case Corsair 600C - Stock Fans on Low | Lian Li Lancool PC-K7 - Cougar fans | Modified Lenovo TS430 Case
Audio Device(s) Aune T1 mk1 > AKG K553 Pro + HiFiMAN HE-350 (Equalizer APO + PeaceUI) | Not in use
Power Supply EVGA 750G2 Modular + APC Back-UPS Pro 1500 | EVGA KR500 80+ Bronze (Both) + APC Smart-UPS 1500
Mouse Logitech G502 | Dell USB Laser Mouse (KVM)
Keyboard Logitech G15 rv2 | Dell USB Keyboard (KVM)
Software Windows 10 Pro x64 | Windows Server 2012 R2 (Hyper-V) | Windows Server 2016 (Hyper-V)
I did notice that, but like many things in IT, it does one thing but is advertised as doing something entirely different.
 
Joined
Aug 20, 2007
Messages
12,100 (2.69/day)
System Name Pioneer
Processor Intel i9 9900k
Motherboard ASRock Z390 Taichi
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory G.SKILL TridentZ Series 32GB (4 x 8GB) DDR4-3200 @ 13-13-13-33-2T
Video Card(s) EVGA GTX 1080 FTW2
Storage Mushkin Pilot-E 2TB NVMe SSD w/ EKWB M.2 Heatsink
Display(s) LG 32GK850G-B 1440p 32" AMVA Panel G-Sync 144hz Display
Case Thermaltake Core X31
Audio Device(s) Onboard TOSLINK to Schiit Modi MB to Schiit Asgard 2 Amp to AKG K7XX Ruby Red Massdrop Headphones
Power Supply EVGA SuperNova T2 850W 80Plus Titanium
Mouse ROCCAT Kone EMP
Keyboard WASD CODE 104-Key w/ Cherry MX Green Keyswitches, Doubleshot Vortex PBT White Transluscent Keycaps
Software Windows 10 x64 Enterprise... yes, it's legit.
lol it's using attrib, it's bloody using the hide attribute and a plaintext password check.

Do they even know NTFS has like... real filesystem based encryption they could have just uh... used?

Sorry, but this is horrible for hiding from anyone with better computer skill than an absolute novice. Kill it with fire.
 
Joined
May 3, 2010
Messages
941 (0.27/day)
Location
Essex, England
System Name Dialysis Machine
Processor Ryzen 3900X OC 4350Mhz @ 1.25v
Motherboard Asus ROG Crosshair VIII Formula
Cooling Custom EKWB for CPU, VRM's & Dual GPU's with 2x 480mm Rads
Memory Gskill TridentZ 3600 Mhz C17
Video Card(s) Sapphire Vega64 Nitro+ x2 Crossfire
Storage Samsung 970 Evo Plus 2TB x 2 Raid0 & WD Black 4TB x2 Raid0
Display(s) MSI MPG27QC
Case Corsair 1000D
Audio Device(s) onboard 7.1 HD Audio
Power Supply Seasonic PRIME Ultra 1300w PSU
Mouse Logitech G300s
Keyboard Logitech G19s
Software Windows 10 64Bit
This method isn't new (seem similar before) and honestly it's quite awful, Few third party programs out there that do the job and much better with encryption on the locked folders
 
Top