You know that feeling you get as a kid when you receive a new toy and all you want to do is just play with it all day long ? That is how i feel about Kali !
I find myself in the position of documenting the solution for an issue again, after trying to run a mtr. The response i got from the Terminal was “bash: mtr: command not found”. I didn’t panic and i tried to install it from the repository but much to my disappointment i got this :
root@kali:~# apt-get install mtr
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mtr
Well, that’s a bummer!
After the download is complete, go to the location where it was written and extract the files from the debian package using the command:
$ dpkg -x mtr-tiny_0.86-1+b1_amd64.deb /root/Documents
You can specify another location for the extracted files if you wish so.
Use the nano .bashrc command to add an alias.
I added the line : alias mtr='/root/Documents/usr/bin/mtr'
Your alias will need to point to the location where the mtr program was extracted.
Well, this is it !
If you want to log your mtr, just use the command in the picture below:
$ mtr 8.8.8.8 --report -c 10 -n > test_file
$ mtr 8.8.8.8 --report -c 10 -n > test_file
I hope you found this useful.
Take care ! :)
Niciun comentariu :
Trimiteți un comentariu