Bios Password

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, December 19, 2009

I’m no dummy (but I know how to make one…)

Posted on 9:51 PM by Unknown

A number of weeks ago I was participating in an internal pilot project.

One of the parameters being measured and tested was how file transfers of a certain size were processed.

To do this, we had to send a file over 4 MB through the software application being tested.  No file was provided. No file source was suggested.

Now I don’t know about you, but the thought of willy-nilly picking just any old file off my system and sending it into the black-hole of the testing endpoint just didn’t sit well with me on numerous levels.  Sure I had lots to pick from.

A simple search with the free Nirsoft tool SearchMyFiles would have allowed me to filter down my system for files between a certain range.  Then do I pick an application file? Maybe an MS Office file?  If I send the right one might it leak some content I would rather not?  Or would the file-type itself maybe cause some kind of variance in the testing/results?

Instead, I just used a utility to generate a file of a specific size filled with garbage.  Didn’t matter what I called it (Bad_HAL.txt), or what it actually did (nothing). It was just a garbage file of a specific size.

Sweet Free Dummy File Generators

These things are dead-useful for system admin work and particularly, testing of file transfers across networks or devices without fear of information leakage. 

Here’s a brief round up of a few nice and free dummy file generators:

  • At almost the very bottom of this Coding Snacks list from DonationCoder.com I found the “DFC: Dummy File Creator” application from programmer seedling.  Written way back in 09 of ‘05, it proves that good code stands the test of time..  just 328 kB this is tiny any good in a GUI package. Download the “portable” zip version with no installer.  Enter the file size you want (in bytes, Kbytes, Mbytes, or Gbytes), specify a fill pattern (if desired), and press the “OK” button.  You will then be asked to provide a name for the file and a location to put it.  Bam. Done.
  • Dummy File Generator - (freeware) – according to the developer, Boris Toll,  “Mit dem Dummy File Generator ist es möglich Dateien mit beliebiger Größe zu erstellen. Die Standardauswahl enthält Byte, KByte, MByte und GByte. Dieses Programm ist vorallem für Netzwerk und Performance Tests hilfreich.” or with a bit of Google translation help, “ With the dummy file generator, it is possible to create files with any size. The default selection includes byte, KB, megabytes and gigabytes. This program is especially helpful for network and performance testing.”  Yep.  Good German coding at its best. Not convinced? Let Killer Tech Tips blog give you a visual walkthrough in their post Create Dummy Files.  Really tiny at just 23 kB in the single exe file, its extremely portable!  Set your size format (in bytes, Kbytes, Mbytes, or Gbytes), provide the size, and create your file.  You don’t get the option to specify a custom fill pattern, however.
  • Dummy File Creator – (freeware) – MyNikko. Download either the MSI-based installer or the “portable” zip version with no installer (my preference). The GUI exe weighs in at just 56 kB while the command-line version is just 16 kB. Dummy lets you either generate a single file or multiple files as defined in a user-created batch list.  Specify the path and name of the file output, the size and “create”!  The sample batch list is great as it allows you to pre-define the name/location of your files, the size, and a randomization switch.  The web page has all the information you need for both versions. Awesomely clever little utility.
  • NOD32 Dummy File Creator Utility 1.0 -- (freeware) – download source at Softpedia. Weighing in at 327 kB, it has a very pleasant GUI interface. Set your file size, your file fill string, set the attributes for the file (archive, hidden, readyonly, system), and create your file.  What is particularly groovy about this tool is that it feeds off a “DFC.INI” file located in the same place as the executable.  It comes with a sample one but any geek should be able to figure out the format.  Once you do you could automagically generate a whole set of different dummy files, types, etc, at a predetermined size.  Why such a tool from a A/V vendor? I think the reason is by creating locked-down dummy files of specific names, when the malware attempts to drop itself onto those locations, it can’t as the locked files already exist.  It’s a technique I used quite successfully with some auto-respawning malware in the past.

And then there is Microsoft’s FSutil

I’m guessing here it stands for FileSystemUTILity..at least it makes sense to me to remember it that way.

