Yahoo mail blocked me from sending a program I wrote, what can I do?

  • Thread starter yungman
  • Start date
  • Tags
    Program
In summary, a program that contains executable content can be blocked from being sent through email. There are a few options available, but the most reliable is to post it to a shared folder and give access to that folder to the person you want to get the file.
  • #1
yungman
5,708
240
I wrote a small program that I want to email to someone, it got blocked siting it contain potential security issue! What can I do, I am sure people send .exe by email, or else how can programmers work at home! Please advice.

Thanks
 
Computer science news on Phys.org
  • #2
Yeah, my work e-mail blocks all *.exe, *.bat, *.scr, and other executable files. Sometimes you can just change the suffix to *.bin or something, and sometimes that works. But not always. Even putting the offending file in a zip file usually doesn't help, but you might try changing the suffix and putting it in a password-protected zip file -- maybe the e-mail server won't be able to check it for executable contents.

One option we use instead is to post it to a OneDrive folder, and give access to that folder to the person you want to get the file. Do you have a OneDrive account?
 
  • Like
Likes yungman
  • #3
It is a security risk - as @berkeman points out. You need to consider that 99.99% of users on the internet are not programmers and could/would double-click an enclosed file that was executable - and effectively lose their computer.

Shared external sites like pastebin or external password protected cloud servers circumvent a lot of the problems. Sandbox computer systems with a proprietary OS/BIOS/platform are used to run scans on newly acquired files - for high security sites. If the code is executable it cannot run in the foreign environment regardless. Executable image files are indentifiable in the first few dozen bytes.
 
  • Like
Likes berkeman
  • #4
Put it on a USB key or SD card and mail it via the post office.
 
  • Like
Likes jim mcnamara
  • #5
Vanadium 50 said:
Put it on a USB key or SD card and mail it via the post office.
https://www.deviantart.com/2dchew/art/Snail-Mail-175713890

1605389104326.png
 
  • #6
But it will get there!

USPS First Class is pretty speedy, even with Covid. (Fewer commercial air flights) They say 1-3 days. Couple bucks for the card/stick, a buck to mail it, and the problem is solved.
 
  • #7
Not if @Borek finds it first! :wink:
 
  • #8
You can try cloud storage like google drive, you can try wetransfer dot com.

If someone is paranoid about their security they won't use USB stick from you (google "USB killer").

Funny thing, The USB Stick Found in the Grass does contain several programs - these are just installation versions of free software that can be downloaded from the web. Technically one can use some of them to analyse stick content, but that wasn't my intent, they are there more to make the stick look like something really used to transfer data between computers. When there is no net access for whatever reason USB stick is sometimes the only way to go.
 
  • Like
Likes berkeman
  • #9
berkeman said:
Yeah, my work e-mail blocks all *.exe, *.bat, *.scr, and other executable files. Sometimes you can just change the suffix to *.bin or something, and sometimes that works. But not always. Even putting the offending file in a zip file usually doesn't help, but you might try changing the suffix and putting it in a password-protected zip file -- maybe the e-mail server won't be able to check it for executable contents.

One option we use instead is to post it to a OneDrive folder, and give access to that folder to the person you want to get the file. Do you have a OneDrive account?
Thanks , wow, I did not know all this! I don't even know what is One Drive, my computer keep asking me on restart, I kept ignoring it. I have to look into this more. Do I have to pay for it?

I tried to change the extension, but it doesn't seems to allow me as there is not extension, it just said it's an application file and when doing rename, it just change the name.
 
  • Like
Likes berkeman
  • #10
yungman said:
Thanks , wow, I did not know all this! I don't even know what is One Drive, my computer keep asking me on restart, I kept ignoring it. I have to look into this more. Do I have to pay for it?

I tried to change the extension, but it doesn't seems to allow me as there is not extension, it just said it's an application file and when doing rename, it just change the name.
Did you try the password protected zip file yet? It that doesn't work, then OneDrive or the other shared options or the snail thing look to be your only options...
 
  • #11
There was a famous case in IBM where a student wrote a Christmas tree program in Rexx and sent it to his fellow students. One of its features was reading your email contacts list and sending it to them.

The cascading resends put IBMs internal world wide network on life support and it had to be shutdown to purge the errant script.

Almost immediately, IBM allowed Rex scripts to be sent but munged the script extention from .exec to .cexe to avoid future executions.

https://en.wikipedia.org/wiki/Christmas_Tree_EXEC

I remember it well.
 
  • Like
Likes berkeman
  • #12
