无法从其中包含可执行 Jar 的 gmail 下载 Zip 文件
Not able to download Zip file from gmail which contains executable Jar in it
我大约 4 年前收到一封电子邮件,其中的附件中包含 Zip 文件,其中包含可执行的 jar 文件。我想下载那个文件。但是,如今 gmail 不允许发送或接收任何可执行文件。谁能帮助我如何从我的电子邮件中下载该 zip 文件?
1. 下载并安装 python 3.4 (https://www.python.org/downloads/release/python-343/)
2. 打开附件被拦截的邮件。单击 reply
和 select show original
旁边的 arrow
按钮
3. 等待整个页面加载。这可能需要很长时间,具体取决于附件的大小和您的互联网速度。页面完全加载后,保存它。文件名将是 0.txt
。将其保存在没有任何其他文本文件的目录中。
4. 打开python 并复制以下代码。将其保存到与 0.txt
相同的目录中。 运行 双击已保存的 .py
文件的程序。
# Get your files that Gmail block. Warning message:
# "Anti-virus warning - 1 attachment contains a virus or blocked file. Downloading this attachment is disabled."
# Based on: http://spapas.github.io/2014/10/23/retrieve-gmail-blocked-attachments/
# Go to your emails, click the arrow button in the top right, "Show original", save to the same directory as this script.
import email
import sys
import os
if __name__ == '__main__':
if len(sys.argv) < 2:
print("Press enter to process all files with .txt extension.")
input()
files = [ f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.txt') ]
else:
files = sys.argv[1:]
print("Files: %s" % ', '.join(files))
print()
for f in files:
msg = email.message_from_file(open(f))
print("Processing %s" % f)
print("Subject: %s" % msg['Subject'])
for pl in msg.get_payload():
fn = pl.get_filename()
if fn:
print("Found %s" % fn)
if os.path.isfile(fn):
print("The file %s already exists! Press enter to overwrite." % fn)
input()
open(fn, 'wb').write(pl.get_payload(decode=True))
print()
您应该会在一段时间后看到您的附件下载到同一目录。
来源- https://gist.github.com/stefansundin/a99bbfb6cda873d14fd2
或者如果你是 PHP 程序员通过邮件菜单选项获取邮件源 "Show original" 复制文件附件 base64 字符串保存到文件例如 test.b64 和:
file_put_contents ('test.rar',base64_decode(file_get_contents('test.b64')));
将常规附件文件保存在 test.rar
最简单的解决方案就是这个,它需要 30 秒才能完成。只需打开 Web 检查器并删除 google 驱动器按钮的 display:none 属性。然后会出现该按钮,您将能够在 Google 驱动器中下载文件。从您的 Google 驱动器,您将能够将文件下载到您的计算机上。
干杯
Proceed at your own risk !!!!
- 在浏览器中打开电子邮件
- 转到回复按钮旁边的箭头,然后按
show original
- 打开新标签后,只需单击 "Download original" 并将文件重命名为
email.eml
!
- 现在您可以使用几乎任何电子邮件客户端(Outlook、thunderbird ....)打开
eml
文件
步骤 1. 如图所示,单击 Show original 选项。单击此选项将打开一个新选项卡,其中包含原始的 MIME 编码邮件。
第 2 步。等待完整页面加载。这可能需要很长时间,具体取决于附件的大小和您的互联网速度。页面完全加载后,复制内容并粘贴到记事本。另存为 0.txt(您可以选择任何名称)。
第 3 步。现在将文件 0.txt 重命名为 0.eml
第 4 步。在 Outlook 或任何电子邮件客户端中打开文件。您将看到带有附件的电子邮件。
这种方式对我有用。
如果您使用的是 smartphone,只需打开电子邮件,保存附件,将您的 smartphone 连接到计算机,打开 smartphone 中的下载文件夹使用 windows 资源管理器并将文件复制到您的桌面。
或者,您也可以将这封电子邮件从您的 smartphone 转发到另一个电子邮件地址并从那里下载。
在 Polymail 等邮件客户端之一上连接您的 gmail,获取您的电子邮件,下载您想要的任何内容:)
- 在浏览器中打开 gmail 电子邮件
- 转到回复按钮旁边的箭头,然后按显示原文
- 下载原件并使用扩展名 .eml 保存
- 在 oulook 中打开它
如果您有智能手机,最简单的方法是在 gmail 应用程序中打开 gmail 并将文件保存到 google 驱动器(在 gmail 应用程序中保存到 google 驱动器是活动的)。返回计算机并打开 google 驱动器并下载所需文件。
您可以从 Android Gmail 或 Inbox 应用程序下载它。如果你想在任何地方访问它,你可以把它放在驱动器中。
Just click forward the email and then click on the composed email
attachment
您的文件将被下载
我发现的最佳方法是下载附件或通过 Gmail 应用程序将其添加到您的驱动器。效果很好。
解决方法:只需通过 gmail android 应用程序访问相同的邮件。您可以下载它。没问题。
打开来自Android
的邮件
--> Go to the specific mail
--> You will find a download option
--> Download the ***.zip/***.rar file
--> Upload it to the google drive
--> Now download it or use USB cable to transfer data to your computer.
对我有用。
谢谢
无需费力。我在浏览器、YouTube 教程和一些文章中苦苦挣扎,但最终我自己的想法奏效了。
我试图下载 sriyog_com.rar 文件,但被 gmail 阻止了。
file blocked by gmail
最好的方法:
在移动应用程序中打开包含被阻止文件的电子邮件。
将出现保存到 Google 驱动器图标
Mobile Phone Screenshot
将文件保存在 Google 驱动器中
File ready to download
现在文件已准备好下载。
注意:它比 eml 文件和其他长脚本更节省时间。
谢谢
通过任何使用 IMAP(也可能是 POP)的电子邮件客户端访问该文件将允许下载该文件。
http://www.barfuhok.com/how-to-download-a-file-with-anti-virus-warning-on-gmail/
方法 1 对我有用“方法 1:保存电子邮件并在 Outlook 中打开它”
下载原始邮件后,我将下载的文件更改为 .eml
例如:original_msg.eml
为了用其他电子邮件客户端打开邮件,文件必须是“.eml”格式。
然后我在 thenderbird 中打开文件,这是一个流行的免费电子邮件客户端。
现在可以下载文件了
就是这样。
希望对您有所帮助。
从 Gmail 解决病毒阻止或可执行文件的五个步骤。
- Select 显示原文
- 下载原件
- 在线搜索 eml reader 或者您可以访问
- 上传下载的 eml 文件(从第 2 点开始)。
您应该可以查看和下载被阻止的附件。
Online EML Reader
Show Original
Download Original
我大约 4 年前收到一封电子邮件,其中的附件中包含 Zip 文件,其中包含可执行的 jar 文件。我想下载那个文件。但是,如今 gmail 不允许发送或接收任何可执行文件。谁能帮助我如何从我的电子邮件中下载该 zip 文件?
1. 下载并安装 python 3.4 (https://www.python.org/downloads/release/python-343/)
2. 打开附件被拦截的邮件。单击 reply
和 select show original
arrow
按钮
3. 等待整个页面加载。这可能需要很长时间,具体取决于附件的大小和您的互联网速度。页面完全加载后,保存它。文件名将是 0.txt
。将其保存在没有任何其他文本文件的目录中。
4. 打开python 并复制以下代码。将其保存到与 0.txt
相同的目录中。 运行 双击已保存的 .py
文件的程序。
# Get your files that Gmail block. Warning message:
# "Anti-virus warning - 1 attachment contains a virus or blocked file. Downloading this attachment is disabled."
# Based on: http://spapas.github.io/2014/10/23/retrieve-gmail-blocked-attachments/
# Go to your emails, click the arrow button in the top right, "Show original", save to the same directory as this script.
import email
import sys
import os
if __name__ == '__main__':
if len(sys.argv) < 2:
print("Press enter to process all files with .txt extension.")
input()
files = [ f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.txt') ]
else:
files = sys.argv[1:]
print("Files: %s" % ', '.join(files))
print()
for f in files:
msg = email.message_from_file(open(f))
print("Processing %s" % f)
print("Subject: %s" % msg['Subject'])
for pl in msg.get_payload():
fn = pl.get_filename()
if fn:
print("Found %s" % fn)
if os.path.isfile(fn):
print("The file %s already exists! Press enter to overwrite." % fn)
input()
open(fn, 'wb').write(pl.get_payload(decode=True))
print()
您应该会在一段时间后看到您的附件下载到同一目录。
来源- https://gist.github.com/stefansundin/a99bbfb6cda873d14fd2
或者如果你是 PHP 程序员通过邮件菜单选项获取邮件源 "Show original" 复制文件附件 base64 字符串保存到文件例如 test.b64 和:
file_put_contents ('test.rar',base64_decode(file_get_contents('test.b64')));
将常规附件文件保存在 test.rar
最简单的解决方案就是这个,它需要 30 秒才能完成。只需打开 Web 检查器并删除 google 驱动器按钮的 display:none 属性。然后会出现该按钮,您将能够在 Google 驱动器中下载文件。从您的 Google 驱动器,您将能够将文件下载到您的计算机上。
干杯
Proceed at your own risk !!!!
- 在浏览器中打开电子邮件
- 转到回复按钮旁边的箭头,然后按
show original
- 打开新标签后,只需单击 "Download original" 并将文件重命名为
email.eml
! - 现在您可以使用几乎任何电子邮件客户端(Outlook、thunderbird ....)打开
eml
文件
步骤 1. 如图所示,单击 Show original 选项。单击此选项将打开一个新选项卡,其中包含原始的 MIME 编码邮件。
第 2 步。等待完整页面加载。这可能需要很长时间,具体取决于附件的大小和您的互联网速度。页面完全加载后,复制内容并粘贴到记事本。另存为 0.txt(您可以选择任何名称)。
第 3 步。现在将文件 0.txt 重命名为 0.eml
第 4 步。在 Outlook 或任何电子邮件客户端中打开文件。您将看到带有附件的电子邮件。
这种方式对我有用。
如果您使用的是 smartphone,只需打开电子邮件,保存附件,将您的 smartphone 连接到计算机,打开 smartphone 中的下载文件夹使用 windows 资源管理器并将文件复制到您的桌面。
或者,您也可以将这封电子邮件从您的 smartphone 转发到另一个电子邮件地址并从那里下载。
在 Polymail 等邮件客户端之一上连接您的 gmail,获取您的电子邮件,下载您想要的任何内容:)
- 在浏览器中打开 gmail 电子邮件
- 转到回复按钮旁边的箭头,然后按显示原文
- 下载原件并使用扩展名 .eml 保存
- 在 oulook 中打开它
如果您有智能手机,最简单的方法是在 gmail 应用程序中打开 gmail 并将文件保存到 google 驱动器(在 gmail 应用程序中保存到 google 驱动器是活动的)。返回计算机并打开 google 驱动器并下载所需文件。
您可以从 Android Gmail 或 Inbox 应用程序下载它。如果你想在任何地方访问它,你可以把它放在驱动器中。
Just click forward the email and then click on the composed email attachment
您的文件将被下载
我发现的最佳方法是下载附件或通过 Gmail 应用程序将其添加到您的驱动器。效果很好。
解决方法:只需通过 gmail android 应用程序访问相同的邮件。您可以下载它。没问题。
打开来自Android
的邮件--> Go to the specific mail
--> You will find a download option
--> Download the ***.zip/***.rar file
--> Upload it to the google drive
--> Now download it or use USB cable to transfer data to your computer.
对我有用。
谢谢
无需费力。我在浏览器、YouTube 教程和一些文章中苦苦挣扎,但最终我自己的想法奏效了。
我试图下载 sriyog_com.rar 文件,但被 gmail 阻止了。
file blocked by gmail
最好的方法:
在移动应用程序中打开包含被阻止文件的电子邮件。 将出现保存到 Google 驱动器图标 Mobile Phone Screenshot 将文件保存在 Google 驱动器中 File ready to download 现在文件已准备好下载。
注意:它比 eml 文件和其他长脚本更节省时间。
谢谢
通过任何使用 IMAP(也可能是 POP)的电子邮件客户端访问该文件将允许下载该文件。
http://www.barfuhok.com/how-to-download-a-file-with-anti-virus-warning-on-gmail/
方法 1 对我有用“方法 1:保存电子邮件并在 Outlook 中打开它”
下载原始邮件后,我将下载的文件更改为 .eml
例如:original_msg.eml
为了用其他电子邮件客户端打开邮件,文件必须是“.eml”格式。
然后我在 thenderbird 中打开文件,这是一个流行的免费电子邮件客户端。
现在可以下载文件了
就是这样。
希望对您有所帮助。
从 Gmail 解决病毒阻止或可执行文件的五个步骤。
- Select 显示原文
- 下载原件
- 在线搜索 eml reader 或者您可以访问
- 上传下载的 eml 文件(从第 2 点开始)。
您应该可以查看和下载被阻止的附件。
Online EML Reader Show Original Download Original