Home > Backtrack 4 > Merubah tampilan konsole/terminal di backtrack 4

Merubah tampilan konsole/terminal di backtrack 4

sceenshot terminal saya

terminal saya

Settingan untuk mengubah terminal berada pada directory home anda yang bernama .bashrc akan tetapi terhidden (tanda titik berada pada file). langsung aja buka terminal (jadi root), trus ikuti langkah-langkah berikut.

1. install figlet

root@bt:~# apt-get install figlet

2. install cowsay

root@bt:~#apt-get install cowsay

3. ketik

root@bt:~# gedit .bashrc

masukkan script berikut dibagian paling bawah.

#!/bin/bash
#——————————————////
# Bash Hafizh As’ad
# Last Modified 3 Jan 2012 by @kyoshiro67
# Running on Backtrack 4
#——————————————////
#——————————————////
# Colors:
#——————————————////
black=’\e[0;30m’
blue=’\e[0;34m’
green=’\e[0;32m’
cyan=’\e[0;36m’
red=’\e[0;31m’
purple=’\e[0;35m’
brown=’\e[0;33m’
lightgray=’\e[0;37m’
darkgray=’\e[1;30m’
lightblue=’\e[1;34m’
lightgreen=’\e[1;32m’
lightcyan=’\e[1;36m’
lightred=’\e[1;31m’
lightpurple=’\e[1;35m’
yellow=’\e[1;33m’
white=’\e[1;37m’
nc=’\e[0m’

#password login
#{
#echo -n “c0d3-num63r : ”
#read kyoshiro
#if [ “$kyoshiro” == “pwnsauce” ] ; then
#echo “login is complete!”
#echo -e “${red}by kyoshiro67”
#else
#reboot
#fi
#}

# Mod Terminal
cowsay -f eyes “Fu can change the world !”

#Figlet nama
figlet “Indonesia Backtrack Team”

# system informasi

echo -ne “${lightblue}”; echo “=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=”
echo -ne “${lightgreen}Today is:\t\t${red}” `date`; echo “”
echo -e “${lightgreen}Kernel Information: \t${red}” `uname -smr`
echo -e “${lightgreen}Time: \t\t\t${red}” `date +%r`
echo -e “${lightgreen}Date: \t\t\t${red}” `date +”%d-%m-%Y”`
echo -e “${lightgreen}User: \t \t \t${red}” `whoami`
echo -ne “${lightgreen}$HOSTNAME ${lightgreen}uptime is: ${red} \t \t “;uptime | awk /’up/ {print $3,$4,$5,$6,$7,$8,$9,$10}’
#List network
echo -ne “${lightgreen}Ip address: \t \t ${red}” ;lynx -dump -hiddenlinks=ignore -nolist http://checkip.dyndns.org:8245/ | grep “Current IP Address” | cut -d”:” -f2 | cut -d” ” -f2
echo “”
echo -e “${lightgreen}Indonesian Backtrack Team”
echo -ne “${white}${italic}the quieter you become, the more you able to hear”
echo -e “\t \t ${cyan}@${white}k${lightgreen}y${white}o${red}s${yellow}h${green}i${blue}r${purple}o${lightred}6${lightgray}7”
echo -ne “${lightblue}” ; echo “=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=”

4. save.

note: fiture password pada script diatas tidak saya aktifkan. untuk mengaktifkan tinggal hilangkan tanda pagar pada bagian

#password login
#{
#echo -n “c0d3-num63r : ”
#read kyoshiro
#if [ “$kyoshiro” == “pwnsauce” ] ; then
#echo “login is complete!”
#echo -e “${red}by kyoshiro67”
#else
#reboot
#fi
#}

menjadi

#password login
{
echo -n “c0d3-num63r : ”
read kyoshiro
if [ “$kyoshiro” == “pwnsauce” ] ; then
echo “login is complete!”
echo -e “${red}by kyoshiro67”
else
reboot
fi
}

Untuk list lengkapnya tema terminal saya bisa anda lihat dibawah ini

# ~/.bashrc: executed by bash(1) for non-login shells.

#!/bin/bash
#——————————————////
# Bash Hafizh As’ad
# Last Modified 3 Jan 2012 by @kyoshiro67
# Running on Backtrack 4
#——————————————////
#——————————————////
# Colors:
#——————————————////
black=’\e[0;30m’
blue=’\e[0;34m’
green=’\e[0;32m’
cyan=’\e[0;36m’
red=’\e[0;31m’
purple=’\e[0;35m’
brown=’\e[0;33m’
lightgray=’\e[0;37m’
darkgray=’\e[1;30m’
lightblue=’\e[1;34m’
lightgreen=’\e[1;32m’
lightcyan=’\e[1;36m’
lightred=’\e[1;31m’
lightpurple=’\e[1;35m’
yellow=’\e[1;33m’
white=’\e[1;37m’
nc=’\e[0m’

# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don’t do anything
[ -z “$PS1” ] && return

# don’t put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval “$(lesspipe)”

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z “$debian_chroot” -a -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we “want” color)
case “$TERM” in
xterm-color)
#PS1=’${debian_chroot:+($debian_chroot)}\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;34m\]\w\[33[00m\]\$ ‘
;;
*)
PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ‘
;;
esac

# Comment in the above and uncomment this below for a color prompt
PS1=’${debian_chroot:+($debian_chroot)}\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;34m\]\w\[33[00m\]\$ ‘

# If this is an xterm set the title to user@host:dir
case “$TERM” in
xterm*|rxvt*)
PROMPT_COMMAND=’echo -ne “33]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}07″‘
;;
*)
;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ “$TERM” != “dumb” ]; then
eval “`dircolors -b`”
alias ls=’ls –color=auto’
#alias dir=’ls –color=auto –format=vertical’
#alias vdir=’ls –color=auto –format=long’
fi

# some more ls aliases
#alias ll=’ls -l’
#alias la=’ls -A’
#alias l=’ls -CF’

# enable programmable completion features (you don’t need to enable
# this, if it’s already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
export PATH=$PATH:/opt/oracle/instantclient_10_2
export SQLPATH=/opt/oracle/instantclient_10_2
export TNS_ADMIN=/opt/oracle/instantclient_10_2
export LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2
export ORACLE_HOME=/opt/oracle/instantclient_10_2

#password login
{
echo -n “c0d3-num63r : ”
read kyoshiro
if [ “$kyoshiro” == “pwnsauce” ] ; then
echo “login is complete!”
echo -e “${red}by kyoshiro67”
else
reboot
fi
}

# Mod Terminal
cowsay -f eyes “Fu can change the world !”

#Figlet nama
figlet “Indonesia Backtrack Team”

# system informasi

echo -ne “${lightblue}”; echo “=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=”
echo -ne “${lightgreen}Today is:\t\t${red}” `date`; echo “”
echo -e “${lightgreen}Kernel Information: \t${red}” `uname -smr`
echo -e “${lightgreen}Time: \t\t\t${red}” `date +%r`
echo -e “${lightgreen}Date: \t\t\t${red}” `date +”%d-%m-%Y”`
echo -e “${lightgreen}User: \t \t \t${red}” `whoami`
echo -ne “${lightgreen}$HOSTNAME ${lightgreen}uptime is: ${red} \t \t “;uptime | awk /’up/ {print $3,$4,$5,$6,$7,$8,$9,$10}’
#List network
echo -ne “${lightgreen}Ip address: \t \t ${red}” ;lynx -dump -hiddenlinks=ignore -nolist http://checkip.dyndns.org:8245/ | grep “Current IP Address” | cut -d”:” -f2 | cut -d” ” -f2

echo “”
echo -e “${lightgreen}Indonesian Backtrack Team”
echo -ne “${white}${italic}the quieter you become, the more you able to hear”
echo -e “\t \t ${cyan}@${white}k${lightgreen}y${white}o${red}s${yellow}h${green}i${blue}r${purple}o${lightred}6${lightgray}7”
echo -ne “${lightblue}” ; echo “=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=”

c0d3-numb3r : pwnsauce

have fun🙂

Categories: Backtrack 4
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s