Installation and usage of fakeap tool:
Download fakeap-0.3.2-1.0.rh7.rf.noarch.rpm, hostapd-0.6.9.tar.gz.
Install bridge-utils-1.1-2 rpm.
Installing hostapd:-
Untar hostapd-0.6.9.tar.gz.
cd hostapd-0.6.9/hostapd/
copy the defconfig file with the name .config (hidden file).
cp defconfig .config
Uncommon CONFIG_DRIVER_MADWIFI=y and CFLAGS += -I../../madwifi
Change CFLAGS path to the path where madwifi source code exit. In my case it is CFL CFLAGS += -I/home/softwares/madwifi-0.9.4/
and make , make install.
Now for fakeap simply say 'rpm -ivh fakeap-0.3.2-1.0.rh7.rf.noarch.rpm.
Using fakeap tool:-
#rmmod ath_pci
#modprob ath_pci autocreate=ap
#ifconfig ath0 0.0.0.0 up
#ifconfig eth0 0.0.0.0 up
#brctl addbr br0
#brctl addif br0 ath0
#brctl addif br0 eth0
#wlanconfig ath create wlandev wifi0 wlanmode monitor
#ifconfig ath1 up
vi madwifi.conf add below lines
#--------------------------------------------------
# Configuration File for WPA-PSK
interface=ath0
bridge=br0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=test_ssid
macaddr_acl=0
auth_algs=3
wpa=3
wpa_passphrase=XXXXXXXXXXX
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
#---------------------------------------------------
#./hostapd -B madwifi.conf
#perl /usr/bin/fakap
It will print the help.
ex usage:-
perl /usr/bin/fakeap --interface ath0 --words /usr/share/doc/fakeap-0.3.2/lists/stefan-wordlist.txt --vendors /usr/share/doc/fakeap-0.3.2/lists/stefan-maclist.txt --channel 6 -sleep 0.01
Using other pc open wireshark on wifi interface with monitor mode and check for beacon packets with different ssids and mac.
Tuesday, November 3, 2009
Installation and usage of fakeap tool
Monday, October 26, 2009
downloading linux iso using torrents.
In google search for you torrents iso link for source.
I have searched for ubuntu and downloaded "ubuntu-9.04-desktop-i386.iso.torrent" its around 24 KB.
If you don't have torrent downloader in linux
http://sourceforge.net/projects/azureus/files/vuze/vuze-4.2.0.8/Vuze_4.2.0.8_linux.tar.bz2/download
tar -jxvf Vuze_4.2.0.8_linux.tar.bz2
cd vuze/
./azureus &
It open vuze window
(This tool available for windows also)
It will open GUI for vuze.
Press ctrl+o or chose file -> open-> torrent file.
Click on "add file", browse and select torrent file which you already downloaded.
Now torrent starts downloading file.
I have searched for ubuntu and downloaded "ubuntu-9.04-desktop-i386.iso.torrent" its around 24 KB.
If you don't have torrent downloader in linux
http://sourceforge.net/projects/azureus/files/vuze/vuze-4.2.0.8/Vuze_4.2.0.8_linux.tar.bz2/download
tar -jxvf Vuze_4.2.0.8_linux.tar.bz2
cd vuze/
./azureus &
It open vuze window
(This tool available for windows also)
It will open GUI for vuze.
Press ctrl+o or chose file -> open-> torrent file.
Click on "add file", browse and select torrent file which you already downloaded.
Now torrent starts downloading file.
Tuesday, October 13, 2009
configure Bugzilla with gmail smtp
This article explains how to use GMAIL SMTP(TLS AUTH) to send bugzilla alerts.
Bugzilla supports following methods to send mail alerts :
We need to use another perl module Email::Send::SMTP::TLS.
First step would be to install Email::Send::SMTP::TLS from CPAN. use following steps to do so :
Bugzilla supports following methods to send mail alerts :
- sendmail
- SMTP
We need to use another perl module Email::Send::SMTP::TLS.
First step would be to install Email::Send::SMTP::TLS from CPAN. use following steps to do so :
- using CPAN SHELL Lanch CPAN shell as follows
#cpan
capn>
Now we need tweak BugZilla code. carefully execute following instructions and don't forget to backup files before you modify.
Go to your BugZilla installation directory and execute following command Open Mailer.pm file.
Search for following code( should be on line # 57) add following line after it
search for following if block and change it to Now we need to do settings in bugzilla parameters.
Login as administrator to Bugzilla and go to Administration -> Parameters -> Email and do following settings
1. Select SMTP::TLS as mail_delivery_method
2. Enter your gmail address in mailfrom
3. Enter smtp.gmail.com:587 in smtpserver
4. Enter you@gmail.com in smtp_username
5. Enter gmail password in smtp_password
It will work pretty good.
capn>
install
Email::Send::SMTP::TLS
cpan shell might ask you to install additional modules, install them.- compiling from source Download source from HERE and execute following commands
1.
tar
zxvf Email-Send-SMTP-TLS-0.03.
tar
.gz
2.
cd
Email-Send-SMTP-TLS-0.03
3.
./configure
4.
make
5.
make
install

Go to your BugZilla installation directory and execute following command
1.
cd
Bugzilla
Search for following code( should be on line # 57)
1.
sub
MessageToMTA {
1.
my
(
$smtp_server
,
$smtp_port
);
search for following if block and change it to
01.
if
(
$method
eq
"SMTP"
||
$method
eq
"SMTP::TLS"
) {
02.
(
$smtp_server
,
$smtp_port
) =
split
/:/,Bugzilla->params->{
"smtpserver"
};
03.
push
@args
,
04.
Host =>
$smtp_server
,
05.
User => Bugzilla->params->{
"smtp_username"
},
06.
Password => Bugzilla->params->{
"smtp_password"
},
07.
Hello =>
$hostname
,
08.
Debug => Bugzilla->params->{
'smtp_debug'
};
09.
push
@args
, Port =>
$smtp_port
if
(
$smtp_port
);
10.
}
Login as administrator to Bugzilla and go to Administration -> Parameters -> Email and do following settings
1. Select SMTP::TLS as mail_delivery_method





It will work pretty good.
Wednesday, October 7, 2009
Install vpnclient on centos 5.1 and perforce
INSTALL VPNCLIENT
download vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz file
tar -zxvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
cd vpnclient
./vpn_install
/etc/init.d/vpnclient_init start
copy cust.pcf (your vpn profile file to connect to your client) to /etc/opt/cisco-vpnclient/Profiles/.
To connect to your customer type
#vpnclient connect cust
Above cust is the name of the pcf file you copied to /etc/opt/cisco-vpnclient/Profiles/.
INSTALL PERFORCE
download p4v from http://www.perforce.com/perforce/downloads/index.html
tar -zxvf p4v.tgz
cd p4v-2009.1.212209
directly you can access perforce here.
download vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz file
tar -zxvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
cd vpnclient
./vpn_install
/etc/init.d/vpnclient_init start
copy cust.pcf (your vpn profile file to connect to your client) to /etc/opt/cisco-vpnclient/Profiles/.
To connect to your customer type
#vpnclient connect cust
Above cust is the name of the pcf file you copied to /etc/opt/cisco-vpnclient/Profiles/.
INSTALL PERFORCE
download p4v from http://www.perforce.com/
tar -zxvf p4v.tgz
cd p4v-2009.1.212209
directly you can access perforce here.
Subscribe to:
Posts (Atom)