中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 批处理室附件收集专用帖[2009-02-11]
« [1] [2] [3] [4] [5] [6] »
作者:
标题: 批处理室附件收集专用帖[2009-02-11] 上一主题 | 下一主题
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 46 楼』:  

ipseccmd.exe(1.5):屏蔽指定端口的工具
http://upload.cn-dos.net/img/229.rar
http://www.cn-dos.net/forum/viewthread.php?tid=39788



2008-10-20 20:18
查看资料  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 47 楼』:  

CheckISO.exe(1.0):检查.iso文件是否有效的工具
http://upload.cn-dos.net/img/1007.zip

  Quote:
用VC++写的一个小工具,原理是判断文件头0x8001处是否存在"CD001"标志。

E:\File\CheckISO\objfre_wnet_x86>CheckISO.exe
CheckISO 1.0                                      deepxw, 2008.10.11
Description:
    Check whether the file is a valid ISO image.
    检查文件是否是有效的ISO映像。
errorlevel code:
    2-FILENOTFOUND  1-NO  0-YES
Usage:
    CheckISO.exe  FileName

E:\File\CheckISO\objfre_wnet_x86>CheckISO.exe test.iso
ISO Image: YES
E:\File\CheckISO\objfre_wnet_x86>CheckISO.exe test.iso0
ISO Image: NO
E:\File\CheckISO\objfre_wnet_x86>CheckISO.exe test.iso1
ISO Image: File Not Found

在BAT中调用的演示代码:
@echo off
CheckISO.exe test.iso
echo.
if errorlevel 2 goto ISO_FILENOTFOUND
if errorlevel 1 goto ISO_NO
if errorlevel 0 goto ISO_YES
goto Exit
:ISO_YES
echo 文件是正确的ISO映像
goto Exit
:ISO_NO
echo 文件不是正确的ISO映像
goto Exit
:ISO_FILENOTFOUND
echo 文件不存在
goto Exit
:Exit
pause




2008-10-27 15:07
查看资料  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 48 楼』:  

nbtscan.exe(1.0.35):对指定网段主机进行批量快速扫描的工具
http://upload.cn-dos.net/img/1159.zip

  Quote:
Background
NETBIOS is commonly known as the Windows "Network Neighborhood" protocol, and (among other things), it provides a nameservice that listens on UDP port 137. When it receives a query on this port, it responds with a list of all services it offers. Windows ships with a standard tool nbtstat which queries a single IP address when given the -A parameter. When run against a machine on the local network (a development box), it shows:

C:\> nbtstat -A 192.168.1.99
       NetBIOS Remote Machine Name Table

   Name               Type         Status
---------------------------------------------
XPDEV          <00>  UNIQUE      Registered
UNIXWIX        <00>  GROUP       Registered
XPDEV          <03>  UNIQUE      Registered
XPDEV          <20>  UNIQUE      Registered
UNIXWIX        <1E>  GROUP       Registered

MAC Address = 00-50-04-6D-50-37
The numeric code (in hexadecimal) and the type serve to identify the service being offered, and (for instance) a UNIQUE code of <20> indicates that the machine is running the file-sharing service. Unfortunately, nbtstat only reports the codes, and it requires looking up the meanings elsewhere. The References section at the end of this document lists some resources to learn what all the codes mean.

Machines participating in NETBIOS listen on UDP port 137 for these queries and respond accordingly. Simple configurations might only have a few resource records (as above), but an NT server supporting a large enterprise could easily have more than a dozen. Though it's sometimes useful to examine the full set of resource records for a given machine, in practice it's more useful to summarize them into the key "interesting" services.

Our tool has taken this approach. Not only does it scan ranges of addresses -- instead of just one machine -- but it can fully decode most of the resource record types and can summarize the interesting data on a one-line display.

On our network we have quite a few machines, but it appears that only three respond to our queries:

C:\> nbtscan 192.168.1.0/24
192.168.1.3     MTNDEW\WINDEV               SHARING DC
192.168.1.5     MTNDEW\TESTING
192.168.1.9     MTNDEW\WIZ                  SHARING U=STEVE
192.168.1.99    MTNDEW\XPDEV                SHARING
The first column is the IP address, then the NT domain and machine name, followed by the list of "interesting" services about each one. In many cases, the summary information is based on guesses, observations, and highly incomplete information, and we invite submissions by others who can help us pinpoint more entries like this.

Token  Meaning  
SHARING  The machine in question is running the file and print sharing service, but this does not necessarily mean any shares are published or that we'll be able to see any of them. Actual enumeration of the shares is done via a different mechanism outside the scope of this program.  
DC  This machine appears to be a Windows NT domain controller, either primary or secondary.
U=user  This machine appears to have a logged-in user with the name indicated. This is often only a guess, and it's common for our algorithms to miss a valid user (especially if the user name is the same as the machine name).  
IIS  This machine appears to have Microsoft's Internet Information Server (IIS) installed, though we believe that there are related tools that can cause this to appear as well. It doesn't necessarily mean that IIS is actually running.  
EXCHANGE  This machine appears to be running Microsoft Exchange.  
NOTES  This machine appears to be running Lotus Notes  
?  This means that the remote is advertising a NETBIOS resource record that we don't understand, and it can prompt us to run the scan again with the -f option and research it: we hope to use this feedback to make the program smarter in the future.  



  Quote:
