Git Product home page Git Product logo

osep-automate-payloads's Introduction

准备

  1. 在kali上安装smb, 开启smb服务,让windows可以访问文件
sudo apt install samba
sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.old
sudo nano /etc/samba/smb.conf
[visualstudio]
 path = /home/kali/data
 browseable = yes
 read only = no
sudo smbpasswd -a kali
sudo systemctl start smbd

mkdir /home/kali/data
chmod -R 777 /home/kali/data
  1. 在Windows上安装Visual Studio

  2. 将输出文件out链接到/var/www/html(可能需要修改apache配置文件,允许访问软链接),将工具放在/var/www/html/tools (可能需要修改权限)

ln -s ./out /var/www/html
mkdir /var/www/html/tools
  1. 根据自己在/var/www/html中的工具,修改data/usage.md,脚本会自动修改ip

使用方法

GIF 2023-7-8 16-47-19

  1. 运行 参数为指定网卡
./Generator.py tun0
./Generator.py eth0
  1. 切换到Windows打开payloads/payloads.sln,重新生成

  2. 切换回kali,继续运行

  3. 打开usage.md,直接对命令进行复制粘贴

按提示在windows上打开payloads.sln,编译程序(可能需要修改生成程序的路径)

所有结果都生成在out中

所有url和命令都在usage.md,直接复制命令

C#

  • inject 进程注入 exe
  • hollowing exe
  • inject dll
  • hollowing dll
  • Dotnet2jscript inject dll
  • Dotnet2jscript hollowing dll
  • BypassCLM exe C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe /logfile= /LogToConsole=false /U C:\Users\admin\Desktop\BypassCLM.exe
  • aspx
  • compiler绕过白名单
  • Installer直接反弹shell绕过白名单 有点问题 wmi的正常

ps1

  • inject.ps1 直接注入
  • reflection.ps1 powershell反射 inject/hollow
  • netreflection.ps1net反射dll 路径可能需要修改
  • msfvenom直接生成的

vba

  • loader.vba 普通方法 x86
  • vba执行powershell 调用WMI 6.8.2 可以是x64 必须修改为runner.doc

hta

  • 绕过白名单

xsl

  • Compiler白名单绕过 http:///other/test.xml http:///other/test.txt
  • wmic执行powershell 放到了Csharp中

使用的payload

windows/x64/meterpreter/reverse_https

windows/x64/meterpreter/reverse_https thread

windows/meterpreter/reverse_https

windows/meterpreter/reverse_https thread


[email protected]

osep-automate-payloads's People

Contributors

seagate-1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

deltared1a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.