Using Metasploit I’ve sometimes seen this error: [-] Exploit failed [bad-config]: Rex::BindFailed The address is already in use or unavailable: (0.0.0.0:1234). To solve it: List processes listening on port 1234 lsof -i :1234 Kill a process with process ID 5678 kill -9 5678
linux
(Solution) – Exploit failed [bad-config]: Rex::BindFailed The address is already in use or unavailable
(Solution) Could not apply stored configuration to monitors error
I received this annoying message every time I logged-in in my Linux distro. After a small search with Google I found this solution: cd .cofig mv monitors.xml monitors.xml.oldexit Restart and you won’t see that message again.
(Solution) Add a new directory to home path in Linux
To add a new directory to your home path you just have to append the new directory to the PATH: $vim .bashrc In the last line of the file just add this: export PATH=$PATH:/homr/username/newDirectory/ Finally, restart your terminal.
(Solution) How to get dkpg install the dependencies that requires
kali@kali:~/downloads$ sudo dpkg -i terminus-1.0.106-linux.deb kali@kali:~/downloads$ sudo apt-get -f install kali@kali:~/downloads$ sudo dpkg -i terminus-1.0.106-linux.deb
(Solution) Change python default version (Kali linux)
kali@kali:/bin$ update-alternatives –list python kali@kali:/bin$ sudo update-alternatives –install /usr/bin/python python /usr/bin/python2.7 1 kali@kali:/bin$ sudo update-alternatives –install /usr/bin/python python /usr/bin/python3.7 2 kali@kali:/bin$ sudo update-alternatives –install /usr/bin/python python /usr/bin/python3.8 3 kali@kali:/bin$ sudo update-alternatives –config python Finally test everything is ok.
(Solution) Install python-pip in Kali Linux
ruben@kali:/etc/apt$ sudo apt search python-pip ruben@kali:/etc/apt$ sudo apt search python3-pip ruben@kali:/etc/apt$ sudo apt install python3-pip Downloading the specific package and installing with dkpg can solve also the issue. https://packages.debian.org/buster/all/python-pip/download
OpenVAS 9 install (Ubuntu)
You can find this tutorial here This is just a reminder-post to myself. OpenVAS is a framework of several services and tools offering a comprehensive and powerful vulnerability scanning and vulnerability management solution. Homepage A set of new packages for openvas 9 is now included.If you prefer to install them, you just have to install «openvas9» package instead of «openvas». Then, update scripts/data with the following commands:sudo apt install sqlite3sudo
(Solution) Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
Hello, To solve this issue when trying to apt-get your Ubuntu Linux use these commands: Option 1: ps aux | grep aptsudo kill processId Option 2: sudo rm /var/lib/apt/lists/lock Maybe it is also needed to:sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock Regards,Rubén
(Solution) Reload iptables on every boot
Hi, To be able to load your iptables ruled every time your Linux system is restarted just follow these commands.$ sudo iptables-save /etc/firewall.conf Open /etc/network/if-up.d/iptables and add: Provide executable permission:$ sudo chmod +x /etc/network/if-up.d/iptable Now, your iptable rules will be loaded every time your Linux box is booted. If you need to modify your rules just execute:$ sudo iptables-save /etc/firewall.conf Regards,Rubén
(Solution) How to compile a 32 bits application using a 64 bits linux system with gcc
Hi, In order to be able to compile a 32 bits application if you are using 64 bits Linux, -m32 modifier needs to be used. $ gcc hello.c -m32 -o hello.out will create a 32 bits application.$ gcc hello.c -m64 -o hello.out will create a 64 bits application. Regards,Rubén