-
Notifications
You must be signed in to change notification settings - Fork 9
/
json-rpc.sig
42 lines (37 loc) · 1.38 KB
/
json-rpc.sig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
signature json-rpc-request-tcp {
ip-proto == tcp
payload /^([[:space:]]*)\{([[:space:]]*)(.*)\"method\"([[:space:]]*):([[:space:]]*)\"(.*)\"/
tcp-state originator
event "json-rpc-request-tcp"
}
signature json-rpc-response-tcp {
ip-proto == tcp
requires-reverse-signature json-rpc-request-tcp
payload /^([[:space:]]*)\{([[:space:]]*)\"(jsonrpc|result|error|id)\"([[:space:]]*):/
tcp-state responder
event "json-rpc-response-tcp"
}
signature json-rpc-request-tcp-reverse {
ip-proto == tcp
payload /^([[:space:]]*)\{([[:space:]]*)(.*)\"method\"([[:space:]]*):([[:space:]]*)\"(.*)\"/
tcp-state responder
event "json-rpc-request-tcp-reverse"
}
signature json-rpc-response-tcp-reverse {
ip-proto == tcp
requires-reverse-signature json-rpc-request-tcp-reverse
payload /^([[:space:]]*)\{([[:space:]]*)\"(jsonrpc|result|error|id)\"([[:space:]]*):/
tcp-state originator
event "json-rpc-response-tcp-reverse"
}
signature json-rpc-request-http {
ip-proto == tcp
http-request-body /^([[:space:]]*)\{([[:space:]]*)(.*)\"method\"([[:space:]]*):([[:space:]]*)\"(.*)\"/
event "json-rpc-request-http"
}
signature json-rpc-response-http {
ip-proto == tcp
requires-reverse-signature json-rpc-request-http
http-reply-body /^([[:space:]]*)\{([[:space:]]*)\"(jsonrpc|result|error|id)\"([[:space:]]*):/
event "json-rpc-response-http"
}