Sunday, April 5, 2009

Unlock Sipura SPA 2100 (from rocketvoip.com) for home asterisk

note : You can unlock Linksys SPA2102 using below step as well.
The sipura that I found lying around was belong to rocketvoip.com, and now I use it with asterisk, if somebody ask how to do it, here is the story:

my instalation use :
- Sipura SPA 2100
- Windows XP Laptop.
- Linux PC
- Wireless Network
- ethereal / wireshark software for windows.

ps : you can figure out by your self how to not to use 2 system just to serve one purpose, but for me since I have linux PC (which run apache webserver and dns) so I just use it, dont have to install this additional software to my XP laptop.

after everything ready here is the step :
1. enable windows internet share on XP laptop, so the ethernet port will share wireless connection to access internet.
2. connect sipura SPA 2100 with ethernet cross cable to laptop ethernet port.
3. run ethereal to sniff ethernet interface on XP laptop.
4. turn on SPA 2100 and ethereal will start showing the traffic, this the time I saw what host on rocketvoip.com domain it tried to access, sip1.rocketvoip.com and provisioning.rocketvoip.com.
5. check on HTTP traffic too, and I found it tried to get /spaMAC.txt
6. write down all the info above, and now start to configure your dns and webserver to have it.
7. configure the DNS to have sip1.rocketvoip.com and provisioning.rocketvoip.com pointing out to linux server ( configure named.conf to have this domain, and zone file to have IN A for those two hosts )
8. put this text in /spaMAC.txt file, and save it to /var/www/html directory, so web server will serve it to sipura.

-----------------------------------------
<flat-profile>
<Enable_Web_Server ua="na">Yes</Enable_Web_Server><Web_Server_Port ua="na">80</Web_Server_Port><Enable_Web_Admin_Access ua="na">Yes</Enable_Web_Admin_Access><Admin_Passwd ua="na"></Admin_Passwd><User_Password ua="na"></User_Password><Provision_Enable ua="na">No</Provision_Enable><Protect_IVR_FactoryReset ua="na">No</Protect_IVR_FactoryReset>
</flat-profile>
-----------------------------------------

9. now configure sipura to have static ip (remember, first time sipura run with auto config using windows internet share, and using internet DNS, and have it access real rocketvoip.com domain), configure sipura to have dns pointing out to linux PC too.
10. restart sipura SPA 2100, and voila, it admin page now accessible and ready to configure with my home asterisk.

simple, and at least I save one usable device for being trashed on junkyard and pollute our only planet.

Thursday, February 12, 2009

Expect, PHP and Ubuntu

here is the Expect installation for PHP on ubuntu
- apt-get install expect
- apt-get install expect-dev
- wget http://pecl.php.net/get/expect-0.2.5.tgz
- pecl install expect-0.2.5.tgz
- vi /etc/php5/conf.d/expect.ini and add the line : extension=expect.so
- restart apache

for other system (fedora in my case), 2 first step is changed to :
- wget http://expect.nist.gov/expect.tar.gz
- tar -zxvf expect.tar.gz
- cd expect-5.43/
- ./configure --with-tclconfig=/usr/lib/tcl8.4 --with-tclinclude=/usr/include/tcl8.4/tcl-private/generic
- make | make install

Monday, December 8, 2008

Cracking 64Bit Neighbor Wifi Network

64Bit WEP is quite easy to crack, the popular tool is aircrack-ng from this website, I was cracking (always) 64Bit WEP, never try the 128 or more Bit, the reasons, either I wont spend time or many neighbor network available still using 64Bit WEP, :-).. I guess because it easy for them to remember the key.

last action, I only need 9129 IVs, ( the manual on aircrack-ng said, at least 1.5Milions IVs, but that is not entirely needed), here is the result from my last try :



                [00:00:04] Tested 533 keys (got 9129 IVs)

KB depth byte(vote)
0 4/ 11 99(12800) E8(12544) 03(12032) DE(12032) 3D(11776)
1 0/ 1 4B(15616) 0F(13056) 67(12288) BB(12288) 0E(12032)
2 0/ 1 57(15360) 5A(13056) AC(13056) B0(13056) 24(12800)
3 0/ 2 CC(14592) 73(12800) 7D(12288) B2(12288) BA(12288)
4 6/ 35 34(12032) A0(11776) 59(11776) 99(11520) 9C(11520)

KEY FOUND! [ 99:4B:57:38:34 ] (ASCII: .KW84 )
Decrypted correctly: 100%



The manual to use this aircrack-ng is very easy to follow, specially this Tutorial: Simple WEP Crack.

and for me, I use this three command :


./airmon-ng start wlan0 11
./airodump-ng -c 11 --bssid 00:1a:70:82:7b:28 wlan0 -w output1
./aircrack-ng -b 00:1a:70:82:7b:28 output1*.cap



and thats it, you are ready to use your neighbor wifi network.

oh.. almost forgot, one thing, if you guys only have Windows Machine, which is this aircrack-ng tools are for Linux machine, use this small linux distro, called Puppy Linux, put in on USB Drive, and start your machine with USB boot, and you are ready to go.

Sunday, December 7, 2008

Net SNMPD smpd.conf minimum configuration on Linux

I did many quick dirty configuration to monitor my linux machine inside "secure" network using SNMP, the monitoring is always related to traffic size flowing the interface and keeping the machine always in ping-able mode, which means at least no power problem for this machine.

here is the basic snmpd.conf , so I can just use it again without worry misplaced somewhere.

================================================

com2sec readonly default mypublic ##or public

view readonly included .1.3.6.1.2.1.1
view readonly included .1.3.6.1.2.1.25.1.1
view readonly included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
view readonly included system.sysContact
view readonly included system.sysName
view readonly included system.sysLocation
view readonly included interfaces.ifTable.ifEntry.ifAdminStatus



================================================

and the snmpwalk command to check whether the configuration is correct or not.


snmpwalk -v2c -c mypublic localhost .1.3.6.1.2.1.31.1


Saturday, August 30, 2008

Default Fedora 9 Installed Packages


# yum grouplist
Loaded plugins: refresh-packagekit
Setting up Group Process
Installed Groups:
Authoring and Publishing
Development Libraries
Development Tools
Editors
FTP Server
Fonts
GNOME Software Development
Graphical Internet
Graphics
Hardware Support
Legacy Fonts
Mail Server
MySQL Database
Network Servers
Office/Productivity
Printing Support
Sound and Video
System Tools
Text-based Internet
Web Server
X Software Development
Available Groups:
Administration Tools
Clustering
DNS Name Server
Educational Software
Engineering and Scientific
Fedora Eclipse
Fedora Packager
GNOME Desktop Environment
Games and Entertainment
Java Development
KDE (K Desktop Environment)
KDE Software Development
Legacy Network Server
Legacy Software Development
News Server
PostgreSQL Database
SUGAR Desktop Environment
Server Configuration Tools
Virtualization
Web Development
Window Managers
Windows File Server
X Window System
XFCE
XFCE Software Development
Done

Saturday, May 17, 2008

ioreg result on MacBook and MacAir

After looking around for ioreg result for original mac I got this two link,

I desperately looking for that value, because until now I cant make my GMA X3100 Graphics Chipset to work with "the mac" :-), you know what I mean.

Anyway, for me it just for playing around, after got good deal for Sony Vaio VGN-NR220E for only 415$, and I thought I can use this laptop for OSX other than doing Vista Crap on it.

ps : the difference result for ioreg -l command under terminal, between real Mac, and "The Mac" for the display is, the real one has X3100 name on it, but "The Mac" only give a name "Display", is it bios/hardware value, EFI or what ?

Thursday, May 1, 2008

Mac OSX on Vaio VGN-NR220E

Ok, for excuse, the reason I put Mac OSX on my Sony Vaio VGN-NR220E because it came with Vista, and try to "upgrade" it to XP didn't give a good result, XP keep giving me BSOD crash at least once a day for many unknown reasons, the only reason I know, Sony doesn't give drivers support for this laptop on XP. Suck.... Msoft + Sony mafia, is that XP just too old for this not so advance laptop ?.

and nothing to loose, I grab MacOSX XxX 10.4.11 ISO from the corner of internet and give it a try on this laptop, the result, not so good, but worth to try.

- Screen only 1024 x 768, compare to what is on this device, 1280 x 800.
- Marvel Yukon gigabit ethernet is working, just replace value inside /System/Library/Extension/IONetworkingFamily.kext/Contents/Plugins/AppleYukon/Contents/Info.plist from 0x436211AB to 0x435311AB
- Sound work using AppleAzaliaAudio.kext
- Wireless doesnt work, no idea how to fix it.

and final conclusion, still not decide yet, if I want to keep this version of MacOSX, or change it to Leopard base on this review, or just leave with XP and getting use to it with BSOD once or twice a day, but still, no thanks to Damn Vista, I consider it as evil in OS world.

ps : I wrote this post using safari 3.11 on my Sony Vaio MacOSX

UPDATE : My Sony VGN-NR220E now work fine using OSX Kalyway 10.5.2, look comment below for the explanation.

current

last archive