April 2010 Archives

Google Voice - VoIP calls soon?

Cool article here about how Google is testing Google Voice desktop application to ... wait for ... make VoIP phone calls! Finally! Google Voice is always so hard to explain to people about what it does and how it works. Everyone thinks its about making phone calls, which is kinda is? Oh well, soon we won't have to worry about explaining it because it'll be really easy.

Windows Command Prompt For Loop

Have you ever needed to do some sort of repetitive task using the Windows command prompt? This is a cool program I really wasn't aware existed. Lets first create a text file name it myfile.txt and put in the following.

a,b,c
3,2,1

Now lets use our for loop.
for /F "eol=; tokens=2,3* delims=," %i in (myfile.txt) do @echo %i %j %k
What this does is pull the 2nd and 3rd value separated by commas from the file. Then echo's them to the screen.
 
This example isn't all that helpful but imagine putting user name and passwords in the file and doing a loop to try and brute for the NET USE password?

Windows NET USE / NetBIOS commands

  • net view /domain
    Lists all domain groups
  • net view /domain:name
    Shows list of all computers within the domain
  • net session
    All systems connected to system

nbtstat - Shows a ton of information about its host, for example. nbstat -a backdesk

Will show:

Node IpAddress: [192.168.1.43] Scope Id: []

           NetBIOS Remote Machine Name Table

       Name               Type         Status
    ---------------------------------------------
    BACKDESK       <00>  UNIQUE      Registered
    WORKGROUP      <00>  GROUP       Registered
    BACKDESK       <20>  UNIQUE      Registered
    WORKGROUP      <1E>  GROUP       Registered

    MAC Address = 00-13-72-CB-1E-86

Looking at the codes provided here, shows that the computer is a workstation server registered, running file service and browser service elections.