exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

NESS.txt

NESS.txt
Posted Sep 12, 2002
Authored by Gabriel Menezes Nunes

The N(etbios) E(numerating) S(ecurity) S(weep) is a batch file which scans a subnet checking for smb shares and attempts to login as administrator with a null password. Runs under win2k or xp and logs 4 seperate types of info.

systems | windows
SHA-256 | 91d9b22d2bc10be205fe150719564a7534666dd7f1633249a7e2171aa01f6566

NESS.txt

Change Mirror Download
:: N(etbios)E(numerated)S(ecurity)S(sweep)
:: Written by: GABRIEL
:: Purpose: Automated Netbios security sweep.
:: Details: Attempts to logon to the ipc$ share with a null password and the
c$ share as admin
:: with a null password.
:: Usage: This script takes only 2 parameters; subnet address and timeout
in milliseconds.
:: Both are required for this script to function. Timeout is dependant upon
network the
:: connection available and should be adjusted accordingly. I have found a
timeout of 1
:: is very effective on a 100 mps lan and conversely a timeout of 5 or more
for a broadband
:: wan connection.
:: ie. ness 192.168.0 5
:: This script is for security auditing ONLY! I am not responsible for your
actions.
:: You have been warned!

@Echo Off

Set /a counter=0
Set subnet=%1
Set timeout=%2
Set saveDir=c:\NESS
Set aliveFile=%saveDir%\alive.txt
Set ipcFile=%saveDir%\ipc.txt
Set adminFile=%saveDir%\admin.txt
Set auditedFile=%saveDir%\audited.txt
Echo.
Echo *****************NESS******************
Echo N(etbios)E(numerating)S(ecurity)S(weep)
Echo Written by: GABRIEL 09/01/02
Echo ***************************************
Echo.

Echo Starting sweep of %subnet%.*
Echo %subnet%.* >> %auditedFile%

:Loop
Set /a counter=%counter%+1
If %counter% GEQ 255 Goto :Exit
ping -n 1 -w %timeout% %subnet%.%counter% | find "out" > nul
If errorlevel 1 Goto :HostUp
Goto :HostDown
::Loop end


:HostUp
Echo %subnet%.%counter% appears to be up. Attempting to access ipc$.
Echo %subnet%.%counter% >> %aliveFile%
Goto :Ipc
::HostUp end


:HostDown
Goto :Loop
::HostDown end


:Ipc
net use \\%subnet%.%counter%\ipc$ "" /user:"" | find "completed" > nul
if errorlevel 1 Goto :Secure
Echo IPC$ CONNECTED! Attempting to Login as administrator.
Echo %subnet%.%counter% >> %ipcFile%
nbtstat -A %subnet%.%counter% >> %ipcFile%
Echo *********************************************************************
>> %ipcFile%
net use \\%subnet%.%counter%\ipc$ /delete > nul
Goto :Admin
::Ipc end


:Admin
net use \\%subnet%.%counter%\c$ "" /user:administrator | find "completed" >
nul
If errorlevel 1 Goto :Secure
Echo C$ CONNECTED! THERE IS NO ADMIN PASSWORD!
Echo.
Echo %subnet%.%counter% >> %adminFile%
net use \\%subnet%.%counter%\c$ /delete > nul
Goto :Loop
::Admin end


:Secure
Goto :Loop
::Secure end


:Exit
Echo sweep of %subnet%.* completed. Results have been saved to %saveDir%
directory.
::Exit end

Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    27 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close