人人商城

scan.html 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {template 'common/header'}
  2. <div class="we7-page-title">木马查杀</div>
  3. <ul class="we7-page-tab">
  4. <li {if $do != 'display' && $do != 'view'}class="active"{/if}><a href="{php echo url('system/scan');}">木马查杀</a></li>
  5. <li {if $do == 'display'}class="active"{/if}><a href="{php echo url('system/scan', array('do' => 'display'));}">查杀报告</a></li>
  6. {if $do == 'view'}<li class="active"><a href="javascript:;">查看文件</a></li>{/if}
  7. </ul>
  8. {if $do == 'post'}
  9. <div class="clearfix">
  10. <form action="" method="post" class="form we7-form">
  11. <div class="form-group">
  12. <label class="col-sm-2 control-label">操作说明</label>
  13. <div class="col-sm-10">
  14. <div class="help-block">这里是说明</div>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label">查杀目录</label>
  19. <div class="col-sm-10" style="">
  20. {loop $list $index $li}
  21. <div class="checkbox" style="margin-left:15px">
  22. {if is_dir($li)}
  23. <input type="checkbox" name="dir[]" id="dir[{$index}]" value="{$li}"/><label for="dir[{$index}]"><i class="fa fa-folder-open"> </i> {php echo basename($li);}</label>
  24. {else}
  25. <input type="checkbox" name="dir[]" id="dir[{$index}]" value="{$li}"/><label for="dir[{$index}]"><i class="fa fa-file-code-o"> </i> {php echo basename($li);}</label>
  26. {/if}
  27. </div>
  28. {/loop}
  29. </div>
  30. </div>
  31. <!--
  32. <div class="form-group">
  33. <label class="col-sm-2 col-lg-1 control-label">文件类型</label>
  34. <div class="col-sm-10">
  35. <input type="text" class="form-control" name="file_type" value="{$safe['file_type']}"/>
  36. </div>
  37. </div>
  38. -->
  39. <div class="form-group">
  40. <label class="col-sm-2 control-label">特征函数</label>
  41. <div class="col-sm-10">
  42. <input type="text" class="form-control" name="func" value="{$safe['func']}"/>
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <label class="col-sm-2 control-label">特征代码</label>
  47. <div class="col-sm-10">
  48. <input type="text" class="form-control" name="code" value="{$safe['code']}"/>
  49. </div>
  50. </div>
  51. <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1"/>
  52. <input type="hidden" name="token" value="{$_W['token']}"/>
  53. </form>
  54. </div>
  55. {elseif $do == 'display'}
  56. <div class="clearfix">
  57. <table class="table we7-table table-hover site-list">
  58. <col width=""/>
  59. <col width="115px"/>
  60. <col width="115px"/>
  61. <col width="115px"/>
  62. <col width="105px"/>
  63. <col width="115px"/>
  64. <col width="115px"/>
  65. <col width="115px"/>
  66. <tr>
  67. <th>文件地址</th>
  68. <th>特征函数次数</th>
  69. <th>特征函数</th>
  70. <th>特征代码次数</th>
  71. <th>特征代码</th>
  72. <th>Zend encoded</th>
  73. <th>危险文件</th>
  74. <th class="text-right">操作</th>
  75. </tr>
  76. {loop $badfiles $k $v}
  77. <tr>
  78. <td class="text-over" style="word-break: break-word;">{$k}</td>
  79. <td style="word-break: break-word;">{$v['func_count']}</td>
  80. <td style="word-break: break-word;"><span class="text-danger">{$v['func_str']}</span></td>
  81. <td style="word-break: break-word;">{$v['code_count']}</td>
  82. <td style="word-break: break-word;"><span class="text-danger">{$v['code_str']}</span></td>
  83. <td style="word-break: break-word;">
  84. {if isset($v['zend'])}
  85. <span class="label label-danger">Yes</span>
  86. {else}
  87. No
  88. {/if}
  89. </td>
  90. <td style="word-break: break-word;">
  91. {if isset($v['danger'])}
  92. <span class="label label-danger">Yes</span>
  93. {else}
  94. No
  95. {/if}
  96. </td>
  97. <td style="word-break: break-word;">
  98. <div class="link-group"><a href="{php echo url('system/scan/', array('do' => 'view', 'file' => authcode($k, 'ENCODE')));}" title="查看">查看</a></div>
  99. </td>
  100. </tr>
  101. {/loop}
  102. </table>
  103. </div>
  104. {elseif $do == 'view'}
  105. <div class="clearfix">
  106. <div class="panel panel-default">
  107. <div class="panel-heading">查看文件 <span class="text-danger">[{$file_tmp}]</span></div>
  108. <div class="panel-body">
  109. <div style="margin-bottom: 15px">
  110. {if $info['danger']}
  111. <span class="label label-primary">危险文件</span>
  112. {/if}
  113. {if $info['func_count']}
  114. <span class="label label-danger">特征函数次数:{$info['func_count']}</span>
  115. <span class="label label-danger">特征函数:{$info['func_str']}</span>
  116. {/if}
  117. {if $info['code_count']}
  118. <span class="label label-warning">特征代码次数:{$info['code_count']}</span>
  119. <span class="label label-warning">特征代码:{$info['code_str']}</span>
  120. {/if}
  121. {if $info['zend']}
  122. <span class="label label-info">Zend encoded</span>
  123. {/if}
  124. </div>
  125. <textarea name="" id="" cols="30" rows="20" class="form-control">{$data}</textarea>
  126. </div>
  127. </div>
  128. <form action="" class="form-horizontal">
  129. <div class="form-group">
  130. <div class="col-sm-10">
  131. <a href="{php echo url('system/scan', array('do' => 'display'))}" class="btn btn-primary col-lg-1"/>返回</a>
  132. </div>
  133. </div>
  134. </form>
  135. </div>
  136. {/if}
  137. {template 'common/footer'}