• 15 апреля стартует «Курс «SQL-injection Master» ©» от команды The Codeby

    За 3 месяца вы пройдете путь от начальных навыков работы с SQL-запросами к базам данных до продвинутых техник. Научитесь находить уязвимости связанные с базами данных, и внедрять произвольный SQL-код в уязвимые приложения.

    На последнюю неделю приходится экзамен, где нужно будет показать свои навыки, взломав ряд уязвимых учебных сайтов, и добыть флаги. Успешно сдавшие экзамен получат сертификат.

    Запись на курс до 25 апреля. Получить промодоступ ...

Проблема Bash: command not found

R

Ratergs

Ввожу команду ifconfig, выдает ошибку:
bash: ifconfig: command not found
Полез в интернет как решить проблему, вводил:
sudo apt-get update, пишет ошибку 'Get:1 kali-rolling [30.5 kB]
Err:1 kali-rolling
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF0 Kali Linux Repository


Вводил apt-get install net-tools и там куча ошибок ( W: ) и всё сводится к sources.list.
Get:1 kali-rolling InRelease [30.5 kB]
Err:1 kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
Fetched 30.5 kB in 2s (15.1 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Failed to fetch The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11 (main/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Packages (non-free/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11 (non-free/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11 (contrib/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:11


В sources.list ( /ets/apt/sources.list ) написано:
#Regular repositories

deb kali-rolling main non-free contrib

#Source repositories

deb-src kali-rolling main non-free contrib

#The kali-rolling repository

deb kali-rolling main non-free contrib


Как решить проблему?
 

z0day

Green Team
06.07.2018
134
33
BIT
0
попробуй
if cat /etc/apt/sources.list | grep -E "deb kali-rolling main contrib non-free" || cat /etc/apt/sources.list | grep -E "deb kali-rolling main non-free contrib"; then echo -e "\n\nРепозитории в порядке"; else echo -e "\n\nПроблемы с репозиториями"; fi

если проблемы то
echo -e "deb kali-rolling main non-free contrib" > /etc/apt/sources.list
мне помогло
 
R

Ratergs

попробуй
if cat /etc/apt/sources.list | grep -E "deb kali-rolling main contrib non-free" || cat /etc/apt/sources.list | grep -E "deb kali-rolling main non-free contrib"; then echo -e "\n\nРепозитории в порядке"; else echo -e "\n\nПроблемы с репозиториями"; fi

если проблемы то
echo -e "deb kali-rolling main non-free contrib" > /etc/apt/sources.list
мне помогло

ratergs@Ratergs:~$ echo -e "deb Index of /kali kali-rolling main non-free contrib" > /etc/apt/sources.list

ratergs@Ratergs:~$ if cat /etc/apt/sources.list | grep -E "deb Index of /kali kali-rolling main contrib non-free" || cat /etc/apt/sources.list | grep -E "deb Index of /kali kali-rolling main non-free contrib"; then echo -e "\n\nРепозитории в порядке"; else echo -e "\n\nПроблемы с репозиториями"; fi
deb Index of /kali kali-rolling main non-free contrib


Репозитории в порядке

ratergs@Ratergs:~$ apt-get update
E: Malformed entry 1 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.

ratergs@Ratergs:~$ apt-get install net-tools
E: Malformed entry 1 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.

Что дальше?
 

z0day

Green Team
06.07.2018
134
33
BIT
0
если у тебя действительно kali то в терменали должно быть написано
root@'имя'

ты создал другого пользователя?
тогда попробуй использовать sudo(наврядли поможет)
или зайди под root
навсякий случай повтори команды под rootам

if cat /etc/apt/sources.list | grep -E "deb Index of /kali kali-rolling main contrib non-free" || cat /etc/apt/sources.list | grep -E "deb Index of /kali kali-rolling main non-free contrib"; then echo -e "\n\nРепозитории в порядке"; else echo -e "\n\nПроблемы с репозиториями"; fi
deb Index of /kali kali-rolling main non-free contrib

echo -e "deb Index of /kali kali-rolling main non-free contrib" > /etc/apt/sources.list
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!