Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, July 29, 2012

JRE for Google Chrome Browser in BT5R2

Chrome is pretty much my default browser for BT5R2. Despite the fact that it refuses to be ran as root with out some tinkering, I have found it easier to operate in BT5 than Firefox. Firefox fights me at every turn when I try to get flash player, JRE, or anything else running. Chrome comes with flash player already operational, and getting JRE going isn't too tricky either. What follows is the commands I used in the CLI to get the JRE going:

mkdir /opt/google/chrome/plugins
cd /opt/google/chrome/plugins
ln -s /usr/local/jre1.6.0_17/lib/i386/libnpjp2.so .
 --note, if you use a different version of JRE or filepath, you'll need to make sure that the last line reflects this.

Essentially, all we are doing is creating the plugins folder for the browser, and then linking JRE to that file. The "-s" switch means that we're making a symbolic link instead of a hard link. When you're finished don't forget to test your work by visiting this website:

http://www.java.com/en/download/testjava.jsp


Sunday, June 3, 2012

Writing a simple bash script for a mon0 interface

Recently I wrote my first bash script. While not a master piece by any means I consider it an accomplishment. Bash scripting is something I have been trying to pick up on since I picked up on Linux. I highly recommend that if you're interested in Linux or pen-testing that you try and do the same. Anyways, with out any further tangents I bring you the ./mon0.sh script.


#!/bin/bash
airmon-ng start wlan1
airmon-ng

This script starts a mon0 interface on wlan1 and then verifies that the interface was successfully created by running airmon-ng again with out arguments. Why did I create this script? Because I don't like having to remember to write all that crap to get a mon0 interface up and running. This script reduces the number of characters I have to put into the terminal to start the mon0 interface and relieves me of having to remember the command lines necessary to accomplish this task. If our computer's aren't working for us, then what good are they?

Here are some related links to help you get started on writing your own bash scripts:

http://linuxconfig.org/Bash_scripting_Tutorial
http://tldp.org/LDP/abs/html/index.html