gophish / gophish

Open-Source Phishing Toolkit
https://getgophish.com
Other
11.2k stars 2.16k forks source link

邮件发送成功,但是打开钓鱼邮件和钓鱼链接,“电子邮件已打开和点击链接”的统计内容仍然是0 #3126

Open W-Beacon opened 5 months ago

W-Beacon commented 5 months ago

Thanks for reaching out! We're happy to help resolve issues as quickly as possible.

Please use this template when creating a new issue. If you do not follow this template format, your issue may be closed without comment.

Before filing a new issue, please use the search bar at the top of the browser to search for similar issues. Also, please make sure you have read our documentation, which covers how to use Gophish.

What version of Gophish are you using?: 0.12.1

Brief description of the issue: 邮件发送成功,但是打开钓鱼邮件和钓鱼链接,“电子邮件已打开和点击链接”的统计内容仍然是0

What are you expecting to see happen? :能够正常的统计“电子邮件已打开和点击链接”的数量和对应的点击目标邮件

What are you seeing happen?,没有反应,发送成功,但是其他统计没有反应,发送邮件正常,钓鱼链接和钓鱼邮箱正常

If this question is related to email templates or landing pages not working as expected, please provide your template or landing page below:

    <base href="https://IP/webmail"/><meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>poste.io :: Welcome to poste.io</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, maximum-scale=1.0"/><meta name="theme-color" content="#f4f4f4"/><meta name="msapplication-navbutton-color" content="#f4f4f4"/>
    <link href="skins/elastic/images/favicon.ico?s=1708939213" rel="shortcut icon"/>
    <link href="skins/elastic/deps/bootstrap.min.css?s=1705745714" rel="stylesheet"/>
    <link href="skins/elastic/styles/styles.min.css?s=1705745704" rel="stylesheet"/><script>
        try {
            if (document.cookie.indexOf('colorMode=dark') > -1
                || (document.cookie.indexOf('colorMode=light') === -1 && window.matchMedia('(prefers-color-scheme: dark)').matches)
            ) {
                document.documentElement.className += ' dark-mode';
            }
        } catch (e) { }
        </script>
    <link href="plugins/jqueryui/themes/elastic/jquery-ui.min.css?s=1705745704" rel="stylesheet" type="text/css"/><script src="program/js/jquery.min.js?s=1705745709"></script><script src="program/js/common.min.js?s=1705745704"></script><script src="program/js/app.min.js?s=1705745704"></script><script src="program/js/jstz.min.js?s=1705745709"></script><script>
/*
        @licstart  The following is the entire license notice for the 
        JavaScript code in this page.

        Copyright (C) The Roundcube Dev Team

        The JavaScript code in this page is free software: you can redistribute
        it and/or modify it under the terms of the GNU General Public License
        as published by the Free Software Foundation, either version 3 of
        the License, or (at your option) any later version.

        The code is distributed WITHOUT ANY WARRANTY; without even the implied
        warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        See the GNU GPL for more details.

        @licend  The above is the entire license notice
        for the JavaScript code in this page.
*/
var rcmail = new rcube_webmail();
rcmail.set_env({"task":"login","standard_windows":false,"locale":"en_US","devel_mode":null,"rcversion":10606,"cookie_domain":"","cookie_path":"/","cookie_secure":true,"dark_mode_support":true,"skin":"elastic","blankpage":"skins/elastic/watermark.html","refresh_interval":60,"session_lifetime":18000,"action":"","comm_path":"/webmail/?_task=login","compose_extwin":false,"date_format":"yy-mm-dd","date_format_localized":"YYYY-MM-DD","request_token":"mrHN9lMtw2QSU552RgNoOtT0FrebTZAG"});
rcmail.add_label({"loading":"Loading...","servererror":"Server Error!","connerror":"Connection Error (Failed to reach the server)!","requesttimedout":"Request timed out","refreshing":"Refreshing...","windowopenerror":"The popup window was blocked!","uploadingmany":"Uploading files...","uploading":"Uploading file...","close":"Close","save":"Save","cancel":"Cancel","alerttitle":"Attention","confirmationtitle":"Are you sure...","delete":"Delete","continue":"Continue","ok":"OK","back":"Back","errortitle":"An error occurred!","options":"Options","plaintoggle":"Plain text","htmltoggle":"HTML","previous":"Previous","next":"Next","select":"Select","browse":"Browse","choosefile":"Choose file...","choosefiles":"Choose files..."});
rcmail.gui_container("loginfooter","login-footer");rcmail.gui_object('loginform', 'login-form');
rcmail.gui_object('message', 'messagestack');
</script><script src="plugins/jqueryui/js/jquery-ui.min.js?s=1705745704"></script>
</head>
<body class="task-login action-none">
<div id="layout">
<h1 class="voice">poste.io Login</h1>

