02-15-2017
- declare PATH="" GULP, this removes all the paths to any executables.
- [ $sha1 -eq $verifySha ] should read [ "$sha1" = "$verifySha" ] .
This is just a starter, I have not checked your logic, but this should help you out at least...
Last edited by rbatte1; 02-15-2017 at 10:36 AM..
Reason: Converted textual list to formatted numbered list and corrected spellings
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm really new at this and wondering how I would go about adding code to my script to verify that all records loaded successfully? (I am loading a file into a table) i'm using the Korn shell.
I'm also having trouble verifying parts in the header as i do not really understand the header and... (3 Replies)
Discussion started by: sheranjem
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a script I want to run as a background process. Where would I add a bit of script so that a check can be performed to see it this is already running and, where it isn't, to then run it? I know how to do this... I just don't know where I can put the initial part of the check script so... (2 Replies)
Discussion started by: miwinter
2 Replies
3. Shell Programming and Scripting
Hi Group,
Please forgive in case this is discussed.
I need help regarding a simple script to verify if the give address exist in the Ldap directory. If the email exists the script should exit with a 0 status or else a non zero status.
I am currently using the following script (and it is... (4 Replies)
Discussion started by: Ramdas
4 Replies
4. Shell Programming and Scripting
I have a file, not really a csv, but containing delineated data just the same. Lets call that file "raw_data.txt". It contains data in the format of company name:fein number like this:
first company name:123456789
second company name:987654321
what i need to do is read this file, apply... (11 Replies)
Discussion started by: FreddyG
11 Replies
5. Programming
hi
i want to generate SHA1 hash of string in Linux (atmark) and downloaded the XYSSL-0.9 version code for the same.i have the algorithm which takes file as argument and returns hash of file . And of same file while I generated the key using online tools then it doesn't match with my compiled... (4 Replies)
Discussion started by: ahsaas42
4 Replies
6. Shell Programming and Scripting
Hi,
I am from File system back ground and doing File system testing on Linux, I need script that scirpt that create the different multiple types of .txt, device file and then copy to mount point /mnt/ dir and then verify the created files and copied files, if created files and copied files are... (4 Replies)
Discussion started by: manish_tcs_hp
4 Replies
7. Shell Programming and Scripting
What is the unix shell scripting equivalent of the following php code? I have tried to reproduce it, but I haven't been able to.
<?php
sha1(sha1(strtolower($user) . $pass) . $sessionid);
?> (12 Replies)
Discussion started by: locoroco
12 Replies
8. Shell Programming and Scripting
Hi eveyone
I am planning to use crontab to delete all files in my donwloads directory that are older than one hour
I will be using crontab to run this script
find /home/kee/downloads/* -daystart -mmin +59 -type f -name -exec rm -r {}\;
could you please let me know if the above... (1 Reply)
Discussion started by: k33k00
1 Replies
9. Shell Programming and Scripting
hello i have writing a shell script to download and run some packages
the only way that i use to verify download pack is , limit users ip to download from main server, if wget can download file (verified) then script run by execute it sh pack76.sh
else show and error
(stupid solution ha?)
... (8 Replies)
Discussion started by: nimafire
8 Replies
10. Shell Programming and Scripting
Hello again unix.com
I need some help regarding a script.
I have:
function checkform ( form )
{
if (form.pass.value.length < 6) {
alert( "Error." );
form.pass.focus();
document.getElementById('pass').style.backgroundColor="#FFFFFF";
return... (2 Replies)
Discussion started by: galford
2 Replies
LEARN ABOUT DEBIAN
rdd-verify
VERIFIER(1) General Commands Manual VERIFIER(1)
NAME
rdd-verify - verifies checksums and hash values generated by rdd-copy(1)
SYNOPSIS
rdd-verify [OPTION] file1 ...
DESCRIPTION
Rdd-verify verifies checksums and hash values generated by rdd-copy(1). Rdd stores checksums (Adler32 or CRC32) in files. These files
must be passed to rdd-verify for verification.
Hash values (MD5 or SHA1) computed by rdd-copy(1) must be passed to rdd-verify on the command line as hexadecimal strings.
Rdd-verify reads all input files (file1, ...) and recomputes the checksums and hash values that the user wishes to verify. The verifica-
tion will very likely fail if the concatenation of the input files is different from the source that was copied by rdd-copy(1).
OUTPUT
All verification errors are reported on stderr.
OPTIONS
-?, --help
Print a usage message.
-V, --version
Report version number and exit.
-v, --verbose
Be verbose (more messages).
-v, --verbose
Be verbose (more messages).
--checksum, --adler32 file
Verify the Adler32 checksums stored in file.
--crc, --crc32 file
Verify the CRC32 checksums stored in file.
--md5, --md5 digest
Recompute the MD5 hash value. It should be equal to digest.
--sha, --sha1 digest
Recompute the SHA1 hash value. It should be equal to digest.
A digest argument is a hexadecimal string. Leading zeroes may not be omitted.
EXAMPLES
rdd-verify --md5 0123456789abcdef0123456789abcdef disk.img
Compute the MD5 hash value over disk.img and verify whether it equals 0123456789abcdef0123456789abcdef.
rdd-verify --adler32 checksums.a32 disk.img
Compute the adler32 checksums over disk.img and compare each checksum to the corresponding checksum in checksums.a32.
SEE ALSO
rdd-copy(1)
REPORTING BUGS
Report bugs to <rdd@holmes.nl>.
ACKNOWLEDGEMENTS
Many thanks to all who reported bugs and successes, and who suggested improvements. You know who you are.
COPYRIGHT
Copyright (C) 2002-2003 Netherlands Forensic Institute
This software comes with NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
rdd-verify February 2002 VERIFIER(1)