OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
x86_64-linux-gnu
/
perl5
/
5.26
/
DBI
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/31/2023 12:38:17 PM
rwxr-xr-x
📄
Changes.pm
121.42 KB
07/30/2021 11:25:50 AM
rw-r--r--
📁
Const
-
01/31/2023 12:34:58 PM
rwxr-xr-x
📁
DBD
-
01/31/2023 12:34:58 PM
rwxr-xr-x
📄
DBD.pm
123.57 KB
04/21/2016 02:34:22 PM
rw-r--r--
📁
Gofer
-
01/31/2023 12:34:58 PM
rwxr-xr-x
📄
Profile.pm
31.89 KB
04/21/2016 01:54:00 PM
rw-r--r--
📄
ProfileData.pm
19.53 KB
08/13/2017 08:48:19 PM
rw-r--r--
📁
ProfileDumper
-
01/31/2023 12:34:58 PM
rwxr-xr-x
📄
ProfileDumper.pm
10.14 KB
06/24/2013 09:03:21 PM
rw-r--r--
📄
ProfileSubs.pm
1.14 KB
06/24/2013 09:03:21 PM
rw-r--r--
📄
ProxyServer.pm
25.84 KB
04/21/2016 02:34:22 PM
rw-r--r--
📄
PurePerl.pm
37.69 KB
04/24/2016 09:57:34 PM
rw-r--r--
📁
SQL
-
01/31/2023 12:34:58 PM
rwxr-xr-x
📁
Util
-
01/31/2023 12:34:58 PM
rwxr-xr-x
📄
W32ODBC.pm
4.5 KB
05/23/2013 10:56:50 AM
rw-r--r--
Editing: ProfileSubs.pm
Close
package DBI::ProfileSubs; our $VERSION = "0.009396"; =head1 NAME DBI::ProfileSubs - Subroutines for dynamic profile Path =head1 SYNOPSIS DBI_PROFILE='&norm_std_n3' prog.pl This is new and still experimental. =head1 TO DO Define come kind of naming convention for the subs. =cut use strict; use warnings; # would be good to refactor these regex into separate subs and find some # way to compose them in various combinations into multiple subs. # Perhaps via AUTOLOAD where \&auto_X_Y_Z creates a sub that does X, Y, and Z. # The final subs always need to be very fast. # sub norm_std_n3 { # my ($h, $method_name) = @_; local $_ = $_; s/\b\d+\b/<N>/g; # 42 -> <N> s/\b0x[0-9A-Fa-f]+\b/<N>/g; # 0xFE -> <N> s/'.*?'/'<S>'/g; # single quoted strings (doesn't handle escapes) s/".*?"/"<S>"/g; # double quoted strings (doesn't handle escapes) # convert names like log20001231 into log<N> s/([a-z_]+)(\d{3,})\b/${1}<N>/ig; # abbreviate massive "in (...)" statements and similar s!((\s*<[NS]>\s*,\s*){100,})!sprintf("$2,<repeated %d times>",length($1)/2)!eg; return $_; } 1;