It appears to be present in XP, Vista, and Windows 7 (and the corresponding server editions as well)

  • Microsoft Windows XP – Fsutil – Microsoft XP Pro Product Documentation.

It must be launched from an administrator-elevated command prompt session.

Please bear in mind that it is really a powerful tool that “…you can use to perform many FAT and NTFS file system related tasks, such as managing reparse points, managing sparse files, dismounting a volume, or extending a volume” according to Microsoft.

But it is of note to this post as it contains the ability to create a dummy file.  (Though truth be told, using this utility to do so is a bit like using the Death Star to swat a fly.)

Documentation of changes in it from XP to Vista to Win7 are a bit hard to come by.  This link outlines the XP subcommands.

ITsVISTA rounded up the Vista changes, including the additional subcommands of repair (self healing management), resource (Transactional Resource Manager management), and transaction (Transaction management).

On my Win7 system I see it also contains all the XP and Vista noted subcommands and now adds 8dot3name (8dot3name management).

To view help for the available subcommands at the command prompt, type fsutil, type the subcommand, and then type help (that is, fsutil subcommand help).

However what we want is to make a dummy file.

C:\Windows\system32>fsutil file createnew help
Usage : fsutil file createnew <filename> <length>
   Eg : fsutil file createnew C:\testfile.txt 1000

So we would type the following fsutil file createnew D:\dummy_file.txt 512

C:\Windows\system32>fsutil file createnew d:\dummy_file.txt 512
File d:\dummy_file.txt is created

That just created a new file named “dummy_file.txt” on the root of the D drive at a size of 512 bytes.

See these kinda related coolnesses of fsutil:

  • Download our Fsutil Query Tool to optimize XP’s Fsutil utility – TechRepublic
  • Windows 7 SSD TRIM and fsutil. Good information can be hard to find! – ITcookbook.net

See.  It’s easy to be a dummy.

Cheers!

--Claus V.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in command-line interface, utilities | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Finally! Time to Post! New material list
    After a recent text from my bro reminding me it has been since March since I’ve done a blog post, I was finally able to clear the schedule a...
  • Oscar watch Linkpost
    Alvis and Lavie are watching the Oscars tonight and I’m along for the ride. I wasn’t able to come even close to getting out some of the pos...
  • New Year’s Day - First Post 2011
    Same day I came out with my first post after a long drought, I fell upon this article Blogging Seems To Have Peaked, Says Pew Report over a...
  • Utility Gumbo
    There’s a lot in this pot.  Probably something everyone can find to enjoy. I’m serving it up tonight out of the back of the truck on the s...
  • iodd : Multi-boot madness!
    Like many computer technicians and responders, I seem to always have at hand a collection of bootable media; CD’s, DVD’s, USB-HDD’s, flash m...
  • Ubuntu 13.10 Upgrade - Lessons Learned & VIDMA utility found
    A few weeks ago a new release of Ubuntu came out. Naturally that meant it was update time! I have been getting pretty good at this now so ...
  • Interesting Malware in Email Attempt - URL Scanner Links
    Last weekend I spent some time with extended family helping confirm for them that their on-line email account got hacked and had been used t...
  • Windows 8 Linkage: A Bit Behind the Ball
    CC attribution: behind the eight ball by Ed Schipul on flickr . OK. Confession time. I’m more than a bit exhausted this weekend. Besides a...
  • Lego MiniFig Extravaganza
    picture clipped from Wired’s clip from Gizmodo clip… Thanks in no small part to the Windows 7 RC release, XPM mode research, and a big “l...
  • This Week in Security and Forensics: Beware the cake!
    Cube Party! image used with permission from John Walker at "rockpapershotgun.com" Yeah, the cake is a Portal thing.  Let’s d...

