Advertisement
Blackthorn

tarpit

Dec 22nd, 2021
2,760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. frontend main
  2.     mode http
  3.     option forwardfor
  4.     option http-buffer-request
  5.     acl log4shell url,url_dec -i -m reg (?:\${[^}]{0,4}\${|\${(?:jndi|ctx))
  6.     acl log4shell req.hdrs -i -m reg (?:\${[^}]{0,4}\${|\${(?:jndi|ctx))
  7.     acl log4shell_form req.body,url_dec -i -m reg (?:\${[^}]{0,4}\${|\${(?:jndi|ctx))                                  
  8.     acl is_tarpit  path,lower,map_str_int(/etc/haproxy/tarpit.map,-1) eq 1
  9.     acl is_tarpit  path,lower,map_beg_int(/etc/haproxy/tarpit_beg.map,-1) eq 1
  10.  
  11.     http-request tarpit if is_tarpit
  12.     http-request tarpit if log4shell
  13.     http-request tarpit if { req.fhdr(content-type) -m str application/x-www-form-urlencoded } log4shell_form
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement