Ich habe dieses Problem immer dann, wenn ich ein Perl-Skript, wie enum4linux, auf dem neuesten Kali Linux Version.
kali@kali:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2020.3
Codename: kali-rolling
kali@kali:~$
Z.B.,
kali@kali:~$ enum4linux
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_ADDRESS = "ms_MY.UTF-8",
LC_NAME = "ms_MY.UTF-8",
LC_MONETARY = "ms_MY.UTF-8",
LC_PAPER = "ms_MY.UTF-8",
LC_IDENTIFICATION = "ms_MY.UTF-8",
LC_TELEPHONE = "ms_MY.UTF-8",
LC_MEASUREMENT = "ms_MY.UTF-8",
LC_TIME = "ms_MY.UTF-8",
LC_NUMERIC = "ms_MY.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
enum4linux v0.8.9 (http://labs.portcullis.co.uk/application/enum4linux/)
Copyright (C) 2011 Mark Lowe (mrl@portcullis-security.com)
Sehen Sie sich die Warnmeldung an.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Beachten Sie auch, dass LC_ALL = (unset)
Die Lösung ist einfach. Alles, was Sie tun müssen, ist, sie einzustellen.
export LC_ALL=en_US.UTF-8
Z.B.,
kali@kali:~$ export LC_ALL=en_US.UTF-8
kali@kali:~$
Und Problem gelöst
kali@kali:~$ enum4linux
enum4linux v0.8.9 (http://labs.portcullis.co.uk/application/enum4linux/)
Copyright (C) 2011 Mark Lowe (mrl@portcullis-security.com)
Um eine dauerhafte Lösung zu finden, sollten Sie sie in die .bashrc
Datei.