openssl dgst cat header problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers openssl dgst cat header problem
# 1  
Old 01-19-2012
openssl dgst cat header problem

I am trying to run an old script to modify an image file with a modified header to bypass the md5 check but it comes up with an error message. The image file is for use on a Expressgate SSD so that I can add sqx files to it. This is a link from where I got the script:- sierrasoftworks.com/expressgate]ExpressGate | Sierra Softworks

Ive narrowed down the error to this part of the script.

#Make new header and make new img DFI
openssl dgst -md5 -binary FILE.IMG >new-md5sum
cat header new-md5sum FILE.IMG > NEW_FILE.IMG
gzip -9 NEW_FILE.IMG
mv NEW_FILE.IMG.gz NEW_FILE.DFI

This is the error:
cat: header: No such file or directory

Creating Updated Header File
DeviceVM SplashTop Header File Generator
Target File: DFIImage.IMG

Generating Header
Generating MD5SUM
Complete
Inserting Header into Image...rm: cannot remove `new-md5sum': No such file or directory
Done
Re-Packaging Image into DFI File...Done

It appears the new-md5sum file is locked and I cant do anything with it. I assume that the script has a problem trying to access it I am using Ubuntu 11.10 in VMware. Any help to try and fix this would be much appreciated as I know very little about Linux. Thanks.
# 2  
Old 01-19-2012
The error means exactly what it says it does: "No such file or directory". There's no file named 'header' in whatever directory you're in. If you want one, you'll have to put one in there.

The new-md5sum file is not "locked". Linux/UNIX will actually allow you delete files that are open, so whether it's in use is irrelevant. The error means exactly what it says it does, "no such file or directory". Whatever you're running simply can't find it. Maybe it's not running in the same place you put the file?

Where does that 'rm' message come from, anyway? That's not part of the script you posted.
# 3  
Old 01-19-2012
These are the files Im working with that Ive added as attachments. This is the terminal printout after running DFI.sh. Original.DFI is the Expressgate SSD file.
philipbroom@ubuntu:~$ su root
Password:
root@ubuntu:/home/philipbroom# cd Desktop
root@ubuntu:/home/philipbroom/Desktop# sudo bash DFI.sh Original.DFI
DVM-Version.exe Detected
DVM-Header.exe Detected
Would you like to extract the original SQX files for modification? [y/n]:n
Would you like to keep a copy of the new IMG file? [y/n]:n
Processing File [Original.DFI]:

Copying DFI File [DFIOriginal.IMG.gz]...Done
Extracting DFI File [DFIOriginal.IMG]...Done
Removing Header [DFIHeader]...
32+0 records in
32+0 records out
32 bytes (32 B) copied, 0.000544509 s, 58.8 kB/s
Done
Extracting IMG File From Archive [DFIImage.IMG]...
5596320+0 records in
5596320+0 records out
268623360 bytes (269 MB) copied, 72.8172 s, 3.7 MB/s
Done
Removing Extracted Archive [DFIOriginal.IMG]...Done

Creating Working Directories
[/home/Splashtop/image]
[/home/Splashtop/extracted-image]
Checking to make sure that working directories are not in use
umount: /home/Splashtop/image: not mounted
Mounting Image [DFIImage.IMG]
Image Mounted

The DFI File has been successfully extracted!
You can edit the contents of the image by doing the following:

a) Change files in the directory you want to edit.
b) Create new packages by creating a new folder with the correct
package name and contents.
c) Type "exit" when done to apply changes.

Current Directory is: /home/Splashtop/extracted-image
root@ubuntu:/home/Splashtop/extracted-image# exit
exit
Recompressing SQX Files
va-customres.sqx
Parallel mksquashfs: Using 3 processors
Creating little endian 3.1 filesystem on /home/Splashtop/extracted-image/va-customres.sqx, block size 131072.
[===================================================================|] 4/4 100%
Exportable Little endian filesystem, data block size 131072, compressed data, compressed metadata, compressed fragments, duplicates are removed
Filesystem size 0.75 Kbytes (0.00 Mbytes)
69.66% of uncompressed filesystem size (1.08 Kbytes)
Inode table size 134 bytes (0.13 Kbytes)
49.63% of uncompressed inode table size (270 bytes)
Directory table size 142 bytes (0.14 Kbytes)
83.53% of uncompressed directory table size (170 bytes)
Number of duplicate files found 0
Number of inodes 9
Number of files 4
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 5
Number of uids 1
philipbroom (1000)
Number of gids 0
Copying new SQX Files to image
- va-customres.sqx...Done
- va-term.sqx...Done

File Integrity Checking
It is recommended that you patch the version file, this will enable file intergity checking on all files that you have added as well as allowing you to modify original files without causing SplashTop to fail.

Would you like to patch the version file? [y/n]: y

Patching Version file to prevent MD5 check...
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v2.0.50727
DeviceVM SplashTop Version File Generator
Source Directory: /home/Splashtop/image
Target File: /home/Splashtop/image/version

Generating Header

Generating File Entries
10000010.bin
10000010.idx
10000100.bin
10000100.idx
10000110.bin
10000110.idx
20000010.bin
20000010.idx
20000110.bin
20000110.idx
CE.CEX
CEFULL
bs-00-boottime.sqx
bs-apache.sqx
bs-boxtool.sqx
bs-font1.sqx
bs-gtk.sqx
bs-kde.sqx
bs-locale.sqx
bs-persist.sqx
bs-php5.sqx
bs-pyeng.sqx
bs-scim.sqx
bs-tinyx.sqx
kernel.bin
skin0000.bin
skin0000.idx
skin0001.bin
skin0001.idx
skin0002.bin
skin0002.idx
skin0003.bin
skin0003.idx
skin0004.bin
skin0004.idx
skin0005.bin
skin0005.idx
skin0006.bin
skin0006.idx
splash.top
user-000.dat
user-000.dat.date
user-000.dat.md5
user-001.dat
user-001.dat.date
user-001.dat.md5
va-915resolution.sqx
va-aboutbox.sqx
va-asusutility.sqx
va-automount.sqx
va-config.sqx
va-customres.sqx
va-fileaccess.sqx
va-firefox.sqx
va-fsearch.sqx
va-help.sqx
va-langpack1.config.sqx
va-langpack1.fileaccess.sqx
va-langpack1.firefox.sqx
va-langpack1.pidgin.sqx
va-langpack1.skype.sqx
va-onlinegames.sqx
va-photo.sqx
va-pidgin.help.sqx
va-pidgin.sqx
va-prefs.sqx
va-skype.sqx
va-term.sqx
va-theme-bioblu.sqx
va-theme-eeeboxbioblu.sqx
va-theme-mirage.sqx
va-zenv.sqx
version
versionBackup
Complete
Done
Unmounting Image [/home/Splashtop/image]...umount: /home/Splashtop/image: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Done
Removing Working Directory [/home/Splashtop/extracted-image]...Done
Creating Updated Header File
DeviceVM SplashTop Header File Generator
Target File: DFIImage.IMG

Generating Header
Generating MD5SUM
Complete
Inserting Header into Image...rm: cannot remove `new-md5sum': No such file or directory
Done
Re-Packaging Image into DFI File...Done
Granting All Users Permissions on new DFI...Done
Removing Old Image Parts...Done
Unmounting Image [/home/Splashtop/image]...Done
Removing Image Directory [/home/Splashtop/image]...Done

