JavaScript request filter - MSSQL

The JavaScript request filter is the most flexible of all request filters. It can potentially be called for any packet type, and can modify traffic in any way it sees fit.

Parameters

  • Packet types : optional. If specified, a comma-separated list of packet types for which this filter should be called, for instance: SQLBatch,RPC,Login7. Spaces are ignored.

  • Client IPs: optional. If specified, a comma-separated (or line break separated) list of IP4 or IP6 addresses or regular expressions for IP addresses.

  • Users: optional. If specified, a comma-separated (or line break separated) list of user names or regular expressions for user names.


Advanced example

When a SQL Server client connects to a server, the first thing it sends is a Prelogin packet, which tells the server about the options the client requests. If you know what you're doing, you may be able to change some of these options to affect the handshake between client and server.