Welcome to Smokey's Security Forums.
Guests have only limited access to the board and it's features, please consider registering to gain full access!
Registration is free and it only takes a few moments to complete.

Smokey's Security Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Internet hit by wave of ransom malware.

Criminals re-used an attack from 2008 to hit the Internet with a huge wave of ransomware in recent weeks, a security company has reported.

Internet hit by wave of ransom malware

OTL Log Analysis and Malware Removal - Qualified PC Disinfection & Cleaning - Microsoft Security Info & Alert Center - Official Jetico Inc. Support Forums

Share this topic on FacebookShare this topic on MySpaceShare this topic on Del.icio.usShare this topic on DiggShare this topic on RedditShare this topic on StumbleUponShare this topic on TwitterAuthorTopic: Wiping slack space from all Linux files?  (Read 1149 times)

0 Members and 1 Guest are viewing this topic.

irlandes

  • Member
  • *
  • Offline Offline
  • Posts: 1
Re: Wiping slack space from all Linux files?
« Reply #3 on: September 23, 2009, 02:19:41 AM »
Hi, Dave.

You can try something like find <path_here> -type f -exec bcwipe -Smd {} \;
Remember, it will be lenghty operation if you have many files there.

Regards,
Nail


That 'something like' bothered me so I worked on it, and registered just to add this material, since it is relevant.

This works:   find / -type f -execdir bcwipe -S -mz -v '{}' \;

     Substitute your path for / which takes a very long time
     -execdir has increased security over -exec.  -okdir allows you to approve each file slack wipe with y or Y This works for testing bcwipe
     -S is wipe slack option
     -mz is one-pass zeroes; see list. -me is 3-pass DoE. or whichever method you prefer
     -v is verbose mode
             See 'man find' and 'bcwipe' for the details.  -execdir takes output of find and executes the stated command on that file.

Nail

  • Jetico Inc. Developer
  • *
  • Offline Offline
  • location: Jetico
  • Posts: 280
    • WWW
Re: Wiping slack space from all Linux files?
« Reply #2 on: March 03, 2009, 02:01:49 PM »
Hi, Dave.

You can try something like find <path_here> -type f -exec bcwipe -Smd {} \;
Remember, it will be lenghty operation if you have many files there.

Regards,
Nail

bulatekTopic starter

  • Full Member
  • **
  • Offline Offline
  • Posts: 11
Wiping slack space from all Linux files?
« Reply #1 on: March 02, 2009, 07:04:02 PM »
How do you wipe slack space from all files in Linux?  There appears to be two issues here: one is that you can't wipe recursively into directories, and two, you can't wipe hidden files unless you explicitly state the filename or use the .* wildcard.  I am looking for an easy solution to wipe ALL files including those found recursively in subdirectories.

I have tried bcwipe -Smd / , but it comes back with the message "/ is a directory   - Skipping".  
I have also tried bcwipe -Smd * , which appears to wipe slack on all unhidden files in the current directory only.

Thanks,
Dave...
 

* Permissions
You can't post new topics.
You can't post replies.
You can't post attachments.
You can't modify your posts.
BBCode Enabled
Smilies Enabled
[img] Enabled
HTML Disabled


Except where otherwise stated, all content Copyright © 2006 - 2010 Smokey Services™ -- All rights reserved

Surf Smokey's with confidence: all external links in posts are checked and rated by WOT - Web of Trust
Security Knowledge-, Alert- & News Center and Comprehensive Microsoft Windows Information & Download Center
Board- and databases search functions and the download of post attachments are only available to registered board members

    


==>Think your PC is infected? Click here for OTL Log Analysis and Malware Removal Assistance<==


Smokey's Security Forums provide full qualified OTL Log Analysis & Cleaning Services
OTL (formerly OTListIt2) by OldTimer is a sophisticated, comprehensive log analysis tool to clean PCs with malicious content

Microsoft Security Info & Alert Center - most recent, real-time released Microsoft Security Bulletins, Alerts, Advisories and Vulnerabilities:
<div style="background-color: none transparent;"><a href="http://www.rsspump.com/?web_widget/rss_widget" title="rss widget">Rss widget</a></div>