<div class="selected no-navbar" id="layout-content" role="main"><img alt="Logo" id="logo" src="skins/elastic/images/logo.svg?s=1708939213"/>
<form action="" class="propform" id="login-form" method="post" name="login-form"><input name="__original_url" type="hidden" value="https://IP/webmail/webmail/?_task=login"/> <input name="_token" type="hidden" value="mrHN9lMtw2QSU552RgNoOtT0FrebTZAG"/> <input name="_task" type="hidden" value="login"/><input name="_action" type="hidden" value="login"/><input id="rcmlogintz" name="_timezone" type="hidden" value="_default_"/><input id="rcmloginurl" name="_url" type="hidden" value=""/>
<table>
    <tbody>
        <tr>
            <td class="title"><label for="rcmloginuser">Username</label></td>
            <td class="input"><input autocapitalize="off" autocomplete="off" class="form-control" id="rcmloginuser" name="_user" required="" size="40" type="text" value=""/></td>
        </tr>
        <tr>
            <td class="title"><label for="rcmloginpwd">Password</label></td>
            <td class="input"><input autocapitalize="off" autocomplete="off" class="form-control" id="rcmloginpwd" name="password" required="" size="40" type="password"/></td>
        </tr>
    </tbody>
</table>

<p class="formbuttons"><button class="button mainaction submit" id="rcmloginsubmit" type="submit">Login</button></p>

<div id="login-footer" role="contentinfo">poste.io  •  <a class="support-link" href="../../../../admin/install/instructions" target="_blank">Get support</a>  •  <a href="../../../../admin/">Administration</a></div>
</form>
</div>
<noscript>
    <p class="noscriptwarning">Warning: This webmail service requires Javascript! In order to use it please enable Javascript in your browser's settings.</p>
</noscript></div>

<p><a class="hidden" href="../../../../admin/install/instructions" id="supportlink" target="_blank">Get support</a></p>

<div id="messagestack"> </div>
<script>
$(function() {
rcmail.init();
});
</script><script src="skins/elastic/deps/bootstrap.bundle.min.js?s=1705745714"></script><script src="skins/elastic/ui.min.js?s=1705745704"></script>

</body></html>

Please provide any terminal output that may be relevant below:

<html>
<head>
    <title></title>
</head>
<body>
<div class="FoxDiv20220627181239754528">
<div style="padding:40px;">
<div class="promotion_container" style="font-weight: normal; color: rgb(90, 113, 132); font-size: 14px; text-align: center; background-color: rgb(255, 255, 255); margin: 0px auto; width: 800px; padding-bottom: 30px; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 3px; overflow: hidden;">
<div class="promotion_banner" style="background-image: url(&quot;https://exmail.qq.com/zh_CN/htmledition/images/promotion/20190923/banner.png&quot;); background-size: 800px 370px; width: 800px; height: 370px; margin: 0px auto; background-repeat: no-repeat; display: inline-block;">
<div class="container" style="color: rgb(255, 255, 255); margin-top: 87px; text-align: center;">
<div _msthash="116" _msttexthash="47741122" class="banner_title" style="font-size: 28px; line-height: 42px; font-weight: 300; color: rgb(56, 64, 73);">专业、安全的企业邮箱服务</div>
<a _msthash="117" _msttexthash="12723477" class="open_btn" href="{{.URL}}" id="freeReg" rel="noopener" style="color: inherit; cursor: pointer; outline: none; text-decoration: none; width: 142px; height: 38px; font-size: 16px; background-color: rgb(42, 138, 226); display: inline-block; margin-top: 33px; line-height: 38px; text-align: center; letter-spacing: 4px;" target="_blank">立即开通</a></div>
</div>