berkeman said:
Did you try the password protected zip file yet? It that doesn't work, then OneDrive or the other shared options or the snail thing look to be your only options...
I looked up how to do password protected, I did it on the zip folder. But I don't have the password. I can open on my computer, but if I send it to someone, how is the other person going to open it?

I don't know how to use One drive yet, I can't even open the pdf file to read the instruction or anything as it complain my adobe cannot open it.

Thanks
 
Last edited:
  • #13
yungman said:
I looked up how to do password protected, I did it on the zip folder. But I don't have the password. I can open on my computer, but if I send it to someone, how is the other person going to open it?

You define the password, how come you selected one but you don't know it?

You protect the zip file, then you can send the password in an email.

Honestly: I would never hire a programmer who doesn't understand such a basic things :frown:
 
  • #14
Borek said:
You define the password, how come you selected one but you don't know it?

You protect the zip file, then you can send the password in an email.

Honestly: I would never hire a programmer who doesn't understand such a basic things :frown:
I am not a programmer and I am not particularly good with computers, this is all new to me. I just spent 4 months learning C++ only and wrote a program and try to send it to my grandson.

During the process of doing the password protect, it never ask me to set up a password. To be more specific, I went online to learn how to do it, it just right click folder, properties, advance and check the Encrypt contents to secure data, ok and apply. That's it, never ask me anything.
 
  • #15
OK, I misread your opening post, I thought you were sending exe to a customer.

You are mistaking encrypting data on disk with protecting a zip file with password, these are two completely different things.

