nokitel – Requirements
Well, we've realized we haven't mentioned what requirements that is required for you to use the nokitel library or the spoon executable.
So here comes a list:
- WinPCAP - http://www.winpcap.org/
- .NET Framework 3.5 (or above) - http://download.microsoft.com/
- Microsoft Windows XP (or above, however Microsoft Windows 2000 might work as well.)
Well, that's about it.
You might also want a few examples on how to get started?
I bet you do. If you don't; stop reading now!
Enumurating your NIC(s), and send a plain raw packet:
Imports nokitel.PCAP 'Make sure your project is running .NET 3.5; and add a reference to nokitel.dll.
Module nokitel_example_1
Private NIC As Adapters.Adapter = Nothing 'The NIC you will send from.
Private Adapters As New Adapters 'An instance of the NIC-enumuration class, called "Adapter".
Sub Main()
ShowNICs()
ChooseNIC()
Dim Result As Boolean = NIC.Send("Hello World.", System.Text.Encoding.ASCII) 'Send a plain-text string over the NIC.
Console.WriteLine("> Successful? " & CStr(If(Result, "Yes", "No")) & ".")
Console.ReadLine()
End Sub
Private Sub ShowNICs()
For Index As Integer = &H0 To Adapters.Enumurate.Length - &H1 'Loop through all available NIC's, and display their stats:
With Adapters.Enumurate(Index)
Console.WriteLine("* ID: " & Index)
Console.WriteLine("* Name: " & .Name)
Console.WriteLine("* Description: " & .Description)
Console.WriteLine("* GUID: " & .GUID)
Console.WriteLine("* Netmask: " & .Netmask)
Console.WriteLine("* Destination: " & .DestinationAddress)
Console.WriteLine("* Broadcast: " & .BroadcastAddress)
Console.WriteLine("* IP: " & .IP)
Console.WriteLine("* MAC: " & .MAC)
Console.WriteLine("* Gateway IP: " & .GatewayIP)
Console.WriteLine("* Gateway MAC: " & .GatewayMAC)
Console.WriteLine("* Supports WiFi: " & CStr(If(.IsWIFI, "Yes", "No")) & ".")
End With
Console.WriteLine()
Next
End Sub
Private Sub ChooseNIC()
Dim ID As String = vbNullString
Do
Console.Write("> ")
ID = Console.ReadLine
If IsNumeric(ID) Then
If ID >= &H0 And ID < Adapters.Enumurate.Length Then
NIC = Adapters.Enumurate(ID) 'Set the NIC-variable to the corresponding index from the "ShowNICs()" output.
If Not NIC.Open(, False) Then
Console.WriteLine("x Unable to hook device!")
End
End If
Exit Do
End If
End If
Loop
End Sub
End Module
I hope that makes some sense, if you have further questions, just leave a post, and we'll try to answer!
Cheers.

Hey, I'm Fredrik. I'm from Sweden, born 1990, and I got a huge interest for information technology and information security. So far, I've been studying for three years at the Internation IT College of Sweden and one year at the Royal Institute of Technology (Kista, Sweden). I'm currently working at Young / Skilled and as a shareholder of Arctic Security. If you wish to contact me, please email me at h@ackack.net or follow me at twitter @Almroot.