Introduction
In this article we are going to discuss that how we can adjust network proxy settings in Kali Linux. This can be a basic step for penetration testers to regulate community proxy settings in Kali Linux. Users located behind an authenticated or unauthenticated proxy connection must modify bash.bashrc and apt.conf. Both files are located in the /root/etc directory.
export ftp_proxy="ftp://user:password@proxyIP:port"
export http_proxy="http://user:password@proxyIP:port"
export https_proxy="https://user:password@proxyIP:port"
export socks_proxy="https://user:password@proxyIP:port"
Following screenshot reveals that how you can edit that file:
Further issues to do
Replace proxyIP and port with your proxy IP address and port number respectively, and replace the username and password with your authentication username and password. If there's no need to authenticate, write only the part following the @ symbol. In the same directory, create the apt.conf file and enter the following command lines, as shown in the following screenshot:
Securing communications with Secure Shell
To minimize detection by a target network during testing, Kali does not enable any externally-listening network services. Some services, such as Secure Shell (SSH), are already installed. However, they must be enabled prior to use. Kali comes preconfigured with default SSH keys. Before starting the SSH service, it's a good idea to disable the default keys and generate a unique keyset for use. Move the default SSH keys to a backup folder, and then generate a new SSH keyset using the following command:
dpkg-reconfigure openssh-server
The process of moving the original keys and generating the new keyset is shown in the following screenshot:
To confirm that the newly generated keys are distinctive, calculate their md5sum hash values, and evaluate with the unique keys as proven within the following screenshot:
To start the SSH service using the menu, select Applications | Kali Linux | System Services | SSHD | SSHD Start.
To start SSH from the command line, use the command line shown in the following screenshot:
To confirm that SSH is operating, carry out a netstat query, as proven within the following screensho:
The SSH daemon is listening on port 22 within the earlier instance. To cease SSH, use the next command:
/etc/init.d/ssh stop
COMMENTS