what you don't know can hurt you
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:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close