| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel=stylesheet type="text/css" href="/media/malfind.css" title="malfind"> | 3 <link rel=stylesheet type="text/css" href="/media/malfind.css" title="malfind"> |
| 4 <script language="JavaScript" src="/media/malfind.js"></script> | 4 <script language="JavaScript" src="/media/malfind.js"></script> |
| 5 <title>MalFind Results for {{url|escape}}</title> | 5 <title>MalFind Results for {{url|escape}}</title> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 | 8 |
| 9 <div align="right" style="margin-bottom:2em;"> | 9 <div align="right" style="margin-bottom:2em;"> |
| 10 {%if userdata.user%}{{userdata.user|escape}} |{%endif%} | 10 {%if userdata.user%}{{userdata.user|escape}} |{%endif%} |
| 11 <a href="http://code.google.com/p/malfind2/issues/list">Report bug</a> | | 11 <a href="http://code.google.com/p/malfind2/issues/list">Report bug</a> | |
| 12 {%if userdata.admin%}<a href="/stats">Admin</a> |{%endif%} | 12 {%if userdata.admin%}<a href="/stats">Admin</a> |{%endif%} |
| 13 {%if userdata.user%}<a href="{{userdata.logout|escape}}">Sign out</a>{%else%} | 13 {%if userdata.user%}<a href="{{userdata.logout|escape}}">Sign out</a>{%else%} |
| 14 <a href="{{userdata.login|escape}}">Sign In</a>{%endif%} | 14 <a href="{{userdata.login|escape}}">Sign In</a>{%endif%} |
| 15 </div> | 15 </div> |
| 16 | 16 |
| 17 <div class=top> | 17 <div class=top> |
| 18 <form action='/check'> | 18 <form action='/check'> |
| 19 <table><tr><td><a class="mf" href="/">MalFind</a></td> | 19 <table><tr><td><a class="mf" href="/">MalFind</a></td> |
| 20 <td><input name=url value="{{url|escape}}" size=40></td> | 20 <td><input name=url value="{{url|escape}}" size=40></td> |
| 21 <td><input type=submit value="Check" name="check"></td> | 21 <td><input type=submit value="Check" name="check"></td> |
| 22 </tr></table> | 22 </tr></table> |
| 23 </form> | 23 </form> |
| 24 </a> | 24 </a> |
| 25 | 25 |
| 26 </div> | 26 </div> |
| 27 | 27 |
| 28 {% if url %} | 28 {% if url %} |
| 29 <h3>Overview for {{url|escape}}</h3> | 29 <h3>Overview for {{url|escape}}</h3> |
| 30 <ul> | 30 <ul> |
| 31 {% if blacklisted %} | 31 {% if blacklisted %} |
| 32 <li><span class=blacklisted>This page matches Google's malware blacklist.<
/span></li> | 32 <li><span class=blacklisted>This page matches Google's malware blacklist.
<a href="http://www.google.com/safebrowsing/diagnostic?site={{url|urlencode}}">L
earn More</a></span></li> |
| 33 {% endif %} | 33 {% endif %} |
| 34 {% if findings %} | 34 {% if findings %} |
| 35 {% for group in findings %} | 35 {% for group in findings %} |
| 36 <li>{{group.items|length}} {{group.name}}{{group.items|length|pluralize}
}</li> | 36 <li>{{group.items|length}} {{group.name}}{{group.items|length|pluralize}
}</li> |
| 37 {% endfor %} | 37 {% endfor %} |
| 38 {% else %} | 38 {% else %} |
| 39 {% if errors %} | 39 {% if errors %} |
| 40 <li> Some errors occurred during processing this page. </li> | 40 <li> Some errors occurred during processing this page. </li> |
| 41 {% else %} | 41 {% else %} |
| 42 <li>No suspicious content found.</li> | 42 <li>No suspicious content found.</li> |
| 43 {% endif %} | 43 {% endif %} |
| 44 {% endif %} | 44 {% endif %} |
| 45 </ul> | 45 </ul> |
| 46 {% endif %} | 46 {% endif %} |
| 47 | 47 |
| 48 <!-- Findings --> | 48 <!-- Findings --> |
| 49 {% for group in findings %} | 49 {% for group in findings %} |
| 50 <h3 class="clickme" onclick="return toggle('{{group.name}}');"> | 50 <h3 class="clickme" onclick="return toggle('{{group.name}}');"> |
| 51 <table><tr><td> | 51 <table><tr><td> |
| 52 <img class="expand" id="img-{{group.name}}" src='media/minus.gif' width=14 hei
ght=14> | 52 <img class="expand" id="img-{{group.name}}" src='media/minus.gif' width=14 hei
ght=14> |
| 53 </td><th>{{group.name|capfirst}}{{2|pluralize}}</th></tr></table> | 53 </td><th>{{group.name|capfirst}}{{2|pluralize}}</th></tr></table> |
| 54 </h3> | 54 </h3> |
| 55 <div id={{group.name}}> | 55 <div id={{group.name}}> |
| 56 <ul> | 56 <ul> |
| 57 {% for item in group.items %} | 57 {% for item in group.items %} |
| 58 <li class=item> | 58 <li class=item> |
| 59 {% if item.src %} | 59 {% if item.src %} |
| 60 <div>External {{item.name}} from | 60 <div>External {{item.name}} from |
| 61 <a href="/check?url={{item.src|urlencode}}"><span class=url>{{item.src|esc
ape}}</span></a> | 61 <a href="/check?url={{item.src|urlencode}}"><span class=url>{{item.src|esc
ape}}</span></a> |
| 62 </div> | 62 </div> |
| 63 {% if item.blacklisted %} | 63 {% if item.blacklisted %} |
| 64 <div class=blacklisted>This {{item.name}}'s url matches Google's | 64 <div class=blacklisted>This {{item.name}}'s url matches Google's |
| 65 Malware Blacklist.</div> | 65 Malware Blacklist. <a href="http://www.google.com/safebrowsing/diagnosti
c?site={{item.src|urlencode}}">Learn More</a></div> |
| 66 {% endif %} | 66 {% endif %} |
| 67 {% else %} | 67 {% else %} |
| 68 <div>Inline {{group.name}}</div> | 68 <div>Inline {{group.name}}</div> |
| 69 {% endif %} | 69 {% endif %} |
| 70 <pre width=80>{{item.contents|escape}}</pre> | 70 <pre width=80>{{item.contents|escape}}</pre> |
| 71 </li> | 71 </li> |
| 72 {% endfor %} | 72 {% endfor %} |
| 73 </ul> | 73 </ul> |
| 74 </div> | 74 </div> |
| 75 {% endfor %} | 75 {% endfor %} |
| 76 | 76 |
| 77 | 77 |
| 78 {% if errors %} | 78 {% if errors %} |
| 79 <h4 class="clickme" onclick="return toggle('errors');"> | 79 <h4 class="clickme" onclick="return toggle('errors');"> |
| 80 <table><tr><td> | 80 <table><tr><td> |
| 81 <img class="expand" id="img-{{group.name}}" src='media/minus.gif' width=14 hei
ght=14> | 81 <img class="expand" id="img-{{group.name}}" src='media/minus.gif' width=14 hei
ght=14> |
| 82 </td><th>Some errors occurred during processing this url:</th></tr></table> | 82 </td><th>Some errors occurred during processing this url:</th></tr></table> |
| 83 </h4> | 83 </h4> |
| 84 <div id='errors' class=code> | 84 <div id='errors' class=code> |
| 85 <ul> | 85 <ul> |
| 86 {% for error in errors %} | 86 {% for error in errors %} |
| 87 <li>{{error|escape}}</li> | 87 <li>{{error|escape}}</li> |
| 88 {% endfor %} | 88 {% endfor %} |
| 89 </ul> | 89 </ul> |
| 90 </div> | 90 </div> |
| 91 {% endif %} | 91 {% endif %} |
| 92 | 92 |
| 93 | 93 |
| 94 {% if source %} | 94 {% if source %} |
| 95 <h4 class="clickme" onclick="return toggle('sourcecode');"> | 95 <h4 class="clickme" onclick="return toggle('sourcecode');"> |
| 96 <table><tr><td> | 96 <table><tr><td> |
| 97 <img class="expand" id="img-{{group.name}}" src='media/plus.gif' width=1
4 height=14> | 97 <img class="expand" id="img-{{group.name}}" src='media/plus.gif' width=1
4 height=14> |
| 98 </td><th>Source of {{url|escape}}</th></tr></table> | 98 </td><th>Source of {{url|escape}}</th></tr></table> |
| 99 </h4> | 99 </h4> |
| 100 <div id='sourcecode' style="display:none"> | 100 <div id='sourcecode' style="display:none"> |
| 101 <pre width=80>{{source|escape}}</pre> | 101 <pre width=80>{{source|escape}}</pre> |
| 102 </div> | 102 </div> |
| 103 {% endif %} | 103 {% endif %} |
| 104 | 104 |
| 105 | 105 |
| 106 </body> | 106 </body> |
| 107 </html> | 107 </html> |
| OLD | NEW |