Friday, July 29, 2011

Installing DVWA (Damn Vulnerable Web Application) in Opensuse 11.4

DVWA (Damn Vulnerable Web Application ) is a web application that is damn vulnerable , its that for test web developer skills and tools in legal environtment . Help us to prevent our web from attacker , better understanding our project to build more secure .

Download DVWA in here

copy to directory /srv/www/htdocs [ in open suse ]
#chmod 777 DVWA-1.0.7.zip

create a database in your local machine
>mysql create database dvwa;

to C0nfigure it , change your database c0nfiguration in /config/config.inc.php

# Database variables

$_DVWA = array();
$_DVWA[ 'db_server' ] = 'localhost';
$_DVWA[ 'db_database' ] = 'dvwa'; >> your database name
$_DVWA[ 'db_user' ] = 'root'; >> your database user
$_DVWA[ 'db_password' ] = ''; >> your database password

config php.ini in /srv/www/htdocs/dvwa/php.ini
change it to be
; This file attempts to overwrite the original php.ini file. Doesnt always work.

magic_quotes_gpc = Off
allow_url_fopen on
allow_url_include on

open in localhost

for setup

c0nfig database

Monday, July 18, 2011

Problem while Installing AdobeAir and TweetDeck in OpenSuse 11.4

TweetDeck is one of twitter client aplications that most popular in twitter users . For install this aplication , its need AdobeAir aplication as requirement .

First , we can download AdobeAir in AdobeSite , choose version that you want to download and then you can download it .
After you have some file AdobeAIRInstaller.bin , install it with type command in terminal


su ./AdobeAIRInstaller.bin


if got : No Such File or Directory

do this chmod 755 AdobeAIRInstaller.bin

Fixing with type su ./AdobeAIRInstaller.bin

Download TweetDeck file in TweetDeck site , open file with Adobe AIR to run .air aplication .

when you used KDE DESKTOP edition in openSuse 11.4 usually there are some problem to sign in your account using TweetDeck . it can solved with manage your KWallet .

KWallet is a tool to managed the password your KDE system .


managed your password using Kwallet , after it , you can log in into your account using Tweet Deck .

Happy Sharing ,,

google-chrome – libpng12.so.0: cannot open shared object file

# download installer google-chrome choose *.rpm

http://www.google.com/chrome

#install google-chrome Opensuse 11.4

$sudo zypper in google-chrome-beta_current_i386.rpm

run google-chrome : applications > internet > web browser > google-chrome

problem that usually we have

/usr/bin/google-chrome: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

its means that google-chrome cannot running ,
this problem can solved with installing libpng12.so.0


$sudo zypper install libpng12*
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: libpng12-compat-devel-1.2.44-7.1.x86_64 conflicts with namespace:otherproviders(libpng-devel) provided by libpng14-compat-devel-1.4.4-2.1.x86_64
Solution 1: Following actions will be done:
do not install libpng12-compat-devel-1.2.44-7.1.x86_64
do not install libpng12-compat-devel-32bit-1.2.44-7.1.x86_64
Solution 2: deinstallation of libpng14-compat-devel-1.4.4-2.1.x86_64

Choose from above solutions by number or cancel [1/2/c] ©: 2
Resolving dependencies...
Resolving package dependencies...

The following NEW packages are going to be installed:
libpng12-0 libpng12-0-32bit libpng12-compat-devel libpng12-compat-devel-32bit libpng12-devel libpng12-devel-32bit

The following package is going to be REMOVED:
libpng14-compat-devel

The following recommended package was automatically selected:
libpng12-compat-devel

