Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libnet-ldap-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
LWPsearch.pl
2.67
KB
-rw-r--r--
README
1.2
KB
-rw-r--r--
dot.tklkup
1.75
KB
-rw-r--r--
isMember.pl
9.45
KB
-rw-r--r--
jpegDisplay.pl
7.02
KB
-rw-r--r--
jpegLoad.pl
7.11
KB
-rw-r--r--
ldapdelete
2.44
KB
-rwxr-xr-x
ldapmodify.pl
1.43
KB
-rwxr-xr-x
ldapmodrdn
2.67
KB
-rwxr-xr-x
ldapsearch
8.23
KB
-rwxr-xr-x
ldifdiff.pl
10.49
KB
-rwxr-xr-x
ldifsort.pl
3.18
KB
-rwxr-xr-x
ldifuniq.pl
1.59
KB
-rwxr-xr-x
printMembers.pl
6.46
KB
-rw-r--r--
recursive-ldap-delete.pl
1022
B
-rw-r--r--
schema2ad.pl
9.47
KB
-rw-r--r--
simple-proxy.pl
2.82
KB
-rw-r--r--
tklkup
169.14
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ldifuniq.pl
#! /usr/bin/perl # $Id: ldifuniq.pl,v 1.1 2002/08/24 15:11:21 kartik_subbarao Exp $ =head1 NAME ldifuniq.pl - Culls unique entries from a reference file with respect to a comparison file. =head1 DESCRIPTION ldifuniq.pl takes as input two LDIF files, a reference file and a comparison file. Each entry in the reference file is compared to its counterpart in the comparison file. If it does not have a counterpart, or if the counterpart is not identical, the reference entry is printed to standard output. Otherwise no output is generated. This behavior is analogous to the -u option of the uniq command. =head1 SYNOPSIS ldifuniq.pl reffile.ldif cmpfile.ldif =head1 AUTHOR Kartik Subbarao E<lt>subbarao@computer.orgE<gt> =cut use MIME::Base64; use strict; my $reffile = $ARGV[0]; my $cmpfile = $ARGV[1]; die "usage: $0 reffile cmpfile\n" unless $reffile && $cmpfile; $/ = ""; sub getdn { my $rec = shift; my $dn; 1 while s/^(dn:.*)?\n /$1/im; # Handle line continuations if (/^dn(::?) (.*)$/im) { $dn = $2; $dn = decode_base64($dn) if $1 eq '::'; } $dn; } open(CMPFH, $cmpfile) || die "$cmpfile: $!\n"; my (%cmpdnpos, $pos); $pos = 0; while (<CMPFH>) { my $dn = getdn($_); $cmpdnpos{$dn} = $pos; $pos = tell; } open(REFFH, $reffile) || die "$reffile: $!\n"; while (<REFFH>) { my $refrec = $_; $refrec .= "\n" if $refrec !~ /\n\n$/; my $dn = getdn($refrec); my $pos = $cmpdnpos{$dn}; if ($pos eq undef) { print $refrec; next; # Not in cmpfile, print the entry. } seek(CMPFH, $pos, 0); my $cmprec = <CMPFH>; $cmprec .= "\n" if $cmprec !~ /\n\n$/; print $refrec if $refrec ne $cmprec; }
Close