English 中文(简体)
如何发送包含可执行文件的压缩归档, 以便 Google 的附件过滤器不会拒绝它 [关闭]
原标题:How to send a compressed archive that contains executables so that Google s attachment filter won t reject it [closed]

这个问题似乎与 < a href=" "/help/on-topic" > > 特定编程问题、软件算法或程序员主要使用的软件工具 无关。如果你认为这个问题在上是议题, https://stackchange.com/sites>>another Stack Exchange网站 上, 您可以留下评论来解释问题在哪里可以回答。

Closed 10 years ago.

我有一个目录,我想压缩它 通过电子邮件发送, 我试过这个:

tar -cvf filename.tar.gz directory_to_compress/

但当我试图通过电子邮件发送时,谷歌说:

filename.tar.gz contains an executable file. For security reasons, Gmail does not allow you to send this type of file.

如何从命令行将目录压缩为 tar.gz 文件?

最佳回答
tar -cvzf filename.tar.gz directory_to_compress/

多数 tar 命令有一个 >z 选项来创建 gzip 版本。

虽然在我看来问题在于如何绕过Google。 我不确定重新命名你的输出文件是否会骗过Google,但你可以试试。

tar -cvzf filename.bla directory_to_compress/

然后发送 filename.bla - 内容将是一个已拉链的焦油, 因此在另一端可以像往常一样检索 。

问题回答

To bypass google s check, which is what you really want, simply remove the extensions from the file when you send it, and add them back after you download it. For example:

  • tar czvf file.tar.gz directory
  • mv file.tar.gz filetargz
  • [send filetargz via gmail]
  • [download filetargz]
  • [rename filetargz to file.tar.gz and open]

绕过谷歌检查的另一个简单方法是使用另一种压缩算法,使用焦油,如bz2:

tar -cvjf my.tar.bz2 dir/

请注意,j (用于 bz2 压缩) 是在以上而不是z (gzip 压缩) 。

尝试此 :

tar -czf my.tar.gz dir/

您确定您没有压缩一些. exe 文件或其它东西吗? 也许问题不在于电压缩,而是在于您压缩的文件?





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签