################
# Complete #
################
root@ubuntu:/home/philipbroom/Desktop#

If the header is missing, I assume there is a problem with DVM-Header.exe ? Anyway Ive spent about 20hrs trying to sort but enough is enough. Thanks anyway.
This User Gave Thanks to r1speedyrider For This Post:
# 4  
Old 01-19-2012
Does this dvm program generate files? perhaps it's not really called 'header'.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem of encrypt openssl RC4

Hi Guys sorry about post the code in portuguese but now i fix almost parts of code. now i can encryped and decryped the files but have a small problem. When not writte nathing generate automatically a random cypher but after the value of this cypher not appear igual than variable $saved_key. And... (2 Replies)
Discussion started by: Xremix30
2 Replies

2. Shell Programming and Scripting

Openssl scripting problem

im trying to make sure the openssl password does not show up in the output of ps. so i'm trying to do something like this: MAST=yup echo "U2FsdGVkX19wH9LrQhuRZes45BM9rfiRpdhTCi+gLls=" | openssl <<HERE 2>&1 >/dev/null aes-128-cbc -a -d -salt -k "${MAST}" HERE But this isn't working.. I... (10 Replies)
Discussion started by: SkySmart
10 Replies

3. Solaris

Solaris v Ubuntu using OpenSSL paste problem