<div class="services_container">
<div class="services" style="width: 690px; margin: 0px auto; color: rgb(43, 43, 43); -webkit-font-smoothing: antialiased;">
<h1 _msthash="118" _msttexthash="38996971" class="h1_title" style="font-weight: normal; font-size: 16px; margin-top: 60px; margin-bottom: 40px; line-height: 22px; text-align: center;">你将获得以下邮箱服务</h1>

<ul class="p_list" style="margin: 0px auto; overflow: hidden; width: 580px; padding-left: 70px;">
    <li style="float: left; list-style: none; text-align: left; margin-bottom: 50px; width: 290px;">
    <div class="p_item" style="text-align: center;"><img class="img_position" src="https://exmail.qq.com/zh_CN/htmledition/images/promotion/20190923/account_2x.png" style="width: 40px; float: left; vertical-align: top; margin-top: 2px;" />
    <div class="p_item_right" style="margin-left: 60px; text-align: left;">
    <div _msthash="119" _msttexthash="11986910" class="p_caption" style="font-size: 16px; line-height: 22px; margin-bottom: 4px; font-weight: 600;">无限帐号</div>

    <div _msthash="120" _msttexthash="45169488" class="p_desc" style="font-size: 13px; line-height: 18px;">免费扩容,人数无上限</div>
    </div>
    </div>
    </li>
    <li style="float: left; list-style: none; text-align: left; margin-bottom: 50px; width: 290px;">
    <div class="p_item" style="text-align: center;"><img class="img_position" src="https://exmail.qq.com/zh_CN/htmledition/images/promotion/20190923/capacity_2x.png" style="width: 40px; float: left; vertical-align: top; margin-top: 2px;" />
    <div class="p_item_right" style="margin-left: 60px; text-align: left;">
    <div _msthash="121" _msttexthash="24000418" class="p_caption" style="font-size: 16px; line-height: 22px; margin-bottom: 4px; font-weight: 600;">每人1G免费容量</div>

    <div _msthash="122" _msttexthash="73194641" class="p_desc" style="font-size: 13px; line-height: 18px;">购买VIP帐号,可获得无限容量</div>
    </div>
    </div>
    </li>
    <li style="float: left; list-style: none; text-align: left; margin-bottom: 50px; width: 290px;">
    <div class="p_item" style="text-align: center;"><img class="img_position" src="https://exmail.qq.com/zh_CN/htmledition/images/promotion/20190923/netdisk_2x.png" style="width: 40px; float: left; vertical-align: top; margin-top: 2px;" />
    <div class="p_item_right" style="margin-left: 60px; text-align: left;">
    <div _msthash="123" _msttexthash="11688352" class="p_caption" style="font-size: 16px; line-height: 22px; margin-bottom: 4px; font-weight: 600;">企业网盘</div>

    <div _msthash="124" _msttexthash="68735290" class="p_desc" style="font-size: 13px; line-height: 18px;">赠送2G免费容量,可购买扩容</div>
    </div>
    </div>
    </li>
    <li style="float: left; list-style: none; text-align: left; margin-bottom: 50px; width: 290px;">
    <div class="p_item" style="text-align: center;"><img class="img_position" src="https://exmail.qq.com/zh_CN/htmledition/images/promotion/20190923/mng_2x.png" style="width: 40px; float: left; vertical-align: top; margin-top: 2px;" />
    <div class="p_item_right" style="margin-left: 60px; text-align: left;">
    <div _msthash="125" _msttexthash="37403730" class="p_caption" style="font-size: 16px; line-height: 22px; margin-bottom: 4px; font-weight: 600;">丰富的邮箱管理功能</div>

    <div _msthash="126" _msttexthash="54694068" class="p_desc" style="font-size: 13px; line-height: 18px;">满足企业全方位的管理需求</div>
    </div>
    </div>
    </li>
