LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2005, 06:48 AM   #1
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Rep: Reputation: 31
Auto MD5 check program


I don't know if there's already a way to do this but I've written a tiny python program to check md5sums. If people like it I'll probably expand it to sha1 as well.

Last edited by APB_4; 03-03-2005 at 10:03 AM.
 
Old 02-27-2005, 07:28 AM   #2
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31
Anybody got anything to say about this? If somebody thinks it's worth hosting I could make a binary for people who don't have python. Oh yeah if any noobs don't know how to run it here goes.
1. Open a text editor and copy the code into it.
2. Save it
3. Now either set it to run as an executable or go into a shell and type
"python /where/you/put/it"
4. Enter the filename with the directory if the file you want to check is not in the same directory. Press enter.
5. Enter the MD5 sum without the " program" bit. eg. "8d727ffc6ed3dd329ddbf787384f8a25". Press enter.
6. If they match you'll get "Sums OK" if they don't "Sums are not the same!" will be displayed.
 
Old 02-27-2005, 10:57 AM   #3
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31

Last edited by APB_4; 02-27-2005 at 01:56 PM.
 
Old 02-27-2005, 02:00 PM   #4
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31
None of you 43 people have anything to say about this! No better way to do it, or existing way to do it. Or whether it worked! Anything? Has anybody even tried it?
 
Old 02-27-2005, 03:14 PM   #5
ciyan
LQ Newbie
 
Registered: Feb 2005
Posts: 13

Rep: Reputation: 0
seems to work well. as its the i only md5 prog i know, i cant compare it but it seems good.well ill be using it so thanks and good job!
 
Old 02-27-2005, 03:20 PM   #6
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31
Smile

Thanks a lot ciyan I'll see what I can do about sha sums as well and post that later.
 
Old 02-27-2005, 03:22 PM   #7
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
There is a program called CalcChecksum.

http://calcchecksum.sourceforge.net/

But theres always room for competition.
 
Old 02-27-2005, 04:08 PM   #8
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31
Ye but I think I'll keep this command line based so it's not directly competing
 
Old 02-28-2005, 08:19 AM   #9
qtbb
LQ Newbie
 
Registered: Feb 2005
Location: UK
Distribution: Ubuntu Debian
Posts: 5

Rep: Reputation: 0
i heard python has md5 module you can use.

by the way, just think, try enter something like this "********; rm -rf /" instead of md5 sums, especially when you are root.

Last edited by qtbb; 02-28-2005 at 08:20 AM.
 
Old 02-28-2005, 01:58 PM   #10
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31
Oh yeah delete everything great idea qtbb!

Last edited by APB_4; 02-28-2005 at 03:50 PM.
 
Old 02-28-2005, 02:05 PM   #11
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
Quote:
Originally posted by APB_4
Oh yeah delete everything great idea qtbb! Nob!
I think he was pointing out your script is unsafe in it's present form. If you want others to use it you should add some checking to make sure, for example, the MD5 sum entered is in fact just an alphanumeric string.
 
Old 02-28-2005, 02:07 PM   #12
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31
why does that matter? It'll just fail
 
Old 02-28-2005, 02:55 PM   #13
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
Because if someone entered what qtbb suggested whatever was entered after the semicolon could be executed.
 
Old 02-28-2005, 03:06 PM   #14
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Original Poster
Rep: Reputation: 31
Ye maybe. If I hadn't used raw_input which takes anything entered as a string.
 
Old 02-28-2005, 03:13 PM   #15
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Debian comes with "debsums"....works quite thoroughly.
Thanx for the lil script though....good backup.

http://www.zevils.com/cgi-bin/man/man2html?debsums+1
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware md5 check Rojon Slackware 4 11-15-2005 01:18 PM
FC4 ISOs failed MD5 check henny Fedora 5 08-17-2005 08:00 AM
MD5, collision and verification program Mr-TY General 1 11-30-2004 08:59 AM
make program to translate md5 mfo6463 Programming 2 04-22-2004 05:29 PM
Hwo do I use MD5 sums to check file downloads? jdruin Linux - General 3 12-01-2003 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration