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

如何给"Extra-Params"的参数设置一个默认缺省值? #139

Open
lzskyline opened this issue Sep 25, 2017 · 0 comments
Open

如何给"Extra-Params"的参数设置一个默认缺省值? #139

lzskyline opened this issue Sep 25, 2017 · 0 comments

Comments

@lzskyline
Copy link

我编写POC时遇到一个问题, 假设一个脚本是用来检测admin_index.php文件是否存在的, 这个文件默认在admin目录下, 但如果用户更改了默认目录名的话, 脚本也需要相应的改变以确保正确执行, 而我不希望每次检测时都要手动去修改poc, 而是才用extra-params的方式覆盖变量默认值, 所以我在脚本内使用了:
self.params["variable"]的方式来获取用户传入, 并加了判断如果该值不存在就覆盖一个默认值过去

但是遇到了一个问题: 当用户没有传入该值时, 该poc不会执行
不知道是哪里的问题

OS / Software Version

  • Please copy uname -a result here
  • Pocsuite version here

How to reproduce the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants