Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

常用DOS命令

查看数: 2478 | 评论数: 4 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2019-12-31 10:34

正文摘要:

远程桌面   mstsc 路由 route delete 0.0.0.0 route add -p 0.0.0.0 mask 0.0.0.0 192.168.1.1 关机 你的电脑要在22:00关机,可以选择“开始→运行”,输入“at 22:00 Shutdown -s”, 以倒 ...

回复

Qter 发表于 2020-1-4 12:24:39
关闭那个服务将无法远程桌面 mstsc
一、我的电脑-属性-远程-去掉“远程协助”和“远程桌面”的勾选-确定。
二、开始-“运行”输入“Services.msc”打开服务设置窗口,禁用以下服务:
1、NetMeeting Remote Desktop Sharing  
允许受权的用户通过NetMeeting在网络上互相访问对方。
2、Messenger  
俗称信使服务,电脑用户在局域网内可以利用它进行资料交换。
3、Terminal Services  
允许多位用户连接并控制一台机器,并且在远程计算机上显示桌面和应用程序。
4、Remote Registry  
使远程用户能修改此计算机上的注册表设置。  
5、Telnet  
允许远程用户登录到此计算机并运行程序,并支持多种 TCP/IP Telnet客户,包括基于 UNIX 和 Windows 的计算机。  
6、Remote Desktop Help Session Manager  
如果此服务被终止,远程协助将不可用。  
7、TCP/IP NetBIOS Helper  
NetBIOS在Win 9X下就经常有人用它来进行攻击,对于不需要文件和打印共享的用户,此项也可以禁用。
Qter 发表于 2019-12-31 12:02:41
ping


Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]

            [-r count] [-s count] [[-j host-list] | [-k host-list]]

            [-w timeout] target_name



Options:

    -t             Ping the specified host until stopped.

                   To see statistics and continue - type Control-Break;

                   To stop - type Control-C.

    -a             Resolve addresses to hostnames.

    -n count       Number of echo requests to send.

    -l size        Send buffer size.

    -f             Set Don't Fragment flag in packet.

    -i TTL         Time To Live.

    -v TOS         Type Of Service.

    -r count       Record route for count hops.

    -s count       Timestamp for count hops.

    -j host-list   Loose source route along host-list.

    -k host-list   Strict source route along host-list.

    -w timeout     Timeout in milliseconds to wait for each reply.


route

C:\>route

Manipulates network routing tables.

ROUTE [-f] [-p] [command [destination]
                  [MASK netmask]  [gateway] [METRIC metric]  [IF interface]

  -f           Clears the routing tables of all gateway entries.  If this is
               used in conjunction with one of the commands, the tables are
               cleared prior to running the command.
  -p           When used with the ADD command, makes a route persistent across
               boots of the system. By default, routes are not preserved
               when the system is restarted. Ignored for all other commands,
               which always affect the appropriate persistent routes. This
               option is not supported in Windows 95.
  command      One of these:
                 PRINT     Prints  a route
                 ADD       Adds    a route
                 DELETE    Deletes a route
                 CHANGE    Modifies an existing route
  destination  Specifies the host.
  MASK         Specifies that the next parameter is the 'netmask' value.
  netmask      Specifies a subnet mask value for this route entry.
               If not specified, it defaults to 255.255.255.255.
  gateway      Specifies gateway.
  interface    the interface number for the specified route.
  METRIC       specifies the metric, ie. cost for the destination.

All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.

If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.

If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
Diagnostic Notes:
    Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
    Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
             The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.

Examples:

    > route PRINT
    > route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2
             destination^      ^mask      ^gateway     metric^    ^
                                                         Interface^
      If IF is not given, it tries to find the best interface for a given
      gateway.
    > route PRINT
    > route PRINT 157*          .... Only prints those matching 157*
    > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2

      CHANGE is used to modify gateway and/or metric only.
    > route PRINT
    > route DELETE 157.0.0.0
    > route PRINT

Qter 发表于 2019-12-31 10:34:39
本帖最后由 Qter 于 2022-12-9 19:24 编辑

查看dll导出及依赖命令
在Visual Studio命令行中运行
dumpbin.exe /exports D:\Test\dll1.dll

---------------------
VC6里有depends和dumpbin,Linux下是ldd和objdump,可查询依赖库


C:\Program Files\Microsoft Visual Studio 10.0\VC>dumpbin /DEPENDENTS D:\todb_x86.dll




Regsvr32 [ /u ][ /s ][ /n ][ /i [ :cmdline ] ] dll文件名”,


regsvr32 /u "C:\新建文件夹\mCloud\mcloud_shell_ext_x64.dll"

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-6-18 15:53 , Processed in 0.058110 second(s), 23 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表