Skip to content

Commit

Permalink
Merge pull request #124 from LoRexxar/develop
Browse files Browse the repository at this point in the history
update 2.1.0.1
  • Loading branch information
LoRexxar authored Jan 14, 2021
2 parents ef053c8 + 2bd8454 commit c24c6e8
Show file tree
Hide file tree
Showing 19 changed files with 5,698 additions and 280 deletions.
4 changes: 2 additions & 2 deletions Kunlun_M/settings.py.bak
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'nothing'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["*"]


# Application definition
Expand Down
2 changes: 1 addition & 1 deletion Kunlun_M/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
path('', include('web.index.urls')),
path('dashboard/', include('web.dashboard.urls')),
path('backend/', include('web.backend.urls')),
] + static(settings.STATIC_URL,document_root=settings.STATICFILES_DIRS)
] + static(settings.STATIC_URL,document_root=settings.STATICFILES_DIRS[0])
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ python3 .\kunlun.py web 9999

一个自动化寻找php反序列化链的简单模型

** 如果是旧版本更新并使用该插件扫描同一目标,请使用-r参数renew数据库 **

```
python3 .\kunlun.py plugin php_unserialize_chain_tools -t {target_path}
```
Expand Down Expand Up @@ -284,3 +286,4 @@ KunLun-M 是 404Team [星链计划](https://github.com/knownsec/404StarLink-Proj
- Dubhe [Sissel](https://github.com/boke1208)
- Dubhe [Sndav](https://github.com/Sndav)
- [#jax777](https://github.com/jax777)
- [akkuman](https://github.com/akkuman)
5 changes: 4 additions & 1 deletion core/core_engine/php/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,9 @@ def parameters_back(param, nodes, function_params=None, lineno=0,
if param_name in param_expr:
logger.debug("[AST] param {} in list {}, continue...".format(param_name, param_expr))

is_co = 3
cp = param

else:
for expr in param_expr:
param = expr
Expand Down Expand Up @@ -887,7 +890,7 @@ def parameters_back(param, nodes, function_params=None, lineno=0,
break
else:
file_path = os.path.normpath(file_path)
code = "param {} find fail.continue".format(param)
code = "param {} find fail. continue".format(param)
scan_chain.append(('FindEnd', code, file_path, node.lineno))

logger.debug("[AST] Uncontrollable Param {}. continue ast.")
Expand Down
650 changes: 425 additions & 225 deletions core/plugins/phpunserializechain/dataflowgenerate.py

Large diffs are not rendered by default.

Loading

0 comments on commit c24c6e8

Please sign in to comment.