Jump to content

oligarchy314

Active Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by oligarchy314

  1. I'm not sure what your referring to within the context of the Hak5 show, but here are some things that I've used and liked. TestDisk http://www.cgsecurity.org/wiki/TestDisk PhotoRec http://www.cgsecurity.org/wiki/PhotoRec They are both OSS and have been able to recover many gigs of what I had thought were lost data.
  2. Edit [Reworked my original batch file, this is much more useful.] Edit Edit [Fixed the selection of archive type, previously all selections other than "zip" defaulted to 7z archives, just with different extensions that were effectively meaningless.] Just copy all this text into your favorite text editor and save it as a batch file. ::----------------------------------------------------------------------------- :: This is a script to tell 7zip to archive each file in a directory to its :: own individual zip file so that you can save space, but still be able to :: access each file independently of the others. ::----------------------------------------------------------------------------- :: Prompt user for required information :: path1 == Path to input files :: path2 == Path to output files :: crit == Criteria for files (multiple criteria separated with spaces) :: type == Archive type to use :: ext == File extension for archive type selected cls @echo off echo Mass Archiver Batch Script (v4.05) 2007.08.07 echo Welcome to the 7zip mass archival tool. This utilizes the 7z command line echo program for the processing of files. This tool will help you in compressing echo entire directories of files when you want each file to go to its own echo individual archive. echo. :start echo What would you like to compress? (ex. *.txt, *.log) set crit= set /P crit=Use spaces between multiple critera: echo. set path1= set /P path1=What is the full path to the input directory? (C: ...) echo. set path2= set /P path2=What is the full path to the ouput direcory? (C: ...) echo. set type= set /P type=What compression you would like to use? (7z,zip,gzip,bzip2,tar) ::----------------------------------------------------------------------------- :: Set file extension to correspond to the archive type selected. set ext=%type% if %type%==gzip set ext=gz if %type%==bzip2 set ext=bz2 ::----------------------------------------------------------------------------- :: Change directory to working folder by selecting drive and path cd "%path1%" ::----------------------------------------------------------------------------- :: set compression level to "Ultimate" unless type == tar set level="-mx9" if %type%==tar set level="" ::----------------------------------------------------------------------------- :: Run archive command :: :: For every filename in the current directory that meets some criteria: :: load 7zip, create an archive "filename.ext" and compress the file :: "filename" to the archive "filename.ext" for %%f in (%crit%) do C:Progra~17-zip7z a -t%type% %level% "%path2%%%f".%ext% "%path1%%%f" echo. echo. echo. echo. echo. echo Job Finished . . . echo. echo. echo. echo. echo. ::----------------------------------------------------------------------------- :: Ask user if they would like to remove the uncompressed files set cleanup= set /P cleanup=Would you like to delete the original files? (%crit%) (y/n) if %cleanup%==y del %crit% if %cleanup%==Y del %crit% ::----------------------------------------------------------------------------- :: Ask user if they would like to run the script again echo. set repeat= set /P repeat=Would you like to compress something else? (y/n) cls if %repeat%==y goto start if %repeat%==Y goto start :end My earlier attempts at this didn't work with spaces in the file names, but this will handle them fine. Also this can be run from anywhere on the computer, so long as the path to the 7z.exe is correct, because this prompts for input and output directories. Finally, this allows you to pick the archive type for the output files, and then compresses at "Ultimate" level to an archive with the appropriate file extension.
  3. So I have a folder full of files (read roms), and I want to automate the process of going through and individually zipping them to save space. Is there a way for me to write a script to use the command line version of 7zip to go through the directory and zip each file to individual archives? I have 750+ files and I could just zip them all manually, but I figure there has to be a better way. Now, before someone suggests it, no zipping them all into one big archive is not an option, I want them as individual files so I can open each one directly. I figure all it really would take are some wild card options to say open file *.x and compress to file *.zip, and something to say when it's reached the end of the directory to quit. I'm just not sure how to do the file handling in the batch script. I've already tried just putting wild cards into the command line options of 7z.exe, but it gives me an error about not finding the file * to write the archive to. Also I would be willing to use a different archiver if there is one out there that can handle this automatically, I just personally like 7zip. Any and all help is greatly appreciated.
  4. I can't say for m0n0wall as I haven't used it, although the thought of an 8Mb installation does sound intriguing. I have however used both Smoothwall and IPcop, and for adding wireless I would recommend IPcop over Smoothwall. IPcop has built in support for four nic's: red (internet), green (lan), orange (dmz), and blue (wireless), and with that it has built in the option to segregate the wireless traffic from the rest of the network, while still keeping things within the same ip subnet, which could be useful later on if you wanted to open up the wireless end of things. While I found Smoothwall a little easier to configure and slightly less overwhelming with options than IPcop, I am not aware of a way to add wireless to a Smoothwall box other than setting it up on the orange (dmz) nic, which would seem to just overly complicate things. As security devices either one should be perfectly fine, but for using the wrt54g as your wireless bridge, I'd go with IPcop.
  5. Because people keep recommending Pstart, I feel like I should explain my aversion. I used Pstart about 2 years ago, and at that point it was not using 7.5Mb, but more like 30Mb of ram on my system, it may very well have been something peculiar about my box, but as such I wasn't going to keep using it. I would hope that other's mileage would be better than mine as far as Pstart goes. Nevertheless, I am going to give Pstart another go, hopefully it has been improved since my first usage. Also, I have had the opportunity to try out a U3 drive, and it's menuing app was using 20Mb. Now, I may only have 512Mb of ram, but 20-30Mb of ram isn't something to sneeze at; if I can avoid it being used up surreptitiously I will. As for the low res question, I've used my config at 1024x768 and 800x600 and it works perfectly fine for me. The only time I see 640x480 any more is in a DOS window or at the console. Finally, I have 20+ apps on my drive I just keep the 14 most used in my autorun file. If you need something with shiny graphics, or you have every portable app there is, by all means use something with more organization.
  6. It is very possible to have VLC download a stream while you're out. First you set up a batch file to start VLC and have it automatically open and start transcoding/streaming/dumping the stream you want to your hard drive. Next you set up an AT job to run the batch you just created file at the specified time. Finally you add a second AT job to kill the VLC process at a specified time. batch file start <path to vlc>vlc.exe -vvv <input stream> <transcoding options> <output file> at command 1 at hh:mm /interactive [/next:?| /every:?] <path to batch file>batchfile.bat at command 2 at hh:mm [/next:? | /every:?] taskkill /f /im vlc.exe For more information about the AT command look here http://ss64.com/nt/at.html For more information about the TASKKILL command look here http://www.microsoft.com/resources/documen...l.mspx?mfr=true For more information on VLC's command line options for use in streaming/transcoding look here. http://wiki.videolan.org/Documentation:Str...d_Line_Examples I've been doing this for a late night radio show for years because staying up from midnight to 4am five nights a week is neither healthy nor feasible. For radio streams I would say you can safely transcode to whatever format you want, because real time audio compression won't max out the average pc. For video streams, in the interest of having a watchable result, I would only recommend dumping the stream to a file without transcoding. Even still, in order for that to work you need to match the output container specified to VLC to be the same as the format the stream is in or you end up with a file that you can't get to play back.
  7. If you want to do any sort of editing/splicing/etc then these are not what you want, but if all you want to do is convert from one format to aother or to just re-compress a file then I would look at any of the following .. Media Coder: http://www.mediacoder.cn/ SUPER http://www.erightsoft.com/SUPER.html#Dnload Either of those will most likely do any conversion you are interested in. They do everything I could ever ask except flv to avi, for that I would go with Dr. DivX OSS http://labs.divx.com/DrDivX but (flv --> avi) is the only conversion I wouldn't recommend either of the other two for. For any simple editing before the conversion to swf I recommend Virtual Dub http://www.virtualdub.org/ or one of it's variants Virtual Dub Mod, Virtual Dub MPEG-2, etc.
  8. After reading through most if not all of the posts using the autorun. inf file I thought I should add my own usage for the autorun. inf. My use of the autorun file is just my preferred way to quickly get at the apps on my drive. Even though I don't use my usb drive as a hacking tool, but more as a portable workspace, anyone could use this on their drive for quick access to apps. Here is a copy of the autorun I use on my drives. I use this on both my 2Gb flash drive and on my 40Gb external drive. [autorun] label=<Fancy label of your choice> icon=<path to icon>icon.ico action=<Name of the action in the Autorun dialog box> open=<path and command to run as default action> shell01 = 7-Zip Portable shell01command = Apps7-ZipPortable7-ZipPortable.exe shell02 = FileZilla Portable shell02command = AppsFileZillaPortablePortableFileZilla.exe shell03 = Firefox Portable shell03command = AppsFirefoxPortableFirefoxPortable.exe shell04 = Pidgin Portable shell04command = AppsPidginPortablePidginpidgin-portable.exe shell05 = GIMP Portable shell05command = AppsGIMPPortableGIMPPortable.exe shell06 = OpenOffice Calc shell06command = AppsOpenOfficePortableOpenOfficeCalcPortable.exe shell07 = OpenOffice Impress shell07command = AppsOpenOfficePortableOpenOfficeImpressPortable.exe shell08 = OpenOffice Write shell08command = AppsOpenOfficePortableOpenOfficeWriterPortable.exe shell09 = Scintilla (SciTE) shell09command = AppsScinti~1Scite.exe shell10 = VideoLAN Portable shell10command = AppsVLCPortableVLCPortable.exe shell11 = N|vu Portable shell11command = AppsNVUPortableNVUPortable.exe shell12 = Foxit PDF Reader shell12command = AppsFoxitReader.exe shell13 = PuTTY (SSH Client) shell13command = Appsputty.exe shell14 = µTorrent shell14command = Appsutorrent.exe Instead of numbers you can use labels, but they get loaded in alphabetical order, so for me to put them in the order I want I just use numbers instead. For any directory path that contains spaces I would recommend using the shortened DOS version of the path as I used with the path to the "Scintilla Text Editor" (shell09 = Scintilla . . ). Now, the way to get the most use out of this is to create a shortcut on the desktop of the PC you're at and what this autorun. inf does is when the usb drive is inserted and autoruns you can now right click on the shortcut and you get a drop down menu of shortcuts to all the portable apps on your drive. I like this better than all those start menu replacement programs, because this does not add a process, and thereby uses no ram or cpu cycles. You can also right click on the icon for your drive inside of My Computer, I just prefer to have an icon on the desktop. Here is a pic of what the menu looks like when I right click on my drive. http://www.mdsc.info/images/autorun.menu.png
×
×
  • Create New...