Monday, January 18, 2010

Google Chromium in BT4

This is a small guide to adding the Google browser Chromium to Back Track 4.

Note: Following this guide may break your system and no one will take responsibility for it but you.
OK the first thing you need to do is add the PPA's to your apt sources list.
-------------------------CODE-----------------------------
root@dorkbox:~# nano /etc/apt/sources.list
-------------------------CODE-----------------------------
Add the following to the list
-------------------------CODE-----------------------------
# Chromium browser PPA
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
-------------------------CODE-----------------------------
Save and exit.
Next get the key
-------------------------CODE-----------------------------
root@dorkbox:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FBEF0D696DE1C72BA5A835FE5A9BF3BB4E5E17B5
-------------------------CODE-----------------------------
Note the above should be one line.
Next update apt
-------------------------CODE-----------------------------
root@dorkbox:~# apt-get update
-------------------------CODE-----------------------------
Last apt-get the browser.
-------------------------CODE-----------------------------
root@dorkbox:~# apt-get install chromium-browser
-------------------------CODE-----------------------------
Three other packages should get pulled as well.
chromium-browser chromium-browser-inspector chromium-codecs-ffmpeg

Important links for basic linux

I have added this post from the Back | Track Linux Forum to my Blog for some reason.

Many people who are new to Back Track may also be new to Linux. Learning BT can be a daunting task, while also trying to learn Linux. As such if you are new to Linux we highly encourage you to learn the basics first. There are literally millions of pages of resources available on the internet to do this.

Since we can't really assess a given user's knowledge, skills, and attribute levels we suggest to everyone starting out to learn to use something like Ubuntu since BT is based on it. One of the reasons is the amount of information available to support the new user. In addition Ubuntu is designed to be as easy as possible for a user with zero Linux knowledge to get up and running. Now while most of us will not really care if you persist on using BT as your starting platform, please note that we can't possibly be expected to teach you those basics. Furthermore using BT may cause you to get side-tracked in learning. Many people have trouble with those basics and then make a post immediately on using one of the many Penetration Testing tools without having resolved the previous problem. This shows that those tools, can be a distraction to the beginner.

The following is a collection of resources to help aid others to learn those basics. There is no real order of importance in the list and it is not all inclusive. Feel free to make a post in this thread and add links to resources that you find or found helpful. Please do not use this thread to add "warez" etc., say "hello" or ask a question, as those will just be deleted/moved.

google
Offensive-Security
Remote-Exploit
Linux.com
Linux.org
Debian
AboutDebian
Ubuntu
How To Forge
TLDP
How To Geek
Linux Home Networking
Ibiblio
TuxRadar
LinuxDocs
PendriveLinux
Linux Journal
Kernel-Build-HOWTO
Linux-Tutorial
Linux Basics
FreeOS
Open of Course
ss64 Bash commands
Oreillynet
ComputerHope Unix
LinuxCommand
LinuxGuide
LinuxConfig
Ubuntu Guide
Grub
UbuntuWireless
WPAHOWTO
EnterpriseNetworkingPlantet
UNIX and Internet Fundamentals
Quick Reference Cards
IPTables HowTO
TCP/IP Concepts Video
SecurityTube

Monday, January 11, 2010

Back Track 4 Final is out.

That's right Back | track 4 Final is now out.
With a new release comes a new website with a new forum and a new irc channel as well irc.freenode.net, channel #backtrack-linux

Enjoy

Saturday, January 2, 2010

Using apt-Cacher

I was doing a bit of research and came across this today.

Apt-Cacher is a method by which you can centrally cache and share packages already stored within your network. It also allows the option of caching any downloaded packages in the future. This allows me to download a package once and transparently share it with an unlimited number of machines within my network. This way I only use my Lanwidth (LAN-bandwidth), and not my limited WAN connection."
Setup would be:
---------------code---------------------------------------------
# aptitude install apt-cacher
To have auto startup
---------------code---------------------------------------------
# sed -i.orig 's/AUTOSTART=0/AUTOSTART=1/' /etc/default/apt-cacher
# /etc/init.d/apt-cacher restart
---------------code---------------------------------------------
Configure the acl for access (default is allow access to any IP)
it is located in /etc/apt-cacher/apt-cacher.conf.
To import the packages in your box to the cache
---------------code---------------------------------------------
# /usr/share/apt-cacher/apt-cacher-import.pl -s /var/cache/apt/archives/
---------------code---------------------------------------------
To give other machines on the network access to the cache edit the apt-conf file in /etc/apt to reflect the machines IP address:
---------------code---------------------------------------------
Acquire:http:"http:localhost.localdomain:port"
---------------code---------------------------------------------

Friday, January 1, 2010

Installing gnome-do in BT4

If you have not heard of gnome-do it is basically a launcher. But it can do alot more.
Warning: Adding Repos or PPA's that are outside of the control of Remote-Exploit may cause problems, as such me( and the remote-exploit team)are not responsible. I may be able to help but then again I may not. Gnome-do is very new and as such all of the issues (bugs) have not been worked out.

Ok to install Gnome-do you will need to add the PPA's to your repos list using your favorite text editor.
---------------code---------------------------------------------
root@dorkbox:# nano /etc/apt/sources.list
---------------code---------------------------------------------
Add the following two lines.
---------------code---------------------------------------------
deb http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main
---------------code---------------------------------------------
The key should be added to your keyring as well.
---------------code---------------------------------------------
root@dorkbox:# gpg --no-default-keyring --keyring /tmp/gnome-do.keyring --keyserver keyserver.ubuntu.com --recv

A5D19FDCAA6ABB440CD3464628A8205077558DD0

root@dorkbox:# gpg --no-default-keyring --keyring /tmp/gnome-do.keyring --export --armor

A5D19FDCAA6ABB440CD3464628A8205077558DD0 | apt-key add -

root@dorkbox:# rm /tmp/gnome-do.keyring
---------------code---------------------------------------------
Then
---------------code---------------------------------------------
root@dorkbox:# apt-get install gnome-do
---------------code---------------------------------------------
Gnome-do will add some packages that it needs in order to run. We will need to add a compositing manager we will come back to this later. Next add the gnome terminal, this is used to take advantage of any application that will run from a terminal (i.e. Back Track tools)
So to get it:
---------------code---------------------------------------------
root@dorkbox:# apt-get install gnome-terminal
---------------code---------------------------------------------
Once apt finishes we need to set gnome-terminal as the default terminal emulator (Do not worry you can change this later if you need to.) In order to change it
---------------code---------------------------------------------
root@dorkbox:# update-alternatives –-config x-terminal-emulator
---------------code---------------------------------------------
You will then see the following.
---------------code---------------------------------------------
Selection Alternative
———————————————–
1 /usr/bin/xterm
2 /usr/bin/uxterm
3 /usr/bin/koi8rxterm
4 /usr/bin/lxterm
*+ 5 /usr/bin/gnome-terminal.wrapper
6 /usr/bin/konsole
7 /usr/bin/xfce4-terminal.wrapper

Press enter to keep the default[*], or type selection number:
---------------code---------------------------------------------
Before you type a number make note of your default in case you need to change back later on. Ok you can find gnome-do in the menu under Utilities. An easy way to work with it is to pull it to the desktop or panel to make a short-cut.
From Gnome-Do
Now click on it and it should open a window on the desktop in the upper right hand corner should be a little drop down arrow. Click it to bring up the preferences dialog. Under plugins look for gnome-terminal and check it and then refresh and close it.
From Gnome-Do
You can mess with the other preferences on your own. Ok now that you have everything setup click on the purple gnome-do icon or use the "super key" plus the space bar. Superkey may also be a windows key. This should bring up the basic gnome-do sceen. From there you can start typing commands or the names of applications. Try typing msfconsole. It should then give you options after a few letters. If you find run then tab over to the other side of the screen and hit enter. It should start the msfconsole running.
From Gnome-Do
If you tab to the second half of the screen and use the up down arrow keys to cycle through the other options. There should be a copy to clipboard as well as a few others. If a command does not work then re-type it and look for the "run in terminal" command. Another feature of Gnome-do is that of Docky. Docky is basically a front-end of Gnome-do and it allows you to create a launcher panel on your desktop. Using Docky you can drag and drop items onto the panel or drag off of the panel to delete.
From Gnome-Do
There is a lot you can do with both Gnome-do and Docky I will leave it up to you to explore it. If you don't have a Compositing Manager then you will need one to take advantage of all the cool features. Now if you run the "classic" mode of Gnome-do then you won't need one.The easiest way to do this would be to add xcompmgr. There are other managers but xcompmgr is light on resources in the background. In order to set it up use aptitude to grab it.
---------------code---------------------------------------------
root@dorkbox:#aptitude install xcompmgr
---------------code---------------------------------------------
Of course this will also pull other dependecies along. You can then start compositing manually via the ‘xcompmgr‘ command. With basic compositing enabled you should now be able to use the enhanced features of Gnome-Do, including the Mini Interface, Docky, Glass Interface and Nouveau. So now that you have everything needed start xcompmgr using the command above, then open the preferences for gnome-do again and this time go to the appearance tab and select docky. Now you should see the launcher panel at the bottom. If it does not show up then you may need to change the appearance themes a couple of times. Now go into your menu and find yourself a few tools that you would want to add to docky and drag them over. Some of the icons may show as up as an "X" I have not found a fix for this yet.


That's it. Again remember that gnome-do is new software and as such things may not work right. But with a little fun you can now launch your applications in a new way.
I encourage everyone who tries this to add their tips and tricks to this thread.

Change the Default Terminal Emulator

Changing the default Terminal Emulator or tty is something that is easy to do, but most people never need to. One of the reasons that you may need to change the terminal is because some programs may not work with your systems default.
So in order to do this on Debian based systems open a shell and use the update-alternatives command.
root@dorkbox:# update-alternatives –-config x-terminal-emulator
This will return the following:
There are 7 alternatives which provide `x-terminal-emulator’.

Selection Alternative
———————————————–
1 /usr/bin/xterm
2 /usr/bin/uxterm
3 /usr/bin/koi8rxterm
4 /usr/bin/lxterm
*+ 5 /usr/bin/gnome-terminal.wrapper
6 /usr/bin/konsole
7 /usr/bin/xfce4-terminal.wrapper

Press enter to keep the default[*], or type selection number:
So as you can see the * represents the current default terminal and entering a number from the list above will change to the one you want.
Make a note of your current one so that you can change back if you later need to.

Well that's it. Not hard to do.