6 new packages to install, 1 to remove.
Overall download size: 337.0 KiB. After the operation, additional 828.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package libpng12-0-32bit-1.2.44-7.1.x86_64 (1/6), 73.0 KiB (166.0 KiB unpacked)
Retrieving: libpng12-0-32bit-1.2.44-7.1.x86_64.rpm [done (13.7 KiB/s)]
Retrieving package libpng12-0-1.2.44-7.1.x86_64 (2/6), 72.0 KiB (168.0 KiB unpacked)
Retrieving: libpng12-0-1.2.44-7.1.x86_64.rpm [done (87.3 KiB/s)]
Retrieving package libpng12-devel-1.2.44-7.1.x86_64 (3/6), 116.0 KiB (492.0 KiB unpacked)
Retrieving: libpng12-devel-1.2.44-7.1.x86_64.rpm [done (94.8 KiB/s)]
Retrieving package libpng12-devel-32bit-1.2.44-7.1.x86_64 (4/6), 8.0 KiB (3.0 KiB unpacked)
Retrieving: libpng12-devel-32bit-1.2.44-7.1.x86_64.rpm [done (11.8 KiB/s)]
Retrieving package libpng12-compat-devel-1.2.44-7.1.x86_64 (5/6), 61.0 KiB (53.0 KiB unpacked)
Retrieving: libpng12-compat-devel-1.2.44-7.1.x86_64.rpm [done (60.7 KiB/s)]
Retrieving package libpng12-compat-devel-32bit-1.2.44-7.1.x86_64 (6/6), 7.0 KiB (0 B unpacked)
Retrieving: libpng12-compat-devel-32bit-1.2.44-7.1.x86_64.rpm [done (6.7 KiB/s)]
Removing libpng14-compat-devel-1.4.4-2.1 [done]
Installing: libpng12-0-32bit-1.2.44-7.1 [done]
Installing: libpng12-0-1.2.44-7.1 [done]
Installing: libpng12-devel-1.2.44-7.1 [done]
Installing: libpng12-devel-32bit-1.2.44-7.1 [done]
Installing: libpng12-compat-devel-1.2.44-7.1 [done]
Installing: libpng12-compat-devel-32bit-1.2.44-7.1 [done]



try for run google-chrome again ....

Adding Repository in OpenSuse 11.4

# from idrepo

penguintengil@linux-aue0:~> sudo zypper ar http://opensuse.idrepo.or.id/opensuse/di.../repo/oss/ idrepo-oss
penguintengil@linux-aue0:~> sudo zypper ar http://opensuse.idrepo.or.id/opensuse/di...o/non-oss/ idrepo-nonoss

# from kambing repo

penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse-guru/ kambing-guru
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse-packman/ kambing-packman
penguintengil@linux-aue0:~>sudo zypper ar http://kambing.ui.ac.id/opensuse/update/11.4/ kambing-update
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse/distrib.../repo/oss/ kambing-oss
penguintengil@linux-aue0:~>sudo zypper ar http://kambing.ui.ac.id/opensuse/distrib...o/non-oss/ kambing-nonoss

************************************************************************************************

# non-activated repo

penguintengil@linux-aue0:~> sudo zypper mr -da

# viewing list of repository

penguintengil@linux-aue0:~> sudo zypper ref

#install software using zypper

$sudo zypper install packagename

#uninstall software using zypper

$sudo zypper remove packagename



more options see $man zypper

Sunday, July 17, 2011

Zakat in Mobile

Untuk membantu perhitungan banyaknya zakat yang harus dikeluarkan oleh seseorang dan harta apa saja yang wajib dikeluarkan zakatnya maka dibuatlah aplikasi Zakat berbasis android yang nantinya seseorang dengan mudah dapat menghitung berrapa zakat yang harus dikeluarkan, apakah orang tersebut sudah berkewajiban untuk mengeluarkan zakat atau belum . Nantinya orang dengan mudah dapat membayarkan zakatnya tanpa harus datang ke Badan Amil Zakat atau pun pihak yang menangani masalah zakat lainya, cukup dengan mendownload aplikasi Zakat ini.


terdiri dari 3 menu : Zakat Harta Simpanan, Zakat Profesi dan Zakat Perniagaan.
Untuk perhitungan Nisab nya diambil dari harga emas yang update setiap harinya dari http://kurs.dollar.web.id/harga-emas-hari-ini.php kemudian dikalikan sebanyak 85 grm .

Untuk perhitungan zakat nya sendiri berdasarkan perhitungan zakat di Badan Amil Zakat Nasional (http://baznas.or.id)

untuk source code ny bisa download disini
 silahkan untuk dikembangkan .

Happy Sharing**