[Linuxtrent] Re: OT: getmac sotto dos

  • From: "Giuliano Natali" <diaolin@xxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Tue, 16 May 2006 18:34:24 +0200 (CEST)

Con amorevole cura pierluigi minati ha scritto:
> E' molto OT ma qualcuno di voi guru mi potrebbe aiutare.
>
> Sto cercando di ottenere il mac address della scheda di rete sotto dos
> ma non ci riesco.

a che pro????
ti serve che ogni volta lo veda al volo o hai una macchina dos della quale
non sai il mac????
la scheda e' configurata?
con l'utility della scheda non vedi il MAC?

> Finora il buon google non mi è stato di nessun aiuto....
> Qualcuno di voi non ha per caso un link a qualche programmino che faccia
> al caso mio?



Se stai parlando di ghost leggi qui....
http://www.msfn.org/board/index.php?showtopic=19144

AUTOEXEC.BAT

@ECHO OFF
SET TZ=GHO+00:00
SET PATH=a:\net;a:\;
cd \net
CALL \NET\DOIT.BAT

a:\net\net init
a:\net\netbind.com
a:\net\umb.com
a:\net\tcptsr.exe
a:\net\tinyrfc.exe
a:\net\nmtsr.exe
a:\net\emsbfr.exe

REM ==============================================================
REM Attempt to connect to the network 5 times. Generate a new
REM random name each time in case we conflict with someone else.
REM Wait longer and longer each time we try.
REM ==============================================================

REM 111111111111111111111111111111
a:\net\ewc #V#=0B - First attempt ...#=07
a:\net\COMPNAME.EXE > NUL
GSAR.EXE -f "-s**COMPUTERNAME**" "-r%COMPNAME%" A:\NET\SYSTEM.TMP
A:\NET\SYSTEM.INI > NUL
NET START > NUL
if errorlevel 1 goto logon

REM 222222222222222222222222222222
ewc #=0B - Second attempt ...#=07#+1+
COMPNAME.EXE > NUL
GSAR.EXE -f "-s**COMPUTERNAME**" "-r%COMPNAME%" A:\NET\SYSTEM.TMP
A:\NET\SYSTEM.INI > NUL
NET START > NUL
if errorlevel 1 goto logon

REM 333333333333333333333333333333
ewc #=0B - Third attempt ...#=07#+3+
COMPNAME.EXE > NUL
GSAR.EXE -f "-s**COMPUTERNAME**" "-r%COMPNAME%" A:\NET\SYSTEM.TMP
A:\NET\SYSTEM.INI > NUL
NET START > NUL
if errorlevel 1 goto logon

REM 444444444444444444444444444444
ewc #=0B - Fourth attempt ...#=07#+5+
COMPNAME.EXE > NUL
GSAR.EXE -f "-s**COMPUTERNAME**" "-r%COMPNAME%" A:\NET\SYSTEM.TMP
A:\NET\SYSTEM.INI > NUL
NET START > NUL
if errorlevel 1 goto logon

REM 555555555555555555555555555555
ewc #=0B - Fifth attempt ...#=07#+7+
COMPNAME.EXE > NUL
GSAR.EXE -f "-s**COMPUTERNAME**" "-r%COMPNAME%" A:\NET\SYSTEM.TMP
A:\NET\SYSTEM.INI > NUL
NET START > NUL
if errorlevel 1 goto logon

goto netError

:logon
A:\NET\NET.EXE USE G: \\ghost\ghost
A:\NET\NET.EXE USE
goto End

:netError
echo There was an error.

:End

Eg. SYSTEM.TMP
CODE
[network]
filesharing=no
printsharing=no
autologon=yes
computername=**COMPUTERNAME**
lanroot=a:\net
username=ghost
workgroup=london
reconnect=no
dospophotkey=N
lmlogon=0
logondomain=london
prefferedredir=full
autostart=full
maxconnections=8

[network drivers]
netcard=
transport=tcpdrv.dos,nemm.dos
devdir=a:\net
LoadRMDrivers=yes

[Password Lists]
*Shares=A:\NET\Shares.PW

Diaolin


-- 
quel fior de vita dolcia
nasú quel dí lontan
che ?l s?á ?rlevá da sol
par farse binar pian

Giuliano

-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: