Giter VIP home page Giter VIP logo

schtask-bypass's Introduction

schtask-bypass

免杀计划任务进行权限维持,过国内主流杀软。 A schtask tool bypass anti-virus

请勿使用于任何非法用途,由此产生的后果自行承担。

开机自启动、登陆自启动、定时执行任务三种权限维持的免杀方法。

需要以管理员权限执行dll,计划任务会以SYSTEM权限进行执行,也算是变相的提权了。

经过师傅的测试,cs在执行rundll32的时侯rundll32可以不必指定目录默认调用,但如ghost在终端执行的时侯就必须将rundll32文件放到和dll同一个目录下面才能执行成功。

思路很简单,参考微软官方的文档写的dll,之前尝试过exe不免杀,但是dll免杀,直接编译即可。

若想修改计划任务的名字,请修改源码中wszTaskName,这里为了减少输入项暂时未让用户输入计划任务名字。

师傅们也可以修改为反射型dll,然后不落地注入。

也可以参考该项目将dll转为shellcode并注入实现不落地执行。

通过AttachConsole将输出转到父进程控制台,进而获取到dll的输出。

Dll_task_boot

开机启动使用Dll_task_boot,以SYSTEM权限执行计划任务,filename为计划任务的启动程序的绝对路径:

rundll32 Dll_task_boot,DllMain filename

1667714567689

Dll_task_login

登陆启动使用Dll_task_login,需要输入用户名、权限、计划任务的启动程序三个参数:

以管理员用户为例

rundll32 Dll_task_login,DllMain Administrator S-1-5-32-544 filename

SID可以从whoami /all中当前所在组的别名中来找到

1667727254525

Dll_task_time

定时执行计划任务使用Dll_task_time,以SYSTEM权限执行计划任务,需要输入间隔的分钟数以及计划任务的启动程序:

以每隔一分钟执行一次弹出计算器为例,同时请注意只有当启动程序退出之后才会再次执行计划任务,不会每隔一分钟就有一个新的会话上线服务器

rundll32 Dll_task_time,DllMain 1 filename

1667734784929

schtask-bypass's People

Contributors

h4de5-7 avatar

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.