Sponsored Content
Full Discussion: Wipe tool for HP-UX
Operating Systems HP-UX Wipe tool for HP-UX Post 302902211 by lupin..the..3rd on Monday 19th of May 2014 12:15:39 PM
Old 05-19-2014
I like to use /dev/urandom to feed openssl for wiping a block device. OpenSSL output is much much faster than /dev/urandom.

I use this on Linux but it should also work on HP-UX. I've got some 11.31 servers here I can test it on if it doesn't work for you.

Code:
#!/bin/sh
if test $# -ne 1; then
   echo "must supply target block device as single argument."
   exit 1
fi

if ! [ -b $1 ]; then
   echo $1" does not exist, or is not a block special file."
   exit 1
fi

read -p "Are you absolutely sure to wipe "$1"? "
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
   echo "No wipe"
   exit 1
fi
echo

echo "Wiping "$1"..."
openssl enc -aes-256-cbc -pass pass:"$(dd if=/dev/urandom bs=128 count=1 
2>/dev/null | base64)" -nosalt < /dev/zero > $1
echo "Done."

exit 0
#EOF

 

10 More Discussions You Might Find Interesting

1. Solaris

What do you use to wipe your disks?

What are y'all using to wipe your solaris disks? I am being question by IT Security, what I am using to wipe disk. Is anyone using a 3rd party utility? I have used the format utility in solaris previously. But they are looking for something commercial that I can use. Anyone have... (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies

2. UNIX for Advanced & Expert Users

can hanging perl process wipe out a directory?

Hi, This weekend i left a perl script running , I was running it in a remote machine. The machine seems to have been rebooted during the weekend. When i got back on monday the entire directory containing the script was wiped out. The process had been aborted. Nobody has access to the directory... (2 Replies)
Discussion started by: aboxilica
2 Replies

3. What is on Your Mind?

Nuclear Elephant iPhone Wipe making your iPhone Safer for Resale

For those with the iPhones here might read up how to wipe your personal data off the phone before reselling or trade-in. ;) source: Nuclear Elephant: iPhone Wipe June 1, 2008: Making your iPhone Safe for Resale Since my posts regarding the iPhone restore mode being insufficient for wiping... (0 Replies)
Discussion started by: sparcguy
0 Replies

4. UNIX for Dummies Questions & Answers

Reommendations for hp-ux wipe software

I am looking for software to do DoD compiliant wipes on Hp-Ux. Thank you in advance for any recommendations provided. (1 Reply)
Discussion started by: jim15800
1 Replies

5. UNIX for Advanced & Expert Users

Wipe software for Hp-ux

I am looking for recommendations on DOD compliante software to wipe disk on HP-UX. Any recommendations would be appreciated. Thank you in advance for any assistance provided. (1 Reply)
Discussion started by: jim15800
1 Replies

6. Solaris

Wipe a Sunfire V480

Hi Guys I'm new here in these forums and also in Sun Solaris/Sun hardware related things. I have some really basic questions about the way to go for "wipe" a Sun Solaris system. I have to sell a used Sunfire v480 and I wan't to wipe the old sytem before selling it. But I'm not sure if I... (6 Replies)
Discussion started by: slowatsch
6 Replies

7. Cybersecurity

How do I wipe stdout?

Today I used Terminal (invoked from Mac OS X 10.4.11) to view some data that is secured by a password. After exiting Terminal, it occurred to me that a vestige of the data displayed on my screen might reside in memory or in disk file ... the actual file used for stdout, for example. Do I need... (1 Reply)
Discussion started by: dcollins
1 Replies

8. Solaris

Solaris box completely wipe

HI, I woluld like to know is it possible to boot solairs into single usermode from cd and using format -> purge command to wipe all the disk? please suggest or any other method ? my requirement is to completely wipe solaris box. (4 Replies)
Discussion started by: manoj.solaris
4 Replies

9. UNIX for Advanced & Expert Users

Server wipe tool for AIX and Linux

Hi Friends, I am looking for a opensource/inbuilt server wipe tools similar to DBAN for the server decommissions. I have several AIX and Linux machines to decom as part of datacenter shutdowns. But these 'DOESNT' have console access and I need to do the wipe remotely. Can you please suggest me... (9 Replies)
Discussion started by: shyam2j
9 Replies

10. BSD

Wipe out userland caches with shred, bleach bit is out of reach

Another topic that bothers me on bsd is the missing of bleach-bit. Looking at what bleach-bit can clean, the new version, it wipes out all the caches of the user. May someone can give me a hint how to clean the userland in bsd and all the hidden caches for the user. shred all rubbish or LSA cookies... (0 Replies)
Discussion started by: 1in10
0 Replies
GIT-MERGETOOL(1)						    Git Manual							  GIT-MERGETOOL(1)

NAME
git-mergetool - Run merge conflict resolution tools to resolve merge conflicts SYNOPSIS
git mergetool [--tool=<tool>] [-y|--no-prompt|--prompt] [<file>]... DESCRIPTION
Use git mergetool to run one of several merge utilities to resolve merge conflicts. It is typically run after git merge. If one or more <file> parameters are given, the merge tool program will be run to resolve differences on each file. If no <file> names are specified, git mergetool will run the merge tool program on every file with merge conflicts. OPTIONS
-t <tool>, --tool=<tool> Use the merge resolution program specified by <tool>. Valid merge tools are: kdiff3, tkdiff, meld, xxdiff, emerge, vimdiff, gvimdiff, ecmerge, diffuse, tortoisemerge, opendiff, p4merge and araxis. If a merge resolution program is not specified, git mergetool will use the configuration variable merge.tool. If the configuration variable merge.tool is not set, git mergetool will pick a suitable default. You can explicitly provide a full path to the tool by setting the configuration variable mergetool.<tool>.path. For example, you can configure the absolute path to kdiff3 by setting mergetool.kdiff3.path. Otherwise, git mergetool assumes the tool is available in PATH. Instead of running one of the known merge tool programs, git mergetool can be customized to run an alternative program by specifying the command line to invoke in a configuration variable mergetool.<tool>.cmd. When git mergetool is invoked with this tool (either through the -t or --tool option or the merge.tool configuration variable) the configured command line will be invoked with $BASE set to the name of a temporary file containing the common base for the merge, if available; $LOCAL set to the name of a temporary file containing the contents of the file on the current branch; $REMOTE set to the name of a temporary file containing the contents of the file to be merged, and $MERGED set to the name of the file to which the merge tool should write the result of the merge resolution. If the custom merge tool correctly indicates the success of a merge resolution with its exit code, then the configuration variable mergetool.<tool>.trustExitCode can be set to true. Otherwise, git mergetool will prompt the user to indicate the success of the resolution after the custom tool has exited. -y, --no-prompt Don't prompt before each invocation of the merge resolution program. --prompt Prompt before each invocation of the merge resolution program. This is the default behaviour; the option is provided to override any configuration settings. AUTHOR
Written by Theodore Y Ts'o <tytso@mit.edu[1]> DOCUMENTATION
Documentation by Theodore Y Ts'o. GIT
Part of the git(1) suite NOTES
1. tytso@mit.edu mailto:tytso@mit.edu Git 1.7.1 07/05/2010 GIT-MERGETOOL(1)
All times are GMT -4. The time now is 01:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy