WHAT'S NEW?
Loading...
Showing posts with label Customization. Show all posts
Showing posts with label Customization. Show all posts


How to solve the error “404 Not Found” during Kali Linux updates:

While updating a new installation of Kali Linux, I received the error message Err http://http.kali.org/kali/ kali/non-free metasploit amd64 4.8.2-2014012201-1kali0 404 Not Found.
Apparently, the hostname http.kali.org points to a CDN and not all of its mirrors contain updated packages. In order to solve this I went to the Kali mirror list and chose another mirror from my continent. I then updated the file /etc/apt/sources.list accordingly (replace with your chosen mirror):
  • Uncomment this line:
    # deb http://http.kali.org/kali kali main non-free contrib
  • Insert line with the mirror URL below:
    deb http://mirror.pcextreme.nl/kali kali main non-free contrib
Make sure to choose a mirror from your continent, if possible.
Finally, update the package database, then try to upgrade Kali Linux again:
  • apt-get update
  • apt-get upgrade
If the update succeeds but the upgrade still fails, try with another mirror. If the update fails, make sure you have entered the mirror address correctly into /etc/apt/sources.list. Don’t include the trailing /README.






Most of the time when you see Kali-Linux tutorial on YouTube, you will find the custom background text on the terminal. it,s looking very interesting.
Today i am going to show you How to Change Background Text in Kali Linux Terminal ?

open the terminal and enter the following command
root@Kali:~# apt-get install figlet

now go to the File System and open the etc folder.

now Search for bash.bashrc file and open with the Leafpad .

now enter the figlet “Yourtext” and save it.


now open the terminal, your custom text is there on the terminal.


Kali Linux is becoming popular and more and more users are using it to try out different things. When installing kali, you get to choose a hostname, but in case you accepted the default hostname (kali) and later want to change it, here’s a How to guide to change hostname in Kali Linux.
Now just changing hostname to something else might not be enough. How about we change hostname every time you boot your computer to a random one? That could be fun. It also helps to avoid suspicion from System Admins in your network to see “kali” in their network. Like BackTrack, SysAdmins doesn’t like Kali much (I mean why would they? Kali is designed to poke and prod around the network to find vulnerability). Even if you’re using Kali as your primary OS, it just raises eyebrows and you might get a visit from an over-conscious SysAdmin. So we will discuss all possible ways, change hostname to something else permanently and change hostname randomly in each boot.
  1. Change hostname permanently and make it sticky – with reboot
  2. Change hostname permanently and make it sticky  - without rebooting
  3. Change hostname randomly in each boot time.

Change hostname permanently – with reboot

Step 1: edit hostname file

Open hostname file from /etc directory and modify the name in there.
leafpad /etc/hostname
 

Let’s say we change the name from kali to aiur

How to change hostname in Kali Linux - 2- blackMORE Ops
Save the file.

Step 2: edit hosts file

Open hosts file from /etc directory and modify the name in there.
leafpad /etc/hosts
 
How to change hostname in Kali Linux - 3 - blackMORE Ops 

Change kali to aiur. 

How to change hostname in Kali Linux - 4 - blackMORE Ops 

Save the file.

Step 3: reboot

Now reboot to reflect your changes
reboot
And you should see the new hostname coming up in terminal (i.e. root@aiur)

How to change hostname in Kali Linux - 6 - blackMORE Ops 

 

Change hostname permanently – without reboot

Don’t want to reboot?  Here’s how

Follow step 1 and 2 from above

i.e.
  1. Update /etc/hostname
  2. Update /etc/hosts, so local address (es) resolves with the new system name.

Reload configuration files

Type in following 3 commands one at a time.

service hostname.sh start
service networking force-reload
service network-manager force-reload
 
 
How to change hostname in Kali Linux - 7 - blackMORE Ops 

Now force-reload networking service.

How to change hostname in Kali Linux - 8 - blackMORE Ops 

This will temporarily disconnect your system from the network (ssh usually resists short disconnection)
This might definitively disconnect your system from the network because networking might not restore connections; please reboot, which is not lazy, but ensures that your setup is really correct





