Posts

Showing posts with the label Kali Linux

[How To] Install SEAL Python on a Raspberry Pi

Image
Follow this tutorial to install Microsoft SEAL 4.X for Python on a Raspberry Pi 3 device. You can follow the same commands to install it on any other Linux machine. I have copied the output for each command for your reference. $ uname -a Linux raspberrypi 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l GNU/Linux $ sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. $ sudo apt-get install git build-essential cmake python3 python3-dev python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done build-essential is already the newest version (12.9). git is already the newest version (1:2.30.2-1). python3 is already the newest version (3.9.2-3). python3-dev is already the newest version (3.9.2-3). python3-dev set to manually installed. cmake is alre...

[Solved] Fix upgrade errors in Kali Linux

Image
If you face errors from powershell-empire while upgrading Kali Linux, upgrade the pip packages for Flask and aiohttp with root privileges. Error - 1: Traceback (most recent call last):   File "/usr/share/powershell-empire/empire.py", line 11, in <module>     import empire.server.server as server   File "/usr/share/powershell-empire/empire/server/server.py", line 23, in <module>     import flask   File "/usr/lib/python3/dist-packages/flask/__init__.py", line 19, in <module>     from . import json   File "/usr/lib/python3/dist-packages/flask/json/__init__.py", line 15, in <module>     from itsdangerous import json as _json ImportError: cannot import name 'json' from 'itsdangerous' (/usr/lib/python3/dist-packages/itsdangerous/__init__.py) dpkg: error processing package powershell-empire (--configure):  installed powershell-empire package post-installation script subprocess returned error exit status...

Share folder from macOS to VirtualBox

Image
Follow these steps to share a folder from your host macOS to guest Kali Linux running inside VirtualBox. Step 1: From your macOS, Go to "System Preferences... >> Sharing" Step 2: Enable the File Sharing option and add a folder to share Step 3: Open VirtualBox >> Select Kali Linux (or any other image) Step 4: Click on "Settings >> Share Folder" Step 5: Click on Add new shared folder button and add the same folder you previously added in macOS from Step 2 Step 6: Log in to your Kali Linux image Step 7: Open Terminal and type the command "sudo adduser $USER vboxsf" Step 8: Reboot Kali Linux

[Solved] error: ‘getrusage’ was not declared in this scope

Image
Error: vb_perf.cpp: In function ‘int main(int, const char**)’: vb_perf.cpp:63:23: error: variable ‘main(int, const char**)::rusage rusage’ has initializer but incomplete type    63 |         struct rusage rusage = { };       |                       ^~~~~~ vb_perf.cpp:64:19: error: ‘RUSAGE_SELF’ was not declared in this scope    64 |         getrusage(RUSAGE_SELF, &rusage);       |                   ^~~~~~~~~~~ vb_perf.cpp:64:9: error: ‘getrusage’ was not declared in this scope; did you mean ‘rusage’?    64 |         getrusage(RUSAGE_SELF, &rusage);       |         ^~~~~~~~~       |         rusage Solution: Include this header to your source code: #include <...

[How To] Use Cryptopp in Kali Linux

Image
 Crypto++ is a popular C++ library for cryptography. Instruction in this article can be used to install Cryptopp for all operating systems similar to Kali Linux. Check out this article if you want to use it with Xcode in macOS. Step 1: Download Crypto++ using this link Step 2: Extract Crypto++ and switch to that directory from the terminal or shell. Step 3: $ make Step 4: $ make test Step 5: $ sudo make install Step 6: Compile your program using g++ -I/usr/local/include -L/usr/local/lib yourCode.cpp -lcryptopp

Fix update/upgrade errors in Kali Linux [Rolling Release 2016.1]

Image
Last year I published an article on this blog about fixing update and upgrade issues in Kali Linux and it helped many users and now again after a year this issue has occurred which can not be solved by previous trick hence posting a new article here. Check previous article: http://com.puter.tips/2015/03/fix-updateupgrade-errors-in-kali-linux.html This trick is better than previous one. All you need to do is check latest repository links and update it in your sources list. You can go to official Kali Linux website documents http://docs.kali.org/general-use/kali-linux-sources-list-repositories and check for the current repository. Then open /etc/apt/sources.list in your favorite editor and overwrite the file with latest repositories links you found from official website. For now you can gedit /etc/apt/sources.list and change it to as this is for latest version Kali Linux 2016.1 Rolling Release: deb http://http.kali.org/kali kali-rolling main contrib non-free # For ...

30 Must have softwares for Kali Linux

Image
Kali Linux is successor of BackTrack operating system that is developed by Offensive Security . Kali Linux comes as a full fledged o.s. for penetration testing. It has softwares preinstalled like Wireshark, Kismet, Metasploit framework, Aircrack ng, John the ripper and many many more tools for password cracking, data recovery, digital forensics and penetration testing by performing various attacks on websites and wired and wireless networks. But if you want to use Kali Linux as a your only o.s. for all your daily work then there are some softwares that you need to install. This softwares includes alternatives to Windows softwares in linux like Microsoft Office, Internet Explorer, Notepad, Outlook Express, uTorrent, Windows Media Player, Winzip etc.

Install Hadoop in Kali Linux

Image
In this tutorial I am going to demonstrate the steps to setup and install a single node hadoop cluster in kali linux. Installing Hadoop: Step 1: Install Java if it is not present on your machine. Step 2: Download Hadoop and extract it. Step 3: Set environment variables in ~/.bashrc. export HADOOP_HOME=/root/Downloads/hadoop export HADOOP_MAPRED_HOME=$HADOOP_HOME export HADOOP_COMMON_HOME=$HADOOP_HOME export HADOOP_HDFS_HOME=$HADOOP_HOME export YARN_HOME=$HADOOP_HOME export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin:$JAVA_HOME/bin:$HIVE_HOME/bin:$DERBY_HOME/bin export JAVA_HOME=/usr/local/jdk1.7.0_79 Step 4: Apply the changes. source ~/.bashrc

Install Redis in Kali Linux

Image
Redis: Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs. Step 1: sudo apt-get update sudo apt-get install build-essential sudo apt-get install tcl8.5 wget http://download.redis.io/releases/redis-3.0.0.tar.gz tar xzf redis-3.0.0.tar.gz

Fix update/upgrade errors in Kali Linux

Image
[This is post is for older release. If you are looking for fixing errors in Rolling Release (2016.1) go to this link: http://com.puter.tips/2016/08/fix-updateupgrade-errors-in-kali-linux.html ] If you are among the users who are getting errors while updating or upgrading in Kali Linux then your worries are over. I had the same issue and have found a solution. The errors occurs when performing any of the following commands: #apt-get update #apt-get upgrade #apt-get dist-upgrade and even if you try --fix-missing parameter with above commands it does not help! One of the error looks like: W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400

Install flash player in Kali linux

Image
Iceweasel is default browser for Kali linux which is built upon mozilla's firefox. I will show two methods to install flash player in Kali linux but it can be also used for other linux distros. Method 1 (Long Method): This method is mentioned in readme.txt file which you will get after downloading flash tarball. Here is the content given in that file: Installation instructions ------------------------- Installing using the plugin tar.gz:     o Unpack the plugin tar.gz and copy the files to the appropriate location.     o Save the plugin tar.gz locally and note the location the file was saved to.     o Launch terminal and change directories to the location the file was saved to.     o Unpack the tar.gz file.  Once unpacked you will see the following:         + libflashplayer.so         + /usr     o Identify the location of th...