News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

sending .exe files to a gmail recipient

Started by shankle, December 22, 2009, 03:50:51 AM

Previous topic - Next topic

shankle

Can't send .exe attachments to anybody that uses Gmail.
If you rename the file ex:   blah.exe to  blah.rename then attach it to an email
it comes out as blah.rename.exe and gets returned to you.
Zipping it doesn't cut the mustard either.
Nothing is ever easy.
The greatest crime in my country is our Congress

oex

tried rar or some other non zip it might not screw with?
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

farrier

7zip works where zip does not.

www.7-zip.org

hth,

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

Vortex

A bit painful but sometimes I do it : zipped exe file embedded into another zip file.

dedndave

i just send it to their yahoo account   :bg

oex

We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

jj2007

Try replacing 4D5A9000 with 25504446 and send it as PDF. Tell the person at the other end (assuming it's a Masm programmer) to write 4D5A9000 to the file, rename it to *.exe, and you are done :bg

dedndave

hiyas Jochen - sounds like a place for a little application - lol
of course, how will you send them the app

oex

If it's a noob that doesnt know what an .exe is you could be there all christmas  :lol
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

dedndave

lol - just send them a picture of the program running on your machine   :bg

hutch--

A funny approach, a young guy at a university emails be saying his uni forewall blocked the masm32 download so I wrote a small toy in MASM that xorred it to a small pad, converted the result to encrypted data and saved it as a BIN file. Tweaked the masm exe to open the BIN file and xor it against the same pad which then coverted it back to the executable installation.

Went through their firewall fine.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

shankle

I tried using  7-zip. Came back quicker than a whistle.
Zipping it into another zip won't work as It will not accept Zip period.

Need a way in properties  to change the .exe to jps or something.
Then a way to change it back at the other end.
Or get rid of GMAIL :bg
The greatest crime in my country is our Congress

FORTRANS

Hi,

   Well, it depends on how big it is, and how experienced
the recipient is.  And how picky Gmail is of course.

   Prepend a valid image header to the file, and send as
a picture.  Then chop off the header on the other end.

   Convert to hexadecimal and send as a text file.  And
unconvert upon receiving.

   Compress/archive using something Gmail does not care
about.  Obsolete PKARC or Squeeze (SQZ.EXE ?) come to
mind.  Have a pointer to download the program from
Simtel or the like.

   Encrypt as hutch mentioned, and send the decrypter as
a DEBUG script.  The script is plain text, and should go
though in the body of the e-mail.  JJ's suggestion would
work in a similar fashion.

Regards,

Steve

Edit: Edit2:

   PKARC.COM/PKXARC.COM and SQ.EXE/USQ.COM.

jj2007

Quote from: dedndave on December 22, 2009, 09:54:49 AM
hiyas Jochen - sounds like a place for a little application - lol
of course, how will you send them the app

Yeah, that's the real problem :bg
But you could put the app on the web. Like this one, for example. Warning, the source needs a version of MasmBasic that is not yet posted - but the exe works just fine.

Quoteinclude \masm32\MasmBasic\MasmBasic.inc

.data?
NewFile   db MAX_PATH dup(?)

.code
MagicPDF   dd 46445025h   ; PDF%
MagicEXE   dd 00905a4dh   ; MZ

start:
   mov edi, CL$()                     ; get command line
   mov esi, offset MagicPDF
   mov ebx, Mirror$(".pdf")
   .if Instr_(1, edi, ".pdf", 1)            ; Instr: startpos, source, pattern, mode 1=case-insensitive
      mov esi, offset MagicEXE
      mov ebx, Mirror$(".exe")
   .endif
   invoke lstrcpy, offset NewFile, edi
   MsgBox 0, edi, "Adjust this file and rename?", MB_YESNOCANCEL
   .if eax==IDYES
      push esi
      mov esi, offset NewFile
      mov [esi+Len(esi)-4], ebx
      mov dword ptr [esi+Len(esi)], 0
      invoke CopyFile, edi, esi, 0      ; 0=overwrite dest, don't even ask
      .if eax==0
         MsgBox 0, LastError$(), edi, MB_OK
      .endif
      Open "U", #1, esi         ; open file for update
      pop esi
      Print #1:4, esi            ; write 4 bytes to #1
      Close
   .endif
   
Exit

end start

shankle

Thanks for the replies guys.
AND THE ANSWER IS :bg

Zip the file and you get blah.zip.
Go to tools/options and in there take the check mark out of "Hide Extensions".
Mine was checked causing me to get blah.zip.exe.
Then "Rename" blah.zip to blah.zip.rename.
I did this and sent the message and so far it has not come back. Fingers crossed.
The greatest crime in my country is our Congress