So we need to reload network-manager service as well.


This should reconnect networking again.

How to change hostname in Kali Linux - 11 - blackMORE Ops 

Depending on what other services you’re running, i.e. avahi, metasploit, postgresql, cups, openSSH server, ssmtp etc. you might have to restart them all.
Now you must close your existing terminals to have the new hostname coming up at the top. See following screenshot with highlighting.
First screenshot is after re-loading all the required services. Note that it’s still showing root@kali in the top. uname -a or hostname shows correct info though.


If I close this terminal and open a new one, root@kali becomes root@aiur which is what we want.

How to change hostname in Kali Linux - 13 - blackMORE Ops

Change hostname randomly in each boot time

Following procedure will allow you to change your hostname randomly in each boot. That hostname will stick until you reboot again.

Create a bash script

Create a script which will automate the procedure
In this terminal create a file.
touch newhostname
leafpad newhostname
 
 
How to change hostname in Kali Linux - 14 - blackMORE Ops


Now, add the following lines to your newly created file:
#!/bin/bash
cp -n /etc/hosts{,.old}
idomainname=$(domainname -i)
fdomainname=$(domainname -f)
newhn=$(cat /dev/urandom | tr -dc 'A-Z' | head -c8)
echo $newhn > /etc/hostname
mv /etc/hosts /etc/hosts.old
echo "127.0.0.1 localhost" > /etc/hosts
echo "$idomainname $fdomainname $newhn" >> /etc/hosts
echo "# The following lines are desirable for IPv6 capable hosts" >> /etc/hosts
echo "::1     localhost ip6-localhost ip6-loopback" >> /etc/hosts
echo "ff02::1 ip6-allnodes" >> /etc/hosts
echo "ff02::2 ip6-allrouters" >> /etc/hosts
service hostname.sh stop
sleep 1
service hostname.sh start
service networking stop
sleep 1
service networking start
service network-manager stop
sleep 1
service network-manager start
xhost +$newhn
exit

Save it and exit leafpad.
Note: I’ve used only CAPS here for new hostname, 'A-Z'. You can also choose a mixure of uppercase and lowercase ('A-Za-z') or numbers etc.
Also I’ve chosen 8 characters long hostname head -c8, you can change it to any length you like.

Move script to /usr/bin/ folder

We need to move this file to /usr/bin.
mv newhostname /usr/bin/newhostname

Make it executable

Use the following command to make newhostname file executable.
chmod +x /usr/bin/newhostname
 
 
How to change hostname in Kali Linux - 16 - blackMORE Ops

 

Make it run at Startup:

Now that we have the script in right place and it’s executable, we need to add it your Startup applications. This will allow your system to run it every time you reboot your machine and generate a new hostname for you.
Follow the steps below:
  1. Click on “Applications” –> “System Tools” –> “Preferences” –> “Startup Applications”
  2. Click “Add”
  3. Fill in:
    1. Name: Random Host Name
    2. Command: /usr/bin/newhostname
    3. Comment: Start Kali with a random hostname each boot
  4. Click Save
  5. Close Windows

How to change hostname in Kali Linux - 17 - blackMORE Ops

How to change hostname in Kali Linux - 18 - blackMORE Ops 

How to change hostname in Kali Linux - 19 - blackMORE Ops

Reboot

Finally reboot your machine to load the script at start-up.
reboot
 
How to change hostname in Kali Linux - 5 - blackMORE Ops 

Enjoy your new hostnames.



File Operations

pwd                        Print Name Of Current/Working Directory
cd                           Changing The Working Directory
cp                           Copy Files Or Directory
rm                           Remove Files And Directory
ls                            List Of Directory Contents
mkdir                      Make Directory
cat                          Concatenate Files And Print On Standard Output
mv                          Move Files
chmod                    Change Files Permissions

Know Your System
                                                   