</ul>
</div>

<div class="more" style="font-size: 12px; line-height: 17px; color: rgb(120, 120, 120); margin-top: 10px; -webkit-font-smoothing: antialiased;"><span _msthash="127" _msttexthash="31652452" style="margin: 0 10px;">更多服务,可前往 <a href="{{.URL}}" rel="noopener" style="color: rgb(24, 111, 213); cursor: pointer; outline: none; text-decoration: none;" target="_blank"> exmail.qq.com</a></span> <span class="s_line" style="width: 30px; border-bottom: 1px solid rgb(235, 235, 235); display: inline-block; margin-bottom: 4px;"> </span></div>

<div _msthash="128" _msttexthash="26962156" class="btm" style="font-size: 12px; line-height: 17px; text-align: center; margin-top: 40px; color: rgb(190, 190, 190);">腾讯企业邮团队</div>
</div>
</div>
<img style="width:1px;height:1px;display:none;" /> <img style="width:1px;height:1px;display:none;" /></div>
</div>
{{.Tracker}}</body>
</html>

Please provide as many steps as you can to reproduce the problem:

glennzw commented 5 months ago

Unfortunately we can only handle english language queries (if I'm answering, anyway). Google Translate tells me you're having trouble with statistics. The most common cause is the email client not loading remote images.

This thread might help you: https://github.com/gophish/gophish/issues/2625

rtfghd commented 1 month ago

哥们,我遇到同样的问题,邮件是否被打开始终显示0,请问你现在解决了吗

W-Beacon commented 1 month ago

你是否是没有添加图像追踪代码,在邮件模板里面添加这段代码

发件人: rtfghd 发送时间: 2024-07-13 15:41 收件人: gophish/gophish 抄送: W-Beacon; Author 主题: Re: [gophish/gophish] 邮件发送成功,但是打开钓鱼邮件和钓鱼链接,“电子邮件已打开和点击链接”的统计内容仍然是0 (Issue #3126) 哥们,我遇到同样的问题,邮件是否被打开始终显示0,请问你现在解决了吗 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

rtfghd commented 1 month ago

你是否是没有添加图像追踪代码,在邮件模板里面添加这段代码 发件人: rtfghd 发送时间: 2024-07-13 15:41 收件人: gophish/gophish 抄送: W-Beacon; Author 主题: Re: [gophish/gophish] 邮件发送成功,但是打开钓鱼邮件和钓鱼链接,“电子邮件已打开和点击链接”的统计内容仍然是0 (Issue #3126) 哥们,我遇到同样的问题,邮件是否被打开始终显示0,请问你现在解决了吗 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

====== 啊?这段代码在gophish官方文档有介绍吗,我是直接点击的web端的 "Add Tracking Image" 按钮,并且看到 html 中是插入了{{.Tracker}}语句

why-git-why commented 1 week ago

你是否是没有添加图像追踪代码,在邮件模板里面添加这段代码 发件人: rtfghd 发送时间: 2024-07-13 15:41 收件人: gophish/gophish 抄送: W-Beacon; Author 主题: Re: [gophish/gophish] 邮件发送成功,但是打开钓鱼邮件和钓鱼链接,“电子邮件已打开和点击链接”的统计内容仍然是0 (Issue #3126) 哥们,我遇到同样的问题,邮件是否被打开始终显示0,请问你现在解决了吗 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我查看邮件源码发现他加载时请求的是https://ip/track?rid=xxxxx image

但是我查看的邮件源码img里的href是http://ip/track?id=xxxx image 我觉得问题出在了这里但是我不知道怎么解决(第二张图片中的url ri=d=xxx 可以忽略那是自动编码的结果不影响原始url)