PDA

View Full Version : Can't update reaver from GIT in my Kali 32bit



glestwid
2020-04-24, 07:37
Hi,

I am trying to update reaver from GIT but get a error because of missing LIBPCAP:


root@kali:~# git clone https://github.com/t6x/reaver-wps-fork-t6x
Cloning into 'reaver-wps-fork-t6x'...
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 2921 (delta 26), reused 38 (delta 21), pack-reused 2866
Receiving objects: 100% (2921/2921), 2.20 MiB | 24.00 KiB/s, done.
Resolving deltas: 100% (1843/1843), done.
root@kali:~# cd reaver-wps-fork-t6x*
root@kali:~/reaver-wps-fork-t6x# cd src
root@kali:~/reaver-wps-fork-t6x/src# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pcap_open_live in -lpcap... no
error: pcap library not found!
root@kali:~/reaver-wps-fork-t6x/src# sudo apt-get -y install build-essential libpcap-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
build-essential set to manually installed.
The following NEW packages will be installed:
libpcap-dev libpcap0.8-dev
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 273 kB of archives.
After this operation, 719 kB of additional disk space will be used.
Err:1 http://http.kali.org/kali kali-rolling/main i386 libpcap0.8-dev i386 1.8.1-4
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main i386 libpcap-dev all 1.8.1-4
404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/libp/libpcap/libpcap0.8-dev_1.8.1-4_i386.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/libp/libpcap/libpcap-dev_1.8.1-4_all.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?



Where can I get the suitable LIBPCAP? Looking at http://http.kali.org/kali/pool/main/libp/libpcap gives some links to the library but they are unavailable for the reaver.

re4son
2020-04-24, 08:17
Hi,
Err:1 http://http.kali.org/kali kali-rolling/main i386 libpcap0.8-dev i386 1.8.1-4
404 Not Found

This is an indication that your package index is out of date and has been for over a year.
The current version of libpcap0.8-dev in the repo is 1.9.1:
http://pkg.kali.org/pkg/libpcap

Run
sudo apt update before installing or upgrading any packages to resynchronize the package index files.

In your example, the correct commands would have been:


sudo apt update
sudo apt -y install build-essential libpcap-dev

Hope that helps

glestwid
2020-04-24, 12:26
Ok, tried


sudo apt update

Got:


root@kali:~/reaver-wps-fork-t6x/src# sudo apt update
Get:1 http://mirror-1.truenetwork.ru/kali kali-rolling InRelease [30.5 kB]
Err:1 http://mirror-1.truenetwork.ru/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Fetched 30.5 kB in 7s (3,903 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirror-1.truenetwork.ru/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.




What should I do now?

re4son
2020-04-24, 22:42
https://www.kali.org/news/kali-linux-2018-1-release/
second paragraph

glestwid
2020-04-25, 09:52
Used the command from this paragraph, got the following response:


root@kali:~/reaver-wps-fork-t6x/src# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
gpg: no valid OpenPGP data found.

re4son
2020-04-25, 10:09
You're probably better off reinstalling using the latest image but if you would like to troubleshoot your way out of this then I'd recommend to separate the above command line into it's individual components:


wget -q -O archive-key.asc https://archive.kali.org/archive-key.asc
sudo apt-key add archive-key.asc

That should help you pinpointing the source of the problem.

I very much doubt that you'll be able to upgrade your system without major hiccups. Catching up on over two years of updates is asking for trouble. I would really start from scratch.

glestwid
2020-04-28, 15:44
Ok, I tried to get Wine for the latest Kali (2020.1) but faced with "Permission denied" responses.
3979

Also, when I tried to use dpkg-reconfigure kali-grant-root per this article (https://www.bleepingcomputer.com/news/linux/kali-linux-to-default-to-non-root-user-with-20201-release/) I got "Command not found" instead of granted root access. How can I do priviledged operations with this new version?

re4son
2020-04-29, 00:35
Ok, I tried to get Wine for the latest Kali (2020.1) but faced with "Permission denied" responses.
Use "sudo"



Also, when I tried to use dpkg-reconfigure kali-grant-root per this article (https://www.bleepingcomputer.com/news/linux/kali-linux-to-default-to-non-root-user-with-20201-release/) I got "Command not found" instead of granted root access. How can I do priviledged operations with this new version?
Did you install "kali-grant-root" before running
dpkg-reconfigure kali-grant-root like the article said?