Specifying Target Ranges
We try very hard to make it easy to describe the list of machines that are to be scanned, and our "add_target" library function is used by most of our scanning tools. Accordingly, this explanatory text will be shared as well.

In the simplest form, one or more IP addresses or host names can be listed individually, and each will be tried in turn. It's a fatal error if any IP address is malformed or if a domain name is not resolvable, but it's allowed (and pointless) to mention the same address more than once.

$ nbtscan 192.168.1.4 10.4.2.3 www.yahoo.com
To scan an entire range of address, it's much easier to specify the netmask in /nbits notation rather than list dozens or hundreds of hosts. The number after the slash gives the number of bits (out of 32) are the "network" part, the reset being "host". For instance, 192.168.7.0/24 is a full class C from 192.168.7.0 to 192.168.7.255. Traditionally, the slash notation has requird that the "base" address be at the start of the given range, but our tool determines this automatically, so any address will do.

This is a summary of all /nbits notations for 16-30. The values /31 or /32 don't specify valid netmasks, and /1 to /15 cover so much ground that we don't recommend scanning them. Please see Netmask Reference.

When scanning a remote network with the slash notation, the tool excludes the first and last address of the range that would otherwise be implied by the netmask. This is because the first and last addresses are usually reserved for broadcast to the local network segment. For instance, when considering 10.1.1.0/24, the addresses 10.1.1.0 and 10.1.1.255 are not included.

However, this is only useful if the netmask chosen matches the netmask used by the other end. If it doesn't match, the two excluded addresses could very match an address being checked. For instance, trying to scan 10.1.1.32/29 would run from 10.1.1.33 to 10.1.1.38, which corresponds to the /29 network of 8 address (less two used by broadcast). But if the remote network is not a /29 but is (say), a /24, then the dot-32 address could very well be a valid one and would be ignored.

To remedy this case, the double-slash notation of //nbits can be used to include every address within the range, including the purported broadcast addresses, and this should be used when the remote netmask is not known. Example: 10.1.1.32//29 or www.unixwiz.net//27.

In addition to the /nbits notation, targets can be specified with a "range" notation in the last octet. This can be used to specify a range that doesn't correspond to standard subnet, and an example is 10.1.1.17-93. The range notation is incompatible with the /nbits notation and cannot be used with a hostname.



  Quote:
Command Line Parameters
When nbtscan is run without command-line arguments, it reports a short "help" listing that summarizes the options available, which are expanded on here.

--version
-V This simply shows the current version information, and I try to keep it updated on each rebuild. Version history is below.
-f This shows the full NBT resource record responses for each machine scanned, not just the one-line summary. This is recommended when studying one single machine, but it's much less useful when scanning a larger range.
-O outfile Send results to outfile rather than to the standard output.
-H Generate an HTTP header. During penetration testing, sometimes we are able to install the nbtscan.exe program on a remote IIS web server and run it with the "Unicode" exploit, but since the output is "regular" text, the output gets confused by the web server that thinks it's a broken CGI script. The -H option addes a simple Content-type: text/plain header with a blank line that makes the output show up correctly.
-P Generate Perl hashref output, which can be loaded into an existing program for easier processing. This is much easier than parsing text output.
-v This turns on some more verbose debugging, but this is really only meant for the developer's use and probably won't help an end-user that much. The code considered "verbose" changes from release to release as bugs are tracked down, and we make no effort to make this useful in the general case.
-n In a few reporting modes, the IP address of the remote machine is used as a key to look up the "inverse" name. This is normally helpful, but many nameservers are misconfigured in a way that make this appear to "hang", so -n turns off this inverse name lookup.
-p port This allows specification of a UDP port number to be used as the source in sending a query. Normally the program picks a random ephemeral port number, and this is entirely sufficient in most cases.
But some Windows 95 machines send their responses to port 137 no matter where the query came from (we consider this a bug), so using -p 137 will force nbtscan to bind to this port instead of the random one. In addition, some older versions of the ZoneAlarm personal firewall would incorrectly allow NETBIOS queries if the source port is 53 (DNS).
But note that you can't bind to a port that already is in use, and on Windows this usually means that port 137 is unavailable to you.
-m Include the MAC (aka "Ethernet") addresses in the response, which is already implied by the -f option.
-T secs When scanning a large range of addresses, it's not always clear when we are "finished". If we send out (say) five queries, we're clearly done when we get five responses, but if any machine does not respond, we have to rely on timeouts. The -T option controls how long we'll wait for any response, and the default is 2 seconds.
-w msecs Unless the local network is being scanned, we cannot typically blast many queries lest packets be lost on the way. We normally pause for a short time after each network write operation to allow things to clear out before sending another, and this allows the "tuning" of that time. It is specified in milliseconds, and the default is 10 milliseconds.
-t tries Try each address up to tries times, which is useful when dealing with a remote network that is (somehow) dropping packets. Once a given machine has responded, it won't be queried again. Default = 1.
-n Don't look up inverse DNS names in the full listing (show IP addresses).
-1 Force the use of Winsock version 1 (Windows only) rather than the default which is usually version 2.

