|
[TOOL] DumpHex - Convert a File to Hex Dump: msg#00076security.securiteam
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - DumpHex - Convert a File to Hex Dump ------------------------------------------------------------------------ SUMMARY DETAILS DumpHex is a tool that converts any binary file into an hex dump and save it into a file. # # DumpHex v1.0 | Reed Arvin reedarvin[at]gmail[dot]com # # Usage: # DumpHex.pl <file name> # DumpHex.pl MyBin.exe # ############################ use strict; my($strInputFile) = $ARGV[0]; my($intByteCount) = ""; my($binBytes) = ""; my($intReadLength) = ""; if ($#ARGV ne "0") { print "DumpHex v1.0 | Reed Arvin reedarvin[at]gmail[dot]com\n"; print "\n"; print "Usage:\n"; print "DumpHex.pl <file name>\n"; print "DumpHex.pl MyBin.exe\n"; exit; } $intReadLength = 16; if (open(INPUTFILE, "< $strInputFile")) { open(OUTPUTFILE, "> $strInputFile.txt"); binmode(INPUTFILE); $intByteCount = 0; while (read(INPUTFILE, $binBytes, $intReadLength)) { print (OUTPUTFILE uc(unpack("H" . ($intReadLength * 2), $binBytes)), "\n"); } close(INPUTFILE); close(OUTPUTFILE); } else { print "ERROR! Cannot open file $strInputFile"; } # Written by Reed Arvin reedarvin[at]gmail[dot]com ADDITIONAL INFORMATION The information has been provided by <mailto:reedarvin@xxxxxxxxx> Reed Arvin. To keep updated with the tool visit the project's homepage at: <http://reedarvin.thearvins.com/tools.html> http://reedarvin.thearvins.com/tools.html ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [UNIX] Lantronix SecureLinx Console Server Information Disclosure: 00076, SecuriTeam |
|---|---|
| Next by Date: | [TOOL] WriteBin - Convert Hex Dump to Binary: 00076, SecuriTeam |
| Previous by Thread: | [UNIX] Lantronix SecureLinx Console Server Information Disclosurei: 00076, SecuriTeam |
| Next by Thread: | [TOOL] WriteBin - Convert Hex Dump to Binary: 00076, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |