Rabu, 11 Januari 2012

Backtrack 4 & 5

Now Begin.....................

//fav actress











#apt-update
#apt-upgrade
// update Linux

#svn up
// update metasploit

#python setup.py install
// for install python

#ln -s /opt/framework /opt/framework3
// If you attempt to run the unicornscan-pgsql-setup script from the menu,
// you get the following error:
// ./setup-unicornscan.sh: line 46: /opt/framework3/postgresql/data/pg_hba.diff.patch:
// No such file or directory...
// ./setup-unicornscan.sh: line 70: cd: /opt/framework3/postgresql/data/:
// No such file or directory
// [FATAL] pg_hba.diff.patch could not be applied. Exiting


#nano /etc/rc.local
// just add this line : su -c root startx
// save and reboot your system for automatic login

#update-grub
// there is not just one BT in my notebook BT5(sda1),BT4(sda2),BT3(sda3),BT2(sda5),BT1(sda6)
// then i just run that command for grub to check what is OS that installed to my notebook

#wget http://bl4ck5w4n.tk/wp-content/uploads/2011/07/bt5up.tar
#tar -xvf bt5up.tar
#python bt5up.py
#cp bt5up.py /bin/bt5u
#chmod +x /bin/bt5up
// Third party update

#cd /pentest/exploits/exploitdb
#nano update.sh
// copy this script to update.sh
===============================
#!/bin/bash
# spawn
# Exploit-db script update - 04/05/2011 - 13:50
update() {
local=$(cat revision)
remote=$(curl --silent --head http://www.exploit-db.com/archive.tar.bz2 | grep "Last-Modified" | md5sum | cut -f1 -d' ')
echo "Checking http://www.exploit-db.com for newest version"
if [ "$local" == "$remote" ]; then
echo "No updates available"
else
echo "New update available, Downloading . . ." ; mv archive.tar.bz2 archive-old.tar.bz2 ;
wget http://www.exploit-db.com/archive.tar.bz2; tar jxf archive.tar.bz2 ; echo "$remote" > revision
echo "Exploits are updated"
exit 0
fi
}
if [ -f "revision" ] ; then
update
else
touch revision ; update
fi
exit 0
============================================
#chmod +x update.sh
#./update.sh

#nano /etc/apt/sources.list
// deb http://all.repository.backtrack-linux.org revolution main microverse non-fr$
// deb http://32.repository.backtrack-linux.org revolution main microverse non-fre$
// deb http://source.repository.backtrack-linux.org revolution main microverse non$

#dpkg-reconfigure wicd
#update-rc.d wicd defaults
// repair Wicd

#dpkg -i filename.deb
// install .deb

#apt-get install openoffice.org
// install openoffice akh :)

# cat /etc/issue
BackTrack 5 - Code Name Revolution 32 bit\n \l
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"

#apt-get install cupsys cupsys-driver-gutenprint foomatic-db-gutenprint foomatic-filters fontconfig libtiff4 libfreetype6
#/etc/init.d/cups restart
//@ browser open loaclhost:631
//this is for setting printer

//compress file
#zip -r files.zip *
#zip file.zip file.txt
#zip -r files.zip . -i \*.txt

#unzip -l files.zip
#unzip -e files.7z
#unzip -x files.rar

#sudo apt-get install rar unrar
#rar -r files.rar *
#rar file.rar file.txt
#rar -r files.rar . -i \*.txt

#unrar -l files.rar
#unrar e files.rar
#unrar x files.rar

#sudo apt-get install p7zip-full
#7z -r files.7z *
#7zip specific file in current directory:
#7z file.7z file.txt
#7z -r files.7z . -i \*.txt
#7z -l files.7z
#7z -e files.7z
#7z -x files.7z

#add-apt-repository ppa:openoffice-pkgs/ppa
#apt-get install openoffice.org-kde
//install openoffice in kde

//Print from Xpdf
//after ctrl+p using LPR
//lpr -P HP_Laserjet_P2015_Series

If, during a BT update, you receive the following error :
/usr/lib/ruby/1.9.2/rubygems.rb:779:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
    from /usr/lib/ruby/1.9.2/rubygems.rb:214:in `activate'
    from /usr/lib/ruby/1.9.2/rubygems.rb:1082:in `gem'
    from :213:in `push_gem_version_on_load_path'
    from :16:in `gem'
    from /etc/alternatives/gem-bin/bundle:18:in `
'
 Then do this :
#gem install bundler


//svn: /opt/framework/lib/libcrypto.so.0.9.8: no version information available (required by /opt/framework/lib/libserf-0.so.0)
//svn: /opt/framework/lib/libssl.so.0.9.8: no version information available (required by /opt/framework/lib/libserf-0.so.0)

# cd /opt/framework/lib/
#/opt/framework/lib# mv libcrypto.so.0.9.8 libcrypto.so.0.9.8.bak
#/opt/framework/lib# mv libssl.so.0.9.8 libssl.so.0.9.8.bak
#/opt/framework/lib# ln -s /usr/lib/libcrypto.so.0.9.8
#/opt/framework/lib# ln -s /usr/lib/libssl.so.0.9.8



//SAPGUI instalation

#chmod 755 jre-1.xxx.bin
#./jre-1.xxx.bin
#/update-alternatives –install /usr/bin/java java /opt/jre1-xxx/bin/java 2
#update-alternatives –config java
#java -version
#java -jar PlatinGUI-Linux-xxxx.jar


//install dhcp server
#apt-get install dhcp3-server
#nano /etc/dhcp3/dhcpd.conf
#/etc/init.d/dhcp3-server restart