Skip to content

Instantly share code, notes, and snippets.

@aensidhe
aensidhe / 1.msil
Created July 28, 2016 20:12
valid il can contain several rets
.assembly test.msil {
.hash algorithm 0x00008004
.ver 2:0:0:0
}
.method static void main()
{
.entrypoint
.maxstack 1
ldstr "Hello world!"
@aensidhe
aensidhe / gist:e8069dd159cdd86c97fa
Created May 27, 2015 08:52
IIS full log grok pattern
IISDATE %{YEAR}-%{MONTHNUM}-%{MONTHDAY}
IISURIPARAM [A-Za-z0-9$.+!*'|(){},~@#%&/=:;_?\-\[\]]*
IISHOST %{IPORHOST}(:%{POSINT})?
IISURL (%{URIPROTO}://%{IISHOST}?%{URIPATHPARAM}?)|\-
IISTIMESTAMP %{IISDATE} %{TIME}
IISLOG %{IISTIMESTAMP:datetime} %{NOTSPACE:site} %{HOSTNAME:server} %{IP:server_ip} %{WORD:http_method} %{URIPATHPARAM:url_path} %{IISURIPARAM:url_query} %{POSINT:port:int} %{NOTSPACE:user} %{IP:client_ip} %{NOTSPACE:http_version} %{NOTSPACE:user_agent} %{NOTSPACE:cookies} %{IISURL:referer} %{IISHOST:host_name} %{INT:http_status:int} %{INT:http_sub_status:int} %{INT:win32_status:int} %{INT:response_size:int} %{INT:request_size:int} %{INT:duration_ms:int}