Categories

  • Active Directory
  • anti-virus software
  • Apple
  • architecture
  • art
  • AVG
  • Blogger
  • blogging
  • books
  • boot-cd's
  • browsers
  • cars
  • cell-phones
  • cheat sheets
  • Chrome/Chromium
  • command-line interface
  • cooking
  • crafts
  • crazy
  • curmudgeon
  • DHC
  • Dr. Who
  • E-P1
  • Education
  • family
  • Firefox
  • firewalls
  • For the Gentleman
  • forensics
  • Gmail
  • Google
  • graphics
  • hacks
  • hardware
  • humor
  • hurricanes
  • imagex
  • Internet Explorer
  • iOS
  • iPhone
  • iPod
  • iTunes
  • Kindle
  • Learning
  • Link Fest
  • Linux
  • malware tools
  • Microsoft
  • movies
  • music
  • networking
  • NewsFox
  • NFAT
  • Nook
  • Opera
  • organization
  • PDF's
  • photography
  • politics
  • PowerShell
  • recipes
  • Remote Support
  • RSS
  • science
  • Scripting
  • search engines
  • security
  • Shuttle SFF
  • software
  • Texana
  • Thunderbird
  • troubleshooting
  • TrueCrypt
  • tutorials
  • utilities
  • VBscript
  • video
  • Virtual PC
  • virtualization
  • viruses
  • Vista
  • Vista mods
  • wallpapers
  • Win FE
  • Win PE
  • Win RE
  • Windows 7
  • Windows 8
  • Windows Home Server
  • Windows Live Writer
  • Windows Phone
  • writing
  • XP
  • XP mods
  • Xplico

Blog Archive

  • ►  2013 (83)
    • ►  November (8)
    • ►  October (8)
    • ►  September (14)
    • ►  August (6)
    • ►  July (10)
    • ►  June (10)
    • ►  April (11)
    • ►  March (6)
    • ►  February (7)
    • ►  January (3)
  • ►  2012 (96)
    • ►  December (8)
    • ►  November (4)
    • ►  October (9)
    • ►  September (8)
    • ►  August (12)
    • ►  July (4)
    • ►  June (3)
    • ►  May (7)
    • ►  April (13)
    • ►  March (3)
    • ►  February (5)
    • ►  January (20)
  • ►  2011 (41)
    • ►  December (8)
    • ►  November (7)
    • ►  September (4)
    • ►  August (4)
    • ►  July (2)
    • ►  June (6)
    • ►  March (5)
    • ►  February (1)
    • ►  January (4)
  • ►  2010 (69)
    • ►  December (1)
    • ►  October (3)
    • ►  September (2)
    • ►  August (13)
    • ►  July (17)
    • ►  June (3)
    • ►  May (3)
    • ►  April (3)
    • ►  March (11)
    • ►  February (1)
    • ►  January (12)
  • ▼  2009 (177)
    • ▼  December (20)
      • Browser Wars
      • iTunes Damage Control
      • Tiny CLI Revisit
      • T-Bird 3.0 versus Outlook 2010 (beta)
      • Run Windows Remote Desktop Connection on Win7 “Hom...
      • I’m no dummy (but I know how to make one…)
      • Tiny Stuff
      • For the Geeky Crew _ Mostly Virtualized
      • DECAF and COFEE, and a brush
      • Mostly Windows Virtualization stuff
      • Sync & Backup Tools (freeware)
      • Get your Big Whata-Microsoft Linkdump Here!
      • Minor manual tweaking of freeCommander
      • Hmmm. So that '403-thing' WAS a real problem...
      • Free Windows GREP tools – I’m Excited!
      • Brief Adobe Update News
      • In Texas? Really!
      • Get Yer Own Free DNS Service!
      • Valca Mobile Phone Upgrade
      • More to come…but for now…drive recovery first
    • ►  November (11)
    • ►  October (7)
    • ►  September (7)
    • ►  August (21)
    • ►  July (17)
    • ►  June (7)
    • ►  May (18)
    • ►  April (9)
    • ►  March (17)
    • ►  February (23)
    • ►  January (20)
  • ►  2008 (35)
    • ►  December (23)
    • ►  November (12)
Powered by Blogger.

About Me

Unknown
View my complete profile