|
ygzxw
初级用户
 
积分 36
发帖 15
注册 2006-11-20
状态 离线
|
『楼 主』:
高手这么多,谁写一个扫描本网内IP和mac!
使用 LLM 解释/回答一下
要求:
能够扫描本网内(局域网内)在线所有IP及MAC,并输出保存一个*.txt文件!!!
高手请出手!!!!
Last edited by ygzxw on 2006-12-28 at 04:05 PM ]
Requirement: Can scan all online IPs and MACs within the local area network and output and save them as a *.txt file!!!
Experts, please come forward!!!!!
Last edited by ygzxw on 2006-12-28 at 04:05 PM ]
|
|
2006-12-29 04:54 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
本网??什么是本网?内网么?
This website?? What is this website? Intranet?
|
|
2006-12-29 04:56 |
|
|
mackyliu
初级用户
 
积分 32
发帖 16
注册 2006-10-19
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
软件都做不到,别说批处理了.局域网内用户要是根本没打开server服务,看你怎么弄
Software can't even do it, let alone batch processing. If the users in the LAN haven't even turned on the server service, see how you're going to handle it
|
|
2006-12-29 05:00 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by mackyliu at 2006-12-28 16:00:
软件都做不到,别说批处理了.局域网内用户要是根本没打开server服务,看你怎么弄
批处理怎么不行了?
Originally posted by mackyliu at 2006-12-28 16:00:
Software can't do it, let alone batch processing. If the users in the LAN haven't even turned on the server service, see how you can do it
How can batch processing not work?
|
|
2006-12-29 05:03 |
|
|
ygzxw
初级用户
 
积分 36
发帖 15
注册 2006-11-20
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
软件可以做到的!!好多网管软件都可以的!!(本网就是局域网内)
我想应该有高人能做到,这里的DOS高手好多!~!
Software can do it!! Many network management software can!! (This website is within the local area network)
I think there must be experts who can do it. There are many DOS experts here!~!
|
|
2006-12-29 05:04 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Re ygzxw:
把你在内网的net view命令的结果发来看看。我这里没有测试环境,不好写代码,所以只有参考你的了。
Re ygzxw:
Please send me the result of the net view command on your internal network. I don't have a test environment here, so it's not easy to write code, so I can only refer to yours.
|
|
2006-12-29 05:06 |
|
|
ygzxw
初级用户
 
积分 36
发帖 15
注册 2006-11-20
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
这儿不让传图!!!发不了
Can't upload pictures here!!! Can't send
|
|
2006-12-29 05:12 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
发文本就行了。net view >>netview.txt,你把netview.txt的内容发过来。
Just send the text. net view >>netview.txt, send me the content of netview.txt.
|
|
2006-12-29 05:14 |
|
|
ygzxw
初级用户
 
