dahebolangkuan / naxsi

Automatically exported from code.google.com/p/naxsi
Other
0 stars 2 forks source link

Sort nx_util BasicRule #79

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if nx_util could sort BasicRule output by wl id then mz to 
change something like:

BasicRule wl:1005 "mz:$HEADERS_VAR:cookie";
BasicRule wl:0 "mz:$URL:/|$BODY_VAR:_message";
BasicRule wl:1011 "mz:$HEADERS_VAR:cookie";
BasicRule wl:1010 "mz:$HEADERS_VAR:cookie";
BasicRule wl:1015 "mz:$URL:/|$ARGS_VAR:_caps";
BasicRule wl:1009 "mz:$URL:/|$ARGS_VAR:_caps";
BasicRule wl:1000 "mz:$URL:/skins/larry/images/selector.png|URL";
BasicRule wl:1015 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:2 "mz:$URL:/|$REQUEST_VAR:BIG_REQU";
BasicRule wl:1015 "mz:$URL:/|$BODY_VAR:_uid";
BasicRule wl:1311 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1310 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1200 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1016 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1013 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1011 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1010 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1015 "mz:$URL:/|$ARGS_VAR:_headers";
BasicRule wl:1000 "mz:$URL:/|$ARGS_VAR:_headers";
BasicRule wl:1303 "mz:$URL:/|$BODY_VAR:_address";
BasicRule wl:1302 "mz:$URL:/|$BODY_VAR:_address";
BasicRule wl:1000 "mz:$URL:/|$BODY_VAR:editorselector|NAME";
BasicRule wl:1000 "mz:$URL:/|$BODY_VAR:_from|NAME";
BasicRule wl:1001 "mz:$URL:/|$BODY_VAR:_address";

Into:

BasicRule wl:0 "mz:$URL:/|$BODY_VAR:_message";
BasicRule wl:2 "mz:$URL:/|$REQUEST_VAR:BIG_REQU";
BasicRule wl:1000 "mz:$URL:/|$BODY_VAR:editorselector|NAME";
BasicRule wl:1000 "mz:$URL:/|$BODY_VAR:_from|NAME";
BasicRule wl:1000 "mz:$URL:/|$ARGS_VAR:_headers";
BasicRule wl:1000 "mz:$URL:/skins/larry/images/selector.png|URL";
BasicRule wl:1001 "mz:$URL:/|$BODY_VAR:_address";
BasicRule wl:1005 "mz:$HEADERS_VAR:cookie";
BasicRule wl:1009 "mz:$URL:/|$ARGS_VAR:_caps";
BasicRule wl:1010 "mz:$HEADERS_VAR:cookie";
BasicRule wl:1010 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1011 "mz:$HEADERS_VAR:cookie";
BasicRule wl:1011 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1013 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1015 "mz:$URL:/|$ARGS_VAR:_caps";
BasicRule wl:1015 "mz:$URL:/|$ARGS_VAR:_headers";
BasicRule wl:1015 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1015 "mz:$URL:/|$BODY_VAR:_uid";
BasicRule wl:1016 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1200 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1302 "mz:$URL:/|$BODY_VAR:_address";
BasicRule wl:1303 "mz:$URL:/|$BODY_VAR:_address";
BasicRule wl:1310 "mz:$URL:/|$BODY_VAR:_subject";
BasicRule wl:1311 "mz:$URL:/|$BODY_VAR:_subject";

It would ease readability on changes when wl rules are still evolving 
(cornercases of learning mode).

Original issue reported on code.google.com by didier.c...@googlemail.com on 10 Jul 2013 at 7:41