+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 35
General Chat Thread, MAKE USB WRITE PROTECTED in General; Originally Posted by HarrySBoura_Auckland @ SYNACK Hi Mate. Yea I tried this method before and I think this is the ...
  1. #16

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,717
    Thank Post
    341
    Thanked 517 Times in 485 Posts
    Rep Power
    180
    Quote Originally Posted by HarrySBoura_Auckland View Post
    @ SYNACK

    Hi Mate. Yea I tried this method before and I think this is the most secured one I came across so far. But even in this method any Virus I think can still delete your files. I was looking to find if we can anyway make our USB just read only so that no machine can edit it which I think could be near to impossible after my research so far but never no if someone got solution for this. Thank you for advise anyways. . cheers
    What is the overall purpose though?

    I mean if it's just to stop a virus deleting it, any reason you can't just set readonly etc? Sure it could be renamed into a different filetype, but it's not deleted, and easy to set back. + can set an AV on the USB drive.

    If it's to stop anyone editting it, even manually I'm assuming it's something you'll leave with them, which makes most stuff unsecure as such.

    And if it's purely going to be staying with you, any reason you can't get one with a write-readonly switch?

    Or even at the easiest, make a CD etc

    Just don't see what the overall objective is as such :P

    Steve

  2. #17

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,239
    Thank Post
    882
    Thanked 2,742 Times in 2,316 Posts
    Blog Entries
    11
    Rep Power
    784
    @mac_shinobi - as soon as the user cracks open the encryption with the truecrypt mounter then the contents can be read, unless there is an option to mount as read-only but the file could still be corrupted or something. I think that you could probably use a tool to create an MD5 checksum on the drive and that way you could at least check if the files had been changed.

  3. #18

    CESIL's Avatar
    Join Date
    Nov 2006
    Location
    Hampshire
    Posts
    1,404
    Thank Post
    109
    Thanked 267 Times in 198 Posts
    Rep Power
    169
    I downloaded a utility a while back to do the opposite and remove a CD-ROM partition from a free USB that came loaded with demo software (like the mythical Memory4Teachers stick) so that I could wipe and reuse the stick.

    The file I got was CBM209XUmptoolV1.8.3.2_1122.rar but I don't know where I found it and having just tried it with a new USB stick here it doesn't seem to work any more...I am trying to find an updated version.
    Last edited by CESIL; 6th June 2011 at 01:56 PM.

  4. #19

    LeMarchand's Avatar
    Join Date
    Jan 2008
    Location
    The deepest pits of hell
    Posts
    2,310
    Thank Post
    311
    Thanked 362 Times in 263 Posts
    Rep Power
    161
    I totally see the point of this. I carry a flashdrive with a load of tools with me at all times: more portable + easier to update than a disk. However, stick it in the wrong machine and you're uscwap. A hardware switch would definitely be the best option, as you can easily change things when it is safe to, but they seem virtually extinct (my guess too many "faulty" sticks returned by idiots who had activated write protection).

    Of the methods I've seen after a spot of research (many of which are mentioned above), the "fill the drive to bursting" ploy seems the easiest, but not that secure.

    "Read only" is no good - one of the common nasties du jour flips that switch.
    The U3 idea seems OK, but how do you alter the contents easily when you want to?
    Truecrypt type encryption may work (IIRC you can do "read only" - if not FreeOFTE will do it) but is a faff, and I'm not sure if it would "stay" read only in the face of a virus assault.
    Setting arcane file permissions (a specific account as the only one with write/owner perms) may work, but means you need your machine/logon to make changes.

  5. #20
    Freedom's Avatar
    Join Date
    Feb 2007
    Location
    England - Midlands
    Posts
    42
    Thank Post
    6
    Thanked 5 Times in 4 Posts
    Rep Power
    16

    Interesting

    Quote Originally Posted by CESIL View Post
    I downloaded a utility a while back to do the opposite and remove a CD-ROM partition from a free USB that came loaded with demo software (like the mythical Memory4Teachers stick) so that I could wipe and reuse the stick.

    The file I got was CBM209XUmptoolV1.8.3.2_1122.rar but I don't know where I found it and having just tried it with a new USB stick here it doesn't seem to work any more...I am trying to find an updated version.
    I am sorry to highjack the thread, but I have literally hundreds of 1GB sticks that are locked out as 40 odd meg cd-roms and i want and need a way to use them - even if I give them away so if you do find this info out - please pm me into the info :0)

  6. #21


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,365
    Thank Post
    241
    Thanked 2,811 Times in 2,075 Posts
    Rep Power
    812
    What about VHDs? They are supported natively by Vista/7 and can be made read-only. e.g.

    CreateVHD.cmd - Creates a new 512MB VHD.
    Code:
    @echo off && SETLOCAL
    cd /d "%~dp0"
    
    :: Elevation Check
    whoami /priv | find "SeImpersonatePrivilege" > NUL || color 4f && echo. && echo This script must be executed from an elevated command prompt. &&echo. && pause && exit
    
    :: Variables
    SET VHD="%~dp0MalwareRemovalTools.vhd"
    SET DPS=CreateVHD.txt
    
    :: Create DiskPart Script
    (echo create vdisk file=%VHD% maximum=512 type=fixed) > %DPS%
    (echo select vdisk file=%VHD%)                       >> %DPS%
    (echo attach vdisk)                                  >> %DPS%
    (echo create partition primary)                      >> %DPS%
    (echo select partition 1)                            >> %DPS%
    (echo format fs=exfat quick label=Apps)              >> %DPS%
    (echo assign letter=M)                               >> %DPS%
    (echo detach vdisk)                                  >> %DPS%
    (echo exit)                                          >> %DPS%
    
    :: Run DiskPart
    diskpart /s %DPS%
    
    :: Delete DiskPart Script
    echo y | del %DPS%
    
    ENDLOCAL

    AttachVHD-RW.cmd - Mounts the VHD in read/write mode so you can add/update your applications
    Code:
    @echo off && SETLOCAL
    cd /d "%~dp0"
    
    :: Elevation check
    whoami /priv | find "SeImpersonatePrivilege" > NUL || color 4f && echo. && echo This script must be executed from an elevated command prompt. &&echo. && pause && exit
    
    :: Variables
    SET VHD="%~dp0MalwareRemovalTools.vhd"
    SET DPS=AttachVHD.txt
    
    :: Create DiskPart Script
    (echo select vdisk file=%VHD%) > %DPS%
    (echo attach vdisk)           >> %DPS%
    (echo exit)                   >> %DPS%
    
    :: Run DiskPart
    diskpart /s %DPS%
    
    :: Open VHD in Windows Explorer
    %SystemRoot%\explorer.exe /e,M:
    
    :: Delete DiskPart Script
    echo y | del %DPS%
    
    ENDLOCAL

    AttachVHD-R.cmd - Mounts the VHD in read-only mode. Use on infected PC.
    Code:
    @echo off && SETLOCAL
    cd /d "%~dp0"
    
    :: Elevation check
    whoami /priv | find "SeImpersonatePrivilege" > NUL || color 4f && echo. && echo This script must be executed from an elevated command prompt. &&echo. && pause && exit
    
    :: Variables
    SET VHD="%~dp0MalwareRemovalTools.vhd"
    SET DPS=AttachVHD.txt
    
    :: Create DiskPart Script
    (echo select vdisk file=%VHD%) > %DPS%
    (echo attach vdisk readonly)  >> %DPS%
    (echo exit)                   >> %DPS%
    
    :: Run DiskPart
    diskpart /s %DPS%
    
    :: Open VHD in Windows Explorer
    %SystemRoot%\explorer.exe /e,M:
    
    :: Delete DiskPart Script
    echo y | del %DPS%
    
    ENDLOCAL

    DetachVHD.cmd - Unmounts VHD
    Code:
    @echo off && SETLOCAL
    cd /d "%~dp0"
    
    :: Elevation check
    whoami /priv | find "SeImpersonatePrivilege" > NUL || color 4f && echo. && echo This script must be executed from an elevated command prompt. &&echo. && pause && exit
    
    :: Variables
    SET VHD="%~dp0MalwareRemovalTools.vhd"
    SET DPS=DetachVHD.txt
    
    :: Create DiskPart Script
    (echo select vdisk file=%VHD%) > %DPS%
    (echo detach vdisk)           >> %DPS%
    (echo exit)                   >> %DPS%
    
    :: Run DiskPart
    diskpart /s %DPS%
    
    :: Delete DiskPart Script
    echo y | del %DPS%
    
    ENDLOCAL

  7. #22
    willtech's Avatar
    Join Date
    Jun 2010
    Location
    in a server room
    Posts
    30
    Thank Post
    6
    Thanked 4 Times in 3 Posts
    Blog Entries
    1
    Rep Power
    9
    Quote Originally Posted by Steve21 View Post
    Well is there any reason you can't just set the files to readonly in Windows? Aswell as making a custom autorun.inf to stop any being added.

    Steve
    pandasecurity usbvaccine we use this its free it creates a blank autorun.inf file that is readonly to stop viruses writing to the autorun.inf hope this helps
    Last edited by willtech; 20th June 2011 at 08:59 PM.

  8. #23

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,896
    Thank Post
    3,418
    Thanked 1,081 Times in 997 Posts
    Rep Power
    369
    If you made a hta to either write a zero or one to this registry key :

    USB Flash Drive Write Protection

    Then sent the update hkey local user would that apply the change or not ?

    Batch files - RUNDLL and RUNDLL32

  9. #24


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,365
    Thank Post
    241
    Thanked 2,811 Times in 2,075 Posts
    Rep Power
    812
    I've just bought one of these from QuietPC.

    It's an external USB 2.0/eSATA HDD enclosure for 2.5" SATA HDDs and SSDs with a hardware write protect switch and the ability to act as a virtual BD-ROM drive too. The latter feature enables you to place all of your anti-malware/operating system ISOs in a folder called _ISO in the root of the HDD and either boot the computer from any of them or mount the disc images from within your OS. The filenames are shown on the OLED display and you use the jog switch on the side to change between each ISO.




    Here's a video of it being used to boot a Linux ISO stored the HDD...



    * The Zalman ZM-VE200 is a slightly cheaper version of the iodd 2501.

  10. 3 Thanks to Arthur:

    HarrySBoura_Auckland (15th July 2011), LeMarchand (29th June 2011), SYNACK (4th July 2011)

  11. #25

    LeMarchand's Avatar
    Join Date
    Jan 2008
    Location
    The deepest pits of hell
    Posts
    2,310
    Thank Post
    311
    Thanked 362 Times in 263 Posts
    Rep Power
    161
    Looks good! I might get myself one of those.

    Not something you can wear around your neck, though...

  12. #26

    LeMarchand's Avatar
    Join Date
    Jan 2008
    Location
    The deepest pits of hell
    Posts
    2,310
    Thank Post
    311
    Thanked 362 Times in 263 Posts
    Rep Power
    161
    @Arthur: Did you get yours yet and have you come across anything to watch out for?

  13. #27

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,296
    Thank Post
    191
    Thanked 309 Times in 230 Posts
    Rep Power
    170
    Quote Originally Posted by LeMarchand View Post
    @Arthur: Did you get yours yet and have you come across anything to watch out for?
    I ordered one on wednesday and got it yesterday.

  14. #28

    LeMarchand's Avatar
    Join Date
    Jan 2008
    Location
    The deepest pits of hell
    Posts
    2,310
    Thank Post
    311
    Thanked 362 Times in 263 Posts
    Rep Power
    161
    Quote Originally Posted by bladedanny View Post
    I ordered one on wednesday and got it yesterday.
    Can one or both of you do a review when you have had time to play?

    Apart from the size, this looks like a dream machine. I could pretty much ditch my optical disks (maybe keep PLOP for USB booting from old machines) from my bag and just use this.

  15. #29

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,296
    Thank Post
    191
    Thanked 309 Times in 230 Posts
    Rep Power
    170
    I bought it for exactly that, so I don't have to carry around numerous disc for various OSs. As well as been able to boot an 'disc' on netbooks that lack an optical dive.

    Only started to play with it this morning, is there any thing in particular you're wanting to know?

  16. #30

    LeMarchand's Avatar
    Join Date
    Jan 2008
    Location
    The deepest pits of hell
    Posts
    2,310
    Thank Post
    311
    Thanked 362 Times in 263 Posts
    Rep Power
    161
    Quote Originally Posted by bladedanny View Post
    Only started to play with it this morning, is there any thing in particular you're wanting to know?
    I guess the disks I use most are UBCD4WIN and PartedMagic, along with Windows installation disks(!). I currently have a SARDU pendrive, but with UBCD4WIN and XP installation disks (in particular) performance seems a bit flaky (and it takes so damn long to compile the thing if I need to make changes! So I guess: have you tried any of the above ISOs (or come across any ISOs that won't boot)?

    Also, have you stuck with the 32GB FAT partition for ISOs or tried enlarging it (and has that caused problems, if so)?

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Help write a guide for Software restriction policies for USB
    By ChrisH in forum How do you do....it?
    Replies: 7
    Last Post: 28th January 2010, 09:40 AM
  2. Replies: 5
    Last Post: 14th November 2009, 04:37 PM
  3. USB Pendrive with Hardware Write Protect?
    By notlob in forum Hardware
    Replies: 3
    Last Post: 6th July 2009, 02:00 PM
  4. How to make a bootable USB memory stick?
    By button_ripple in forum How do you do....it?
    Replies: 9
    Last Post: 30th April 2009, 09:29 PM
  5. How do I make an USB Drive Bootable.?
    By Grommit in forum Windows
    Replies: 7
    Last Post: 17th December 2007, 07:56 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •