Remove patch as no longer needed
Joseph O'Gorman
2 years ago
0 | Patched to look for polenum instead of polenum.py | |
1 | --- a/enum4linux.pl | |
2 | +++ b/enum4linux.pl | |
3 | @@ -64,7 +64,7 @@ my $global_passpol = 0; | |
4 | my $global_rid_range = "500-550,1000-1050"; | |
5 | my $global_known_username_string = "administrator,guest,krbtgt,domain admins,root,bin,none"; | |
6 | my @dependent_programs = qw(nmblookup net rpcclient smbclient); | |
7 | -my @optional_dependent_programs = qw(polenum.py ldapsearch); | |
8 | +my @optional_dependent_programs = qw(polenum ldapsearch); | |
9 | my %odp_present = (); | |
10 | my $null_session_test = 0; | |
11 | my %opts; | |
12 | @@ -478,9 +478,9 @@ sub get_os_info { | |
13 | ||
14 | sub enum_password_policy { | |
15 | print_heading("Password Policy Information for $global_target"); | |
16 | - my $command = "polenum.py '$global_username':'$global_password'\@'$global_target' 2>&1"; | |
17 | - unless ($odp_present{"polenum.py"}) { | |
18 | - print "[E] Dependent program \"polenum.py\" not present. Skipping this check. Download polenum from http://labs.portcullis.co.uk/application/polenum/\n\n"; | |
19 | + my $command = "polenum '$global_username':'$global_password'\@'$global_target' 2>&1"; | |
20 | + unless ($odp_present{"polenum"}) { | |
21 | + print "[E] Dependent program \"polenum\" not present. Skipping this check. Download polenum from http://labs.portcullis.co.uk/application/polenum/\n\n"; | |
22 | return 0; | |
23 | } | |
24 | print "[V] Attempting to get Password Policy info with command: $command\n" if $verbose; | |
25 | @@ -492,11 +492,11 @@ sub enum_password_policy { | |
26 | } elsif ($passpol_info =~ /Error Getting Password Policy: Connect error/) { | |
27 | print "[E] Can't connect to host with supplied credentials.\n"; | |
28 | } else { | |
29 | - print "[E] Unexpected error from polenum.py:\n"; | |
30 | + print "[E] Unexpected error from polenum:\n"; | |
31 | print $passpol_info; | |
32 | } | |
33 | } else { | |
34 | - print "[E] polenum.py gave no output.\n"; | |
35 | + print "[E] polenum gave no output.\n"; | |
36 | } | |
37 | $command = "rpcclient -W '$global_workgroup' -U'$global_username'\%'$global_password' '$global_target' -c \"getdompwinfo\" 2>&1"; | |
38 | print "[V] Attempting to get Password Policy info with command: $command\n" if $verbose; |