uname                     Print System Information
who                        Show Who Is Logged On
cal                          Displays Calculator
date                        Print System Date And Time
df                           Report File System Disk Space Usage
du                           Estimate File Space Usage
ps                           Displays Information Of Current Active Processes
kill                           Allows To Kills Process
clear                        Clear The Terminal Screen
cat /proc/cpuinfo     Cpuinfo Display CPU Information
cat /proc/meminfo    Display Memory Information

Compression

tar                           To Store And Extract Files From An Archive File Known As Tar File
gzip                         Compress Or Decompress Named Files


Network

ifconfig                    To Config Network Interface
ping                         Check The Other System Are Reachable From The Host System
wget                        Download Files From Network
ssh                          Remote Login Program
ftp                           Download/Upload Files From/To Remote System
last                          Displays List Of Last Logged In User
telnet                       Used To Communicate With Another Host Using THe Telnet Protocol


Searching Files

grep                        Search Files(s) For Specific Text
find                        Search For Files In A Directory Hierarchy
locate                      Find Files By Name


Code
Precode 



You can now install Kali Linux on any Android Phone or Tablet. Pre-requisite to install Kali Linux is here below.

  • OS version: Android 2.0
  • Memory: 5 GB free
  • Fast wireless connection
  • Patience to wait for distribution and boot from the network
Please click here to follow the steps. Than

 

Tor (used to stand for "The Onion Router", but it's no longer considered an abbreviation, so it's just "Tor"), is an anonymity network, used to surf the web (and more) anonymously. Basically, anyone running the Tor software on their computer runs a proxy, and traffic gets passed (encrypted) from one person running Tor to another person running Tor, multiple times through many users, until it get's to the page that you requested. Hence the term "Onion" used to describe it, since it works in "layers". Each person running Tor on their computer is called a "Node".
To the page (and anyone logging requests to that page, such as the website owner for example) they can only see the IP address of the last Node (called the "end node"). Any communication along the way, between you, when you request the website page, and the final destination, is encrypted, and cannot be analyzed. However, the last Node in the chain can log and view traffic through it, if the person running it is unscrupulous, so for that reason it can't be said that Tor is 100% anonymous.
TOR Auto-install Bash Script
#!/bin/sh
echo "deb http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.list
clear scr
echo "[*] Installing the keys...."
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
echo "Ready!!"
clear scr
echo "[*] Updating Repositories...."
apt-get update
clear scr
echo "[*] Installing TOR"
apt-get install deb.torproject.org-keyring
apt-get install tor
echo "Ready!!"
echo "[*] Installing Vidalia"
apt-get install vidalia
echo "Ready!!"
echo "[*] Installing iceweasel-torbutton"
apt-get install iceweasel-torbutton
echo "Ready!!"
clear scr
echo "[*] Installing Privoxy"
apt-get install privoxy
echo "[*] Configuring privoxy"
echo "forward-socks5 / 127.0.0.1:9050 ." >> /etc/privoxy/config
echo "Ready!!"
service tor restart
service privoxy restart
echo "Tor has been installed successfully."
Save this script to a file like torinstall.sh and chmod +x it.
#chmod +x torinstall.sh
#./torinstall.sh


To install Compiz you need to modify sources.list. This file is located in /etc/apt/ directory. Open sources.list in a leafpad editor or any other text editor and add these lines
## SID: to get compiz
deb http://ftp.us.debian.org/debian/ sid main non-free contrib

Now open root terminal window and type
apt-get update
apt-get -t sid install compiz

 you are done installing Compiz


