patschi

Change nginx version

Mar 29th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. Change version of nginx:
  2.  
  3. sed -i "s/static char ngx\_http\_server\_string\[\] \= \"Server\: nginx\" CRLF\;/static char ngx\_http\_server\_string\[\] \= \"Server\: \'\; DROP TABLE servertypes\; \-\-\" CRLF\;/g" ngx_http_header_filter_module.c
  4.  
  5. sed -i "s/static char ngx\_http\_server\_full\_string\[\] \= \"Server\: \" NGINX\_VER CRLF\;/static char ngx\_http\_server\_full\_string\[\] \= \"Server\: \'\; DROP TABLE servertypes\; \-\-\" CRLF\;/g" ngx_http_header_filter_module.c
Advertisement
Add Comment
Please, Sign In to add comment