Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a problem with open an JPG (or even TIF) file on Windows Server 2003.
No program want to open a picture.
I try to use Windows Preview, MS Paint and event Paint.NET.
Thad "bad" files are generated by OpenText OCR software.
When I copy that "bad" file to my machine, all works fine.
Then I resave image on my computer and put back to the Windows Server 2003 - all works!
All seems that such format is not supported by Windows Server 2003, but why?
Can anyone help?
Message form MSPaint:
Paint
C:\Temp\output.jpg
Paint cannot read this file.
This is not a valid bitmap file, or its format is not currently supported.
OK
Finally I found that there are some header added to JPEG file before JPEG content and terminator added after JPEG content. It can be seen through using Hex editor and comparing with regular JPEG file.
Solution is to keep content between two JPEG markers 0xFFD8 and 0xFFD9.
Useful source about JPEG format:
http://www.media.mit.edu/pia/Research/deepview/exif.html
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Does anyone know how to convert existing XLS files to either CSV or XLSX format using VBA or Powershell on a Windows Server that does not have Office installed on it?
Links and code examples would be appreciated.
I'm not sure I see the value in converting XLS to XLSX as both are usable by the same applications.
To convert XLS to CSV without a dependency upon Excel, check out the ImportExcel module.
Import-Excel -path PATH_TO_EXCELFILE | export-csv -notypeinfo -path PATH_TO_CSVFILE may be all you need. I'm away from a Windows machine at the moment so I can't test that but it'll get you started.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I have an Excel file, but without extension (or the extension cannot be trusted) and I want to detect whether the file is in XLS or XLSX format. How could one do that in Linux?
The XLSX is actually a zip archive, which means doing a
file excel-file
would return for XLSX something like
Zip archive data, at least v2.0 to extract Zip archive data, at least v2.0 to extract
and for XLS something like
Composite Document File V2 Document, No summary info
Of course in Windows one could simply open the XLSX file with an unarchiver.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
An excel file exists on a network that can be accessed by several users.
However, after some investigation it was found that some users open the file as read-only.
I'm opening the file with VBA and workBook.Open(). This routine has a read-only property, but even explicitly sending this parameter as false, the file still opens as read only. When users who experienced this bug were asked to open the file straight from the network, the file opens as read only, despite being fine for other users. Additionally, permission rights to the folder has been ruled out as the cause.
Does macro security prevent a file from being opened normally? What else can cause a file to open as read-only?
More Details:
Windows 7
Excel 2007
.xls File Type
In Save As options/Tools/general Options ,there is a read-only recommended option, it can be.
[]'s
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I originally was using WinZip15 to create .ZIP files with AES256 which we later package into .EXE files using WinZip's self extracting tool (since we can't be sure the people we are giving the archives to will have a zip utility that can handle AES-256 ZIP archives).
I started using 7Zip's command line utility to package the ZIP files using
7za a -y -tzip -ptestabc123 -mem=AES256 C:\helloworld.zip C:\test\
Is there anyway to tell if it actually used AES256 to encrypt the archive? It clearly has a password, but other than that it seems difficult to determine. When I created AES256 archives using WinZip15 "View in explorer" did not work, which I presume is normal. When I create archives using 7za (with the -mem=AES256 switch), windows explorer CAN open the zip archive which I find strange.
I don't know about 7zip, but you can create a self-extracting EXE that uses AES56, using DotNetZip's command line tools.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is there any way that I can embed a .exe file in a .pdf, .doc, .xls, or .ppt file in such a way that upon opening the containing file, the document processor will run the .exe automatically without the user intentionally executing it?
Yes, this is totally possible and pretty easy to accomplish - so long as you have an active exploit in the PDF viewer. Check out one of the many Adobe Acrobat Exploits in the Metasploit framework. Next you can use a download+exec shellcode to download and execute your payload, err I mean ".exe".
You can embed files with EXE or any other format. However, the ability to have the EXE run automatically depends on the viewer application and its security settings. This PDF feature has been exploited by many malware. So, there is no guarantee that it will work on all end-user systems. Be warned that if you make this feature a part of some commercial application, then security software will soon flag it as a malware, which can adversly affect your company's reputation.
Yes. Besides using an exploit, you can just paste the file in using Acrobat Professional. Acrobat allows you to add arbitrary attachments these days.
If you make your PDF files with pdflatex, you can embed any file using the embedfile package. I use this frequently to add all kinds of files to PDF files. They show up as attachments.
\usepackage{embedfile}
\embedfile{my-wonderful-file.exe}
You can also use the Acrobat GUI to do it.
In short, no. These file formats have no provision for embedding a Win32 PE executable inside of them.
For the Office files, you could use VBA to write a script that runs when the document is opened.