LazyKali is an awesome script written in bash shell. It can automate the whole update and install new tools in your hack repository. As the name suggests, you can get all the updates on Kali Linux and your repositories in one place by running this script. Please read the description of the project here to know what tools are there that are going to be added when you run the script. Download lazykali.sh.
* Warning: Disable firewall or Internet Security application if your Kali Linux is installed in a virtual machine.
To install the script on Kali Linux, run 
  • rootkali:~#./lazykali.sh on root terminal window. (If you get a message Permission Denied, then first type rootkali:~#chmod +x lazykali.sh and then rootkali:~#./lazykali.sh).
  • if the script is not installed it may prompt you to install. Type Y to install the script
  • Once the script is installed, it will check the version. If the version is old, allow it to update by typing Y.
  • Once execute, you will get a command line interface. Check the below screenshot of the tool.
  • If Kali Linux is not updated, then type 1 to update Kali Linux. Once it is updated, type 6 to check available tools that LazyKali offers you.

  • Type 3 to install Hackpack. It will prompt you to install Hackpack. Type Y to install Hackpack.
  • Now click on Applications on the top left corner of Kali Desktop and you will find Hackpack tab.
The advantage of LaziKali is that you can modified the code and add some extra tools to this script to save time and effort. Please find the source code: https://code.google.com/p/lazykali/source/browse/lazykali.sh

Source: kali4hakers.blogspot.in
How to reset root password in kali linux ? Now i will show you how to do that :)
Firstly >
1. Boot the machine and wait until GRUB Boot Loader comes up. Select recovery mode and then press e to edit.



2. Change the permission mode from ro to rw and modify boot loader file in init=/bin/bash and then F10 make the changes and reboot the system.


 




3. Once the system reboot, shell prompts you for the password to manage the system. Type passwd root and then type the desired password of your choice. Confirm the password and then hit enter. If new password and retype new password matches correctly, then you will get the message password updated successfully. Type shutdown -h now to press power button to shutdown the system and then boot the system again.

 




4. Type root and the new password. If you type the new password correctly, then you will desktop screen of Kali Linux.

 



 


Source: kali4hakers.blogspot.in


In Ubuntu we can use " Ubuntu Tweak " for cleaning our cache ,etc.
But Kali also has a cleaner " KALI CLEANER " 
What it does?
It cleans apt cache.
Remove old config files.
Remove old kernels.
Empty every trashes.

What you can do is to save the script on your Desktop. Make it executable and clean kali linux.

Ex: root@kali:~/Desktop# ./kali_cleaner.sh

Download:
https://github.com/MasterButcher/kali-cleaner

or you can use command in terminal:
git clone https://github.com/MasterButcher/kali-cleaner.git



Root Terminal

When perfoming tasks which do not need root or administrator privileges, use a normal terminal. Only use a root terminal to perform tasks which need root or administrator privileges. If you do something wrong in the Root Terminal, you could mess up the operating system.

From the Menu

With some Linux distributions, you can open a root terminal from the menu while logged in using your username. You need to enter the password.

Log in as Root

With many Linux distributions, you log in as root and open the terminal.

Sudo

Some Linux distributions use sudo. When using these distributions, you can use a normal terminal, and type "sudo" preceeding each command you want to run as root.
Examples of Linux distributions which use sudo include Mint, Kubuntu, Tiny Core, Ubuntu, Xubuntu and distributions based on them.

Debian Gnome

You can open a Root Terminal in Debian Gnome from the menu. It is under Applications -> Accessories -> Root Terminal. You need to enter the root password.
Another option is to open a normal Terminal, and type:
su
You need to enter the root password.

Debian KDE

You can open a Root Terminal from the menu in Debian KDE. It is under System -> More Applications -> Terminal Program - Super User Mode. You will need to enter the root password.
Another option is to open a normal Terminal, and type:
su
You need to enter the root password.

Debian Xfce

To start a Root Terminal in Debian Xfce, open a Normal Terminal, and type:
su
You need to enter the root password.

Tiny Core

When using Tiny Core, you can use a normal Terminal, and type "sudo" before each command.
A Root Terminal can be started in Tiny Core from the menu (right mouse click). Go to XShells -> Root Access -> then which ever you prefer.
Another option is to open a normal Terminal and type:
sudo su

Ubuntu, Kubuntu and Xubuntu

When using Ubuntu, Kubuntu, Xubuntu, Mint, and distributions based on them, you can use a normal Terminal, and type "sudo" before each command. You need to enter the password.
Some things may not work using sudo.
To get a root terminal, type:

sudo -i

Return to a Normal Terminal

If you started a root terminal using "su," "sudo su" or "sudo -i," to return to a normal terminal, type:

exit

Another option is to close the terminal and reopen it.
If you are logged in as root, log out and log in using your username.
Today we will learn something light and easy about how to split kali linux terminal window. This tips and trick will useful when we want to run many process and we can monitor all of the process state in the same window.
This is the result we want to get in the end of this tips and trick:
Split Kali Linux Terminal Window
Requirement:
1. Linux Terminal

Step by step how to Split Kali Linux Terminal Window:

1.  In this tips and trick we will utilize screen. As the manual page says:
Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).
2. Type screen in the terminal.
Split Kali Linux Terminal Window
press ENTER to skip and then continue to next step.
3. To vertically divide the terminal
press CTRL + A and then press | (pipe) sign
4. To horizontally divide the terminal
press CTRL + A and then press SHIFT + S
Split Kali Linux Terminal Window
5. To move between the window
press CTRL + A and then press TAB
6. To activate the window
press CTRL + A and then press C
FInally in the end here is the result I've made
Split Kali Linux Terminal Window
Conclusion:
1. You can make your own and you can create which one the most comfortable layout for you.
2. To divide the window it's depend with the active cursor position in which window.
3. You can share your screen window here and opinion why you use that layout.
Hope it's useful :-)
- See more at: http://www.hacking-tutorial.com/tips-and-trick/split-kali-linux-terminal-window/#sthash.0yJyoYek.dpuf
Today we will learn something light and easy about how to split kali linux terminal window. This tips and trick will useful when we want to run many process and we can monitor all of the process state in the same window.
This is the result we want to get in the end of this tips and trick:
Split Kali Linux Terminal Window
Requirement:
1. Linux Terminal

Step by step how to Split Kali Linux Terminal Window:

1.  In this tips and trick we will utilize screen. As the manual page says:
Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).
2. Type screen in the terminal.
Split Kali Linux Terminal Window
press ENTER to skip and then continue to next step.
3. To vertically divide the terminal
press CTRL + A and then press | (pipe) sign
4. To horizontally divide the terminal
press CTRL + A and then press SHIFT + S
Split Kali Linux Terminal Window
5. To move between the window
press CTRL + A and then press TAB
6. To activate the window
press CTRL + A and then press C
FInally in the end here is the result I've made
Split Kali Linux Terminal Window
Conclusion:
1. You can make your own and you can create which one the most comfortable layout for you.
2. To divide the window it's depend with the active cursor position in which window.
3. You can share your screen window here and opinion why you use that layout.
Hope it's useful :-)
- See more at: http://www.hacking-tutorial.com/tips-and-trick/split-kali-linux-terminal-window/#sthash.0yJyoYek.dpuf
Today we will learn something light and easy about how to split kali linux terminal window. This tips and trick will useful when we want to run many process and we can monitor all of the process state in the same window.
This is the result we want to get in the end of this tips and trick:
Split Kali Linux Terminal Window
Requirement:
1. Linux Terminal

Step by step how to Split Kali Linux Terminal Window:

1.  In this tips and trick we will utilize screen. As the manual page says:
Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).
2. Type screen in the terminal.
Split Kali Linux Terminal Window
press ENTER to skip and then continue to next step.
3. To vertically divide the terminal
press CTRL + A and then press | (pipe) sign
4. To horizontally divide the terminal
press CTRL + A and then press SHIFT + S
Split Kali Linux Terminal Window
5. To move between the window
press CTRL + A and then press TAB
6. To activate the window
press CTRL + A and then press C
FInally in the end here is the result I've made
Split Kali Linux Terminal Window
Conclusion:
1. You can make your own and you can create which one the most comfortable layout for you.
2. To divide the window it's depend with the active cursor position in which window.
3. You can share your screen window here and opinion why you use that layout.
Hope it's useful :-)
- See more at: http://www.hacking-tutorial.com/tips-and-trick/split-kali-linux-terminal-window/#sthash.0yJyoYek.dpuf