积分 36
发帖 15
注册 2006-11-20
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
高手就是多啊,又学一招,“net view >>netview.txt”扫描结果可以保存为一个文本!!
服务器名称 注释
-------------------------------------------------------------------------------
\\08A1A02668004B2
\\0B42C419F66F492
\\128217E5E2B843D
\\368138ECD3E8477
\\47F1FAEB1E114E7
\\5AC9C022019944A
\\77E1E3EB259D438
\\7F51BF1C1C044CE
\\A3119055661144B
\\ADMIN
\\B021CA4B672C4DE
\\BEE9AFE136394E9
\\YGZX-JIN
\\YGZX027
\\YGZX060 zjc
\\YGZX09
\\YGZX12
\\YGZX22
\\YGZX226
\\YGZX24
\\YGZX25
\\YGZX27
\\YGZX28
\\YGZX32
\\YGZX35
\\YGZX62
\\YGZX7 wjs007
\\YGZX95 ygzx95
\\YGZXCC36
\\YGZX110
命令成功完成。
Last edited by ygzxw on 2006-12-28 at 04:21 PM ]
There are really many experts! Learned another trick, "net view >>netview.txt" can save the scan result as a text!
Server name Comment
-------------------------------------------------------------------------------
\\08A1A02668004B2
\\0B42C419F66F492
\\128217E5E2B843D
\\368138ECD3E8477
\\47F1FAEB1E114E7
\\5AC9C022019944A
\\77E1E3EB259D438
\\7F51BF1C1C044CE
\\A3119055661144B
\\ADMIN
\\B021CA4B672C4DE
\\BEE9AFE136394E9
\\YGZX-JIN
\\YGZX027
\\YGZX060 zjc
\\YGZX09
\\YGZX12
\\YGZX22
\\YGZX226
\\YGZX24
\\YGZX25
\\YGZX27
\\YGZX28
\\YGZX32
\\YGZX35
\\YGZX62
\\YGZX7 wjs007
\\YGZX95 ygzx95
\\YGZXCC36
\\YGZX110
The command completed successfully.
Last edited by ygzxw on 2006-12-28 at 04:21 PM ]
|
|
2006-12-29 05:17 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
先试试这个,看行不?
@echo off
for /l %%a in (1,1,254) do (
echo.&echo/&echo===================================>>list.txt
for /f "delims== tokens=2" %%i in ('nbtstat -a 192.168.1.%%a^|find "MAC Address"') do echo %%i------------192.168.1.%%a >>list.txt
)
pause
notepad.exe list.txt
goto :eof
First try this, see if it works?
@echo off
for /l %%a in (1,1,254) do (
echo.&echo/&echo===================================>>list.txt
for /f "delims== tokens=2" %%i in ('nbtstat -a 192.168.1.%%a^|find "MAC Address"') do echo %%i------------192.168.1.%%a >>list.txt
)
pause
notepad.exe list.txt
goto :eof
|
|
2006-12-29 05:18 |
|
|
ygzxw
初级用户
 
积分 36
发帖 15
注册 2006-11-20
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
正在测试!!!!!!!!!
测试完毕!(不成功)本内网IP:192.168.0.1---192.168.0.254
保存文件中内容:
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
Last edited by ygzxw on 2006-12-28 at 04:31 PM ]
Testing is in progress!!!!!!!!!
Testing is completed! (Unsuccessful) Internal network IP: 192.168.0.1---192.168.0.254
Content in the saved file:
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
==================================
Last edited by ygzxw on 2006-12-28 at 04:31 PM ]
|
|
2006-12-29 05:24 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
内网IP是什么打头的?不是192.168.1.……之类的么?
What do internal network IPs start with? Isn't it like 192.168.1.……?
|
|
2006-12-29 05:30 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
再试试:
@echo off
for /l %%a in (1,1,254) do (
echo.&echo/&echo===================================>>list.txt
for /f "delims== tokens=2" %%i in ('nbtstat -a 192.168.0.%%a^|find "MAC Address"') do echo %%i------------192.168.0.%%a >>list.txt
)
pause
notepad.exe list.txt
goto :eof
Try again:
@echo off
for /l %%a in (1,1,254) do (
echo.&echo/&echo===================================>>list.txt
for /f "delims== tokens=2" %%i in ('nbtstat -a 192.168.0.%%a^|find "MAC Address"') do echo %%i------------192.169.0.%%a >>list.txt
)
pause
notepad.exe list.txt
goto :eof
|
|
2006-12-29 05:32 |
|
|
ygzxw
初级用户
 
积分 36
发帖 15
注册 2006-11-20
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
Originally posted by lxmxn at 2006-12-28 04:30 PM:
内网IP是什么打头的?不是192.168.1.……之类的么?
不懂,请指教!?
Originally posted by lxmxn at 2006-12-28 04:30 PM:
What does the internal network IP start with? Isn't it like 192.168.1.……?
Don't understand, please give instructions!?
|
|
2006-12-29 05:34 |
|
|
ygzxw
初级用户
 
积分 36
发帖 15
注册 2006-11-20
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by lxmxn at 2006-12-28 04:32 PM:
再试试:
@echo off
for /l %%a in (1,1,254) do (
echo.&echo/&echo===================================>>list.txt
for /f "deli ...
测试结果跟上次相同!我第一次测试的时候,给IP:192.168.1....的1改成0了的!!
Originally posted by lxmxn at 2006-12-20 04:32 PM:
Try again:
@echo off
for /l %%a in (1,1,254) do (
echo.&echo/&echo===================================>>list.txt
for /f "deli ...
The test result is the same as last time! When I tested for the first time, I changed the 1 in IP: 192.168.1.... to 0! !
|
|
2006-12-29 05:40 |
|