Skip to content

Commit

Permalink
Merge pull request #182 from LoRexxar/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
LoRexxar authored Aug 23, 2021
2 parents 0607071 + 3d91abf commit b006a26
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ KunLun-M Dashbroad,并且允许通过apitoken来访问api获取数据

默认9999端口
```
python3 .\kunlun.py web 9999
python3 .\kunlun.py web -p 9999
```

![](docs/web.png)
Expand Down
4 changes: 4 additions & 0 deletions core/core_engine/php/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,10 @@ def parameters_back(param, nodes, function_params=None, lineno=0,
_is_co = 0
_cp = None

if not node:
logger.warning("[AST] dataflow analysize error.")
return is_co, cp, expr_lineno

# 加入扫描范围check, 如果当前行数大于目标行数,直接跳过(等于会不会有问题呢?)
if node.lineno >= int(lineno) and int(lineno) != 0:
return parameters_back(param, nodes[:-1], function_params, lineno,
Expand Down
4 changes: 3 additions & 1 deletion core/vendors.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,13 @@ def check_vendor(self):

elif filename == 'composer.json':
vendors = json.loads(filecontent)
vendors_list = []

if not len(vendors):
continue

vendors_list = vendors['require']
if 'require' in vendors:
vendors_list = vendors['require']

for vendor in vendors_list:
vendor_name = vendor.strip()
Expand Down
8 changes: 7 additions & 1 deletion templates/dashboard/vendors/vendors_vuln_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ <h3 class="box-title">Vendor Vulns List</h3>
<!-- /.box-body -->

<div class="box-footer">

<ul class="pagination pagination-sm m-0 float-right">
<li class="page-item"><a class="page-link" href="{% url 'dashboard:vendor_vulns_list' %}">«</a></li>
{% for i in page_range %}
<li class="page-item {% if page == i %}active{% endif %}"><a class="page-link" href="{% url 'dashboard:vendors_list' %}?p={{ i }}">{{ i }}</a></li>
{% endfor %}
<li class="page-item"><a class="page-link" href="{% url 'dashboard:vendor_vulns_list' %}?p={{ max_page }}">»</a></li>
</ul>
</div>
</div>
<!-- /.box -->
Expand Down
1 change: 1 addition & 0 deletions web/dashboard/controller/vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def get(request):

projects.append(p)
vvulns.extend(list(vvs))
vvulns = list(set(vvulns))

if not len(vs):
return HttpResponseNotFound('Vendor Not Found.')
Expand Down

0 comments on commit b006a26

Please sign in to comment.