Linux Foreground Process

When working within the Linux terminal and issuing a command to launch an application, the terminal will continue to run that application and it may seem the need to spawn a new terminal window. However, with using the command shortcut to foreground a process (ctrl + z), this will take the current application within terminal and place it as a background process:

root@kali:~# maltego
Config File path = /root/.maltego/v4.2.3/etc/maltego.conf
canonical: /usr/lib/jvm/java-8-openjdk-amd64/jre
javaHome: /usr/lib/jvm/java-8-openjdk-amd64/jre
resource:com/paterva/maltego/java/config/jre/TestJDK.class -> /tmp/temp397219231743671113628418889499750/TestJDK.class
executing: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -classpath /tmp/temp397219231743671113628418889499750 TestJDK, in: .
result: 0
command execution finished
out: 1.8.0_212, 25.212-b01, Oracle Corporation, Linux, amd64
jdkhome: /usr/lib/jvm/java-8-openjdk-amd64/jre
canonical: /usr/lib/jvm/java-8-openjdk-amd64/jre
javaHome: /usr/lib/jvm/java-8-openjdk-amd64/jre
executing: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -classpath /tmp/temp397219231743671113628418889499750 TestJDK, in: .
result: 0
command execution finished
out: 1.8.0_212, 25.212-b01, Oracle Corporation, Linux, amd64
jdkhome: /usr/lib/jvm/java-8-openjdk-amd64/jre
Checking for updates Sat Jan 04 00:24:29 GMT 2020
Found 0 updates.

When the background a process command shortcut is issued, the current process is backgrounded and awaits for further input from the user. You will now notice the application may seem unresponsive. To resume the process, you will need to bring the process to the foreground using the fg command, e.g.:

root@kali:~# fg 1

To obtain the number ID for the backgrounded process to restore as a foreground process, you can issue the jobs command:

root@kali:~# jobs
[1]+ Stopped maltego

Clicking on Places in Linux displays CHIRPS message

When clicking on Places in Linux, a message is displayed advising of disabling error reporting under a CHIRPS message. This can be a result of a corrupted file manager within the GNOME Desktop configuration, i.e. uninstalled file manager dependencies during a previously issued apt-get autoremove or equivalent command.

To fix this issue, you will need to reinstall the GNOME file manager packages in Linux:

1. Download the lib files for GNOME desktop:

2. Download the data files for GNOME desktop:

3. Install GNOME data files package:
dpkg -i gnome-desktop3-data_3.34.1-1_all.deb

4. Install GNOME lib files package:
dpkg -i libgnome-desktop-3-18_3.34.1-1_amd64.deb

5. Install Nautilus file manager with apt:
apt install nautilus

With file manager now installed, clicking on Places should now result in the correct action.

Netdiscover running on NAT interface not finding IP addresses on host-only network

Netdiscover commonly found as an application within Kali Linux can in certain circumstances, fail to scan and list IP address on your local area network (LAN), especially if you are running the Netdiscover tool within a virtualised environment using NAT as as the network adaptor connection.

Netdiscover uses Address Resolution Protocol (ARP), which assigns IP addresses to MAC addresses. ARP by design will not cross network boundaries that are segregated by layer 3 routing or switch virtual interfaces (SVI) running at layer 3, as ARP packets will not be forwarded on by these layer 3 devices.

For Netdiscover to work, you will need to configure your virtualised environment to use Bridged network adaptor connection to be directly connected to your connect. This will enable ARP packets to be sent beyond the local virtualised network boundaries.

To configure Bridged networking configuration for your environment, please consult your software’s documentation.

Fix “Could not validate this preference file” in Nessus

If you receive the below error message when downloading the latest Nessus plugin updates, the following fix may help:

/opt/nessus/sbin/nessuscli update --plugins-only

----- Fetching the newest updates from -----

Could not validate this preference file. Have installation files been copied from another system?
Nessus Plugins: Failed

The first step to fix the error, is to request a new activation code from Tenable for the Nessus program: Link.

Then you will need to register your new activation key, received by email and associate to Nessus:
/opt/nessus/sbin/nessuscli fetch --register

How to install Hyperion in Linux

Hyperion is a runtime encrypter for 32-bit portable executables. It is a reference implementation and bases on the paper “Hyperion: Implementation of a PE-Crypter”.

Hyperion is not included in Kali Linux repositories. To install Hyperion in Linux, run the following commands:

Download the files from Github:

Unzip the archive file:

Invoke the MingGW compiler to compile Hyperion in to a executable file:
i686-w64-mingw32-c++ Hyperion-1.2/Src/Crypter/*.cpp -o hyperion.exe

How to install Ming C compiler in Linux

MinGW, a contraction of “Minimalist GNU for Windows”, is a minimalist development environment for native Microsoft Windows applications.

MinGW provides a complete Open Source programming tool set which is suitable for the development of native MS-Windows applications, and which do not depend on any 3rd-party C-Runtime DLLs. (It does depend on a number of DLLs provided by Microsoft themselves, as components of the operating system; most notable among these is MSVCRT.DLL, the Microsoft C runtime library. Additionally, threaded applications must ship with a freely distributable thread support DLL, provided as part of MinGW itself).

The Ming compiler is included in Kali Linux repositories, but is not installed by default. To install Ming C compiler in Linux, run the following command:

apt-get install mingw-w64

MinGW (mingw-w64) is the successor to mingw32.

Fix the Linux Login Loop

1. While on the login screen:
Press Ctrl + Alt + F1
or Ctrl + Alt + F2 (Virtual instance)

2. Login to the shell prompt with username and password

3. Type the following commands:
dpkg --configure -a (fix any corrupted packages)
sudo apt-get update (update package repository)
sudo apt-get upgrade (upgrade the package repository)
sudo reboot (reboot the system)

Advanced Netcat Commands

Update to post “Netcat Commands –

File transfer between client/server
#cat file.pdf | nc -l -p 1234

#nc localhost 1234 > file.pdf

Web server
#(echo -e “HTTP/1.0 200 Ok”; echo “My HTTP server”;) | nc -q 1 -l -p 8080
Browse to the location – http://localhost:8080

Execute program
#nc -l -p 123 -e /bin/bash

#nc <server_ip> 123