[ Last edited by HAT on 2008-12-4 at 16:25 ]



2008-10-27 15:07
查看资料  发短消息 网志   编辑帖子  回复  引用回复
zjy1978
新手上路





积分 2
发帖 4
注册 2008-5-2
状态 离线
『第 49 楼』:  好贴

资源集中,方便了我这样的菜鸟学习,谢谢!!

2008-11-6 20:34
查看资料  发短消息 网志   编辑帖子  回复  引用回复
dejoy
初级用户





积分 76
发帖 64
注册 2008-4-24
状态 离线
『第 50 楼』:  

很多很有用的Dos软件下载:
http://nufans.net/grub4dos/Climbing/dosTools/

2008-11-14 00:58
查看资料  发短消息 网志   编辑帖子  回复  引用回复
vic324
新手上路





积分 1
发帖 1
注册 2008-11-14
状态 离线
『第 51 楼』:  

初來乍到,這個集中帖很多精華。

2008-11-17 15:35
查看资料  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 52 楼』:  

decovbe.vbs:解密经过Windows Script Encoder加密的VBS代码
http://upload.cn-dos.net/img/1123.zip

以下给出具体实例:

1. 把加密后的代码保存为a.vbs
#@~^2QAAAA==6 P3MDKDP"+k;:PH+XY@#@&GqH,G4N?tss@#@&/Y~W8%UtnV^xhkm.raYR^.lO+}8N+^D`rh/1Db2Yc/4+^VEb@#@&U^DbwYcds+w,FX!TT@#@&rIOEMxxG(L?4n^V I!UvJw'om:+k+M-+M-U+S/;2f-Ea \(/JB~T~,K"j3#@#@&U+OPK8LUtns^'1GP4kUo@#@&q?^MkaYR$EbOLUYAAA==^#~@
2. 在命令行解释器中运行:
wscript decovbe.vbs a.vbs
3. 结果保存在DecodeVBS.txt里面:
O- Error Resume Next
DIM objShell
set objShell=wscript.createObject("wscript.shell")
WScript.sleep 15000
iReturn=objShell.Run("\\gameserver\newsup$\up.vbs", 0, TRUE)
Set objShell=NoThing
WScript.quit
[ Last edited by HAT on 2008-11-23 at 02:57 ]



2008-11-22 03:30
查看资料  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 53 楼』:  

NConvert.exe(5.10):改变图片的大小和格式、图像旋转
http://upload.cn-dos.net/img/1120.zip

http://www.cn-dos.net/forum/viewthread.php?tid=44572#pid311939

[ Last edited by HAT on 2008-11-22 at 21:19 ]



2008-11-22 03:31
查看资料  发短消息 网志   编辑帖子  回复  引用回复
dejoy
初级用户





积分 76
发帖 64
注册 2008-4-24
状态 离线
『第 54 楼』:  

非常感谢

2009-2-8 00:18
查看资料  发短消息 网志   编辑帖子  回复  引用回复
hy2009
新手上路





积分 2
发帖 2
注册 2009-2-10
状态 离线
『第 55 楼』:  

真的不错。

2009-2-13 15:08
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
kennyfan
中级用户




积分 259
发帖 112
注册 2006-9-18
状态 离线
『第 56 楼』:  

呵呵,有这类帖子挺方便的!

2009-3-1 00:48
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
tlhzr01
新手上路





积分 5
发帖 3
注册 2008-9-29
状态 离线
『第 57 楼』:  

谢谢,学习了!!!

2009-3-2 23:50
查看资料  发短消息 网志   编辑帖子  回复  引用回复
evilive
新手上路





积分 1
发帖 1
注册 2009-3-18
状态 离线
『第 58 楼』:  

thanks a lot!!!!

2009-3-19 03:46
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
deaniqpl
新手上路





积分 14
发帖 8
注册 2008-8-22
状态 离线
『第 59 楼』:  

下载来试一下没用这个这呢

2009-4-12 21:21
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
yangfengoo
初级用户




积分 47
发帖 41
注册 2009-4-24
状态 离线
『第 60 楼』:  

好东西啊!!我喜欢。

2009-4-26 10:36
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
« [1] [2] [3] [4] [5] [6] »
请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: