Labels

Sunday, November 20, 2011

How to install phpmyadmin in linux

This time I will explain how to install phpmyadmin on linux. Here are the steps:

1. $ Su -
2. # Cd / var / www / html
3. # Wget-c http://prdownloads.sourceforge.net/phpmyadmin/ phpMyAdmin-2.11.3-english.tar.gz? Download
4. # Tar xvfz phpMyAdmin-2.11.3-english.tar.gz
5. # Mv phpMyAdmin-2.11.3-bahasa phpmyadmin
6. # Cd phpmyadmin
7. # Cp config.inc.php config.sample.inc.php
8. # Vi config.inc.php: $ cfg ['Servers'] [$ i] ['auth_type'] = 'http'; # default is cookies:
9. # Service httpd restart...
Continue Reading »

how to install the synaptic package manager in backtrack

Make new friends and regular use ubuntu, it may be difficult to manage applications in backtrack, therefore the application needed to manage it like diubuntu, for example, Synaptic Package Manager or Ubuntu Software Center. So we now will do the installation on the second application on our Backtrack.

1. Install Synaptic Package Manager.
root @ bt: ~ # apt-get install synaptic


Display Synaptic Package Manager on Backtrack 5 R1.



2. Go to System> Administration> Software Sources, on the Ubuntu Software tab check all the options of Downloadable from the Internet.



3. Install Ubuntu Software Center.
root @ bt: ~ # apt-get install software-center

Ubuntu Software Center on Backtrack 5 R1.


good luck
Continue Reading »

Sunday, November 13, 2011

How to run webgoat 5.3 standard on BT4

hi all,

this is not a real howto but some hints to let you play with WebGoat in BT4.

First download webgoat from this link and visit the OWASP WebGoat pages for more info about WebGoat.

Next you have to install p7zip to extract the archive, you can do this with the apt package manager from console running

apt-get install p7zip

and then extract the archive using

p7zip -d WebGoat-OWASP_Standard-5.3_RC1.7z

You can leave it in your root folder but if you like "clean desktops" move it inside /pentest/web/webgoat, you can do this from terminal with

mkdir /pentest/web/webgoat
mv WebGoat-5.3_RC1/* /pentest/web/webgoat

now make /pentest/web/webgoat/webgoat.sh executable with

chmod +x /pentest/web/webgoat/webgoat.sh

and then install openjdk-6-jre and openjdk-6-jdk with apt:

apt-get install openjdk-6-jre openjdk-6-jdk

Now you can run webgoat on port 80 or 8080 running

sh /pentest/web/webgoat/webgoat.sh start80 or sh /pentest/web/webgoat/webgoat.sh start8080

and to stop tomcat and webgoat use

sh /pentest/web/webgoat/webgoat.sh stop

Open up firefox and connect to http://127.0.0.1/webgoat/attack or http://127.0.0.1:8080/webgoat/attack according to the port you use to run tomcat. the username and password are both guest.

OWASP provide some intresting readings, you can find them on OWASP wiki and on the books page.

Hope this helps noobs like me who want to learn something about webapp security.

Continue Reading »

Saturday, November 12, 2011

How to using latest Sun Java JRE

1. download latest JRE
Download Java software for Linux
Linux (self-extracting file)

2.
Code:
 mkdir /opt/java && cd /opt/java && sh /xx/xx/{your downloaded xx.bin file}
(will create: /opt/java/jre1.6.0_21)


3.
Code:
 update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_21/bin/java" 1

4.
Code:
 update-alternatives --set java /opt/java/jre1.6.0_21/bin/java

5.
Code:
 ln -s /opt/java/jre1.6.0_21/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
Note: don't use /opt/java/jre1.6.0_21/plugin/i386/ns7/xxx.so


6. add JAVA_HOME to your bash environment, like
export JAVA_HOME=" /opt/java/jre1.6.0_21/bin/java"
into (~/.bashrc)


test if correct java JRE is in use:
Code:
 java -version
7. restart firefox and new java plugin should be available
about:plugins

/brtw2003
Continue Reading »

Friday, November 11, 2011

Getting BROADCOM Wireless to work in BackTrack!

So you are new to BackTrack and your wireless doesn't work out of the box?

No problem!

There are several ways to solve this problem and I'll show you two ways!

All this ways requires that you have a ethernet connection ( a wired connection ).

BEFORE YOU TRY THESE, MAKE SURE YOU'VE RAN APT-GET INSTALL UPGRADE & APT-GET INSTALL UPDATE BEFORE IF YOU ARE RUNNING BACKTRACK 4 FINAL - IT'S ALWAYS GOOD TO UPGRADE.

Using jockey-gtk
This is the most simple one.

Log into BackTrack as root and run these commands:

Code:
/etc/init.d/networking start
apt-get install jockey-gtk
jockey-gtk

Then follow the instructions on the program that starts.



Downloading drivers manually
Go to: Broadcom.com - 802.11 Linux STA driver
And download the tarball for your system (32 or 64).

Run the following in the terminal:

Code:
/etc/init.d/networking start
tar xzf nameoffile.tar.gz

cd thefolderyouget
make clean
make
Now let's check if you have any conflicting drivers (you shouldn't, they doesn't come with BT.)

Code:
lsmod  | grep "b43\|ssb\|wl"

If any of these are installed, remove them:
rmmod b43
rmmod ssb
rmmod wl

Then let's insmod the driver:


Code:
modprobe lib80211
insmod wl.ko
Congratulations! You are up and running!


Note: You maybe have to start network through the KDE "start menu" before you get the WICD manager up, then you should see networks.

If you can't connect to a wireless network, try changing WPA supplicant driver.
Continue Reading »