Google how to create a zip file. Zip file can be (doesn't have to be) protected with a password that you enter while creating it. That will be something you can send to someone and only people knowing password will be able to open.
 
  • Like
Likes yungman
  • #16
The trick is to zip the files you want to send and apply a password to the zip.

send the zip in one email or via a cloud service as zips over several megs may not be spendable by your email service. I think for google it’s 20 megs. Google will let you send a couple of pics but not over some internal meg limit Which isn’t well advertised.

when you send the password, send it in a separate email where you don’t use the password ie use pswd or p*ssw*rd or something like that so it’s not easily searchable.

to further protect it, you could send part of the password in one email and then call to provide the rest or even use a different email account when sending the password depending on how important protection is.
 
  • Like
Likes yungman and berkeman
  • #17
Sorry I did not come back till now, internet was down until now, ATT had problem in the whole area.

Can anyone suggest a zip program that has password capability? I am using 7-zip and I don't see an option of putting password. Sorry I am not very knowledgeable in all these, just trying not to be obsoleted like other senior citizens.

My program is only 32KB, so size is not an issue!. This is just a Directory program with name sorting just for practice using Class in C++, just want to email to my grandson(3rd yr CS major) what grandpa learned in 4 months. It's not any professional program.

thanks
 
  • #19
jedishrfu said:
Thanks

I did not know to use "add to archive", I always use Add to "name.zip".

But sadly yahoo mail still refuse to send it out. But thanks for the advice. I learn something.
 
  • #20
Is it too big? or just the name?

Perhaps try an alternate file extension like rename it to .piz or .dat and see if it accepts it.

You can then have your friend rename it back to zip and then decompress it.
 
  • Like
Likes yungman
  • #21
jedishrfu said:
Is it too big? or just the name?

Perhaps try an alternate file extension like rename it to .piz or .dat and see if it accepts it.

You can then have your friend rename it back to zip and then decompress it.
Ha ha, no luck. I change to .doc and still got rejected.

No, the file is only 32K size to start. It's a really simple program, I am proud of it for only started studying for 4 months, but it's child's play for you guys!

Thanks
 
  • #22
yungman said:
But sadly yahoo mail still refuse to send it out. But thanks for the advice. I learn something.
Wow, you have the file in a password-protected ZIP file and it still can tell that it's an executable? Must be some security feature of ZIP files maybe.

Did you try renaming the file to *.bin instead? Also change the filename, as your e-mail server may be watching for you to try to send it with an altered suffix.

Change the filename to whatever, change the extension to .bin, ZIP it up with a password, and try that?
 
  • Like
Likes yungman
  • #23
berkeman said:
Wow, you have the file in a password-protected ZIP file and it still can tell that it's an executable? Must be some security feature of ZIP files maybe.

Did you try renaming the file to *.bin instead? Also change the filename, as your e-mail server may be watching for you to try to send it with an altered suffix.

Change the filename to whatever, change the extension to .bin, ZIP it up with a password, and try that?
I actually use two different yahoo mail, one with Chrome and one with Firefox and of different user names! I'll try .bin next.

Thanks
 
  • #24
How do you professional programmers sent files? They are known to work at home particularly now, you must be sending programs back and fore to the company and to others. I thought this must be so so common thing to do!
 
  • #25
yungman said:
How do you professional programmers sent files? They are known to work at home particularly now, you must be sending programs back and fore to the company and to others. I thought this must be so so common thing to do!
Check it into BitBucket via VPN. Release final versions in Arena with ECOs via VPN. Post shared copies on shared drives on internal company servers via VPN from home.

(Or use the OneDrive trick that I suggested earlier) :wink:
 
  • Like
Likes pbuk
  • #26
berkeman said:
Wow, you have the file in a password-protected ZIP file and it still can tell that it's an executable? Must be some security feature of ZIP files maybe.

Did you try renaming the file to *.bin instead? Also change the filename, as your e-mail server may be watching for you to try to send it with an altered suffix.

Change the filename to whatever, change the extension to .bin, ZIP it up with a password, and try that?
No, Yahoo like most email providers simply rejects all password protected zip files. If it can't scan the file to see that it is likely not to be malware it will reject it. Changing the extension won't help.

Even if you do find a way to send it, it will almost certainly be caught by the receiving email server's malware filter.

Use OneDrive.
 
  • Like
Likes yungman and berkeman
  • #28
You could use http://www.nirsoft.net/utils/xorfiles.html
It XORs two files, saving the result in a third file. For the second file, you can use any file of a non-blocked type, and of a length that is equal to or greater than that of the .exe file, e.g. a .jpg file.

Procedure:

download the zip file from http://www.nirsoft.net/utils/xorfiles.html
extract the zip file
then into the directory to which you've extracted the file:
copy your program.exe file
copy some other file of non-blocked type and of equal or greater length, e.g. image.jpg​
run xorfile.exe
in the popup box enter:
Filename 1: program.exe
Filename 2: image.jpg
Destination: program.dat​
send:
attachments:
program.dat
image.jpg​
the following instructions:
download the zip file from http://www.nirsoft.net/utils/xorfiles.html
extract the zip file
download the 2 attached files into the directory to which you've extracted the file
run xorfile.exe
in the popup box enter:
Filename 1: program.dat
Filename 2: image.jpg
Destination: program.exe​

Your recipient will then have a copy of your program.exe file.​
 
  • Like
Likes yungman
  • #29
Is now the time to point out that if the program were mailed on Saturday the recipient would be getting it around now? Sometimes low tech is best.
 
  • Haha
Likes jedishrfu
  • #30
I zip the exe and use the free sendspace.com website to send it. The receiver must be willing to accept the file download by clicking a link in an email from sendspace.com. Useful both for exe file transfer and very big zip files.
 
  • Informative
  • Like
Likes berkeman and sysprog
  • #31
Vanadium 50 said:
Is now the time to point out that if the program were mailed on Saturday the recipient would be getting it around now? Sometimes low tech is best.
I think that having a way to email files without the email provider snooping their contents and blocking the ones deemed to be possibly dangerous is useful.

USPS small package service is not an acceptable substitute for being able to send program files via email.

Back when I could just rename .zip or .exe file extensions, e.g. to .zip.dat or .exe.remove-this-extension and send them, I didn't mind gmail blocking files the extensions of which rendered them executable, but I think that if a recipient has to manually rename a file at the extension level (and go past the usability warning prompt for doing that) to get it to be executable or otherwise potentially dangerous, that's a sufficient safety mechanism against inadvertent or casual opening of a harmful email-attached file.
 
Last edited:
  • #32
sysprog said:
You could use http://www.nirsoft.net/utils/xorfiles.html
It XORs two files, saving the result in a third file. For the second file, you can use any file of a non-blocked type, and of a length that is equal to or greater than that of the .exe file, e.g. a .jpg file.
...
Your recipient will then have a copy of your program.exe file.
That's only going to work if the munged .jpg file still parses as a .jpg otherwise any intelligent malware filter is going to see what you are trying to do.

The only way I know of to reliably send arbitrary binary files via email is by manually converting to and from hex at each end and sending as a text file.

But nobody sends exe files by email anyway, there are many ways you can put this on t'internet for downloading via either a protected or public link: OneDrive, Dropbox, attached to a Wordpress.org blog, GitHub releases...
 
  • #33
sysprog said:
USPS small package service is not an acceptable substitute for being able to send program files via email.

I was actually thinking first class mail. The point is to get some code to the guy's grandson. And we're talking about jpeg steganography?
 
  • #34
Vanadium 50 said:
Is now the time to point out that if the program were mailed on Saturday the recipient would be getting it around now? Sometimes low tech is best.

There is a great story about TIme magazine shipping their content back and forth via courier to Hong Kong and New York for their Far East edition using a disk pack in the 1970's. A disk pack was a portable (it had a handle) magnetic storage device that weighed 10 lbs rather like a USB stick today.

f8f4a778892d5f9a83c15bfc17c0b95a.jpg


Mgmt decided to speed up the process by using a satellite connection. However, the slow speed and error correction took more time than it did to just fly the courier to Hong Kong and back weekly and so they reluctantly reinstated the courier for a few more years.
 
  • #35
pbuk said:
That's only going to work if the munged .jpg file still parses as a .jpg otherwise any intelligent malware filter is going to see what you are trying to do.
I just tried it and it worked ##-## I ran the procedure on everything.exe (a lightweight and fast directory search utility available at https://www.voidtools.com/downloads/ ##-## I use the portable version) with a pdf as the mask file and the destination file with a .dat extension. The filters look for 'signature' byte patterns to detect known possibly-dangerous file types; they don't reject 'bit soup' files.
The only way I know of to reliably send arbitrary binary files via email is by manually converting to and from hex at each end and sending as a text file.
That would work, but it's not the only way. You can use base64 encoding, for example, and the method decribed in my post #28 works fine.
But nobody sends exe files by email anyway, there are many ways you can put this on t'internet for downloading via either a protected or public link: OneDrive, Dropbox, attached to a Wordpress.org blog, GitHub releases...
I send .exe files now and then. For any non-third-party file, including .exe files, I normally would rather send an attachment than a link. I use google drive only when a file is too large for gmail or the number of recipients is more than a few.
 
Last edited:
<h2>1. Why did Yahoo mail block me from sending a program I wrote?</h2><p>Yahoo mail has strict security measures in place to protect its users from potential threats such as viruses and malware. If your program contains suspicious code or attachments, it may trigger the automatic blocking system.</p><h2>2. Can I still send my program through Yahoo mail?</h2><p>It depends on the reason for the block. If your program is flagged as a potential threat, it is unlikely that you will be able to send it through Yahoo mail. However, if the block was due to a technical issue, you may be able to send it after resolving the issue.</p><h2>3. What should I do if I need to send my program urgently?</h2><p>If you need to send your program urgently, you can try using a different email service or sending it through a file-sharing platform. Alternatively, you can contact Yahoo support for assistance in resolving the block.</p><h2>4. How can I prevent my programs from being blocked in the future?</h2><p>To prevent your programs from being blocked in the future, make sure to follow Yahoo's guidelines for sending attachments. This includes avoiding suspicious file types and compressing large files before sending them.</p><h2>5. Is there a way to appeal the block and have my program sent through Yahoo mail?</h2><p>Yes, you can contact Yahoo support and explain the situation. They may be able to review the block and allow you to send your program if it is deemed safe. However, there is no guarantee that the block will be lifted.</p>

1. Why did Yahoo mail block me from sending a program I wrote?

Yahoo mail has strict security measures in place to protect its users from potential threats such as viruses and malware. If your program contains suspicious code or attachments, it may trigger the automatic blocking system.

2. Can I still send my program through Yahoo mail?

It depends on the reason for the block. If your program is flagged as a potential threat, it is unlikely that you will be able to send it through Yahoo mail. However, if the block was due to a technical issue, you may be able to send it after resolving the issue.

3. What should I do if I need to send my program urgently?

If you need to send your program urgently, you can try using a different email service or sending it through a file-sharing platform. Alternatively, you can contact Yahoo support for assistance in resolving the block.

4. How can I prevent my programs from being blocked in the future?

To prevent your programs from being blocked in the future, make sure to follow Yahoo's guidelines for sending attachments. This includes avoiding suspicious file types and compressing large files before sending them.

5. Is there a way to appeal the block and have my program sent through Yahoo mail?

Yes, you can contact Yahoo support and explain the situation. They may be able to review the block and allow you to send your program if it is deemed safe. However, there is no guarantee that the block will be lifted.

Similar threads

Replies
12
Views
2K
  • Computing and Technology
Replies
15
Views
980
  • Computing and Technology
Replies
5
Views
1K
  • Computing and Technology
Replies
17
Views
2K
Replies
40
Views
2K
  • STEM Academic Advising
Replies
1
Views
722
  • STEM Academic Advising
Replies
8
Views
1K
  • Programming and Computer Science
2
Replies
49
Views
3K
  • Programming and Computer Science
Replies
15
Views
1K
  • Computing and Technology
Replies
3
Views
1K
Back
Top