Hello, I hope this means something to someone. I have an odd problem that just started happening recently. I am not the system admin, so I don't have full info on any changes to the system lately. Except that I did upgrade OpenSSL to version 1.0.1.c from 1.0.0j. Anyway, I am trying to... (4 Replies)
Discussion started by: jonycp
4 Replies

4. UNIX for Dummies Questions & Answers

cat to a file but retain header

Hi, Is there a way to write to a txt file each day but retain the header on the file? I'm cat'ing 5 files into one .txt file each day but I want the new data to be written after the first 2 lines which are: Progname Size Date Owner ---------------------------- Basically I want my new... (4 Replies)
Discussion started by: Grueben
4 Replies

5. Shell Programming and Scripting

Problem with cat

Hey all this is probably something simple but not sure why I am getting this error. Any help is appreciated. Expected output: $ ./ex_01.ksh word1 word2 word3 word4 arguments: word1 word2 word3 word4 Number of arguments: 4 what I am getting: ./ex_01.ksh word1 word2 word3 word4 cat:... (3 Replies)
Discussion started by: linuxn00b
3 Replies

6. Solaris

NRPE Compiling problem with OpenSSL 1.0

I am trying to compile nrpe 2.12 against openssl 1.0 on Solaris 10 however I am getting core dumps for some reason. Anyone know a way to fix this? Here is the output of make: bash-3.00# make all cd ./src/; make ; cd .. gcc -g -fPIC -Wall -O2 -I/usr/local/ssl/include... (0 Replies)
Discussion started by: _JPL_
0 Replies

7. Shell Programming and Scripting

Problem with cat

I am trying to use the following code: cat *.txt > OutPutFile.txt Using files with a expression in one single line that always end with " ; " something like this: Block1.txt Block2.txt Block3.txt The expected result should be something like this: OutPutFile.txt: My code works OK in this... (4 Replies)
Discussion started by: Xterra
4 Replies

8. Shell Programming and Scripting

cat problem

Hello again; I have a file in this format ./this is/first/1 ./this is/second/2 ./this is/third/3 and i am using this file in a for loop with cat command like this for i in `cat directory.txt` do .......... done Bu there is a problem because my directory is "this is" but... (7 Replies)
Discussion started by: redbeard_06
7 Replies

9. UNIX for Advanced & Expert Users

solaris 9 openssl make problem with ld

i've seen a few posts regarding this issue, and i've tried the resolutions, but i keep running into the same problem. i'm trying to compile OpenSSL with the use of rsaref-2.0 (i'm running through this tutorial... (1 Reply)
Discussion started by: xyyz
1 Replies

10. UNIX for Advanced & Expert Users

Problem with cat

On Solaris 5.8 in ksh, I have a sample.txt with contents A 105 305 B 205 405 C 100 198 ....................... when I do a cat sample.txt the O/P is exactly as above but when I do a echo `cat sample.txt` the O/P changes to A 105 305 B 205 405 C 100 198........... Everything is... (3 Replies)
Discussion started by: macrulez
3 Replies
Login or Register to Ask a Question