Skip to content

Commit

Permalink
Merge pull request #82 from ddosify/develop
Browse files Browse the repository at this point in the history
change pg keywords
  • Loading branch information
fatihbaltaci authored Feb 7, 2024
2 parents c9e4c1a + 3bf5028 commit 83dbdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregator/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ var re *regexp.Regexp
func init() {
reverseDnsCache = cache.New(defaultExpiration, purgeTime)

keywords := []string{"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "FROM", "WHERE", "JOIN", "INNER", "OUTER", "LEFT", "RIGHT", "GROUP", "BY", "ORDER", "HAVING", "UNION", "ALL", "BEGIN", "COMMIT"}
keywords := []string{"SELECT", "INSERT INTO", "UPDATE", "DELETE FROM", "CREATE TABLE", "ALTER TABLE", "DROP TABLE", "TRUNCATE TABLE", "BEGIN", "COMMIT", "ROLLBACK", "SAVEPOINT", "CREATE INDEX", "DROP INDEX", "CREATE VIEW", "DROP VIEW", "GRANT", "REVOKE"}

// Case-insensitive matching
re = regexp.MustCompile(strings.Join(keywords, "|"))
Expand Down

0 comments on commit 83dbdc8

Please sign in to comment.