Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

检测 PHP 文件上传是否成功的例子代码存在问题 #109

Merged
merged 1 commit into from
Sep 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/CODING.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ JSON 格式的 PoC 类似于完形填空,只需要填写相应的字段的值即
检测 PHP 文件上传是否成功,

token = randomStr()
payload = '<?php echo md5(%s);unlink(__FILE__);?>' % token
payload = '<?php echo md5("%s");unlink(__FILE__);?>' % token
...

if hashlib.new('md5', token).hexdigest() in content:
Expand Down