Code Monkey home page Code Monkey logo

Comments (7)

dmchell avatar dmchell commented on August 17, 2024

Can you provide an example command line you're using? I'm not able to reproduce this...

e.g. $ python SharpShooter.py --stageless --dotnetver 4 --payload hta --output foo --rawscfile ./raw.txt --sandbox 4 --smuggle --template mcafee

This generates a v4 payload - you can tell by enabling the print on line 537, where the created output uses Wscript.shell.

from sharpshooter.

SSATKINS avatar SSATKINS commented on August 17, 2024

Using the syntax above I confirm that the output is .net version 4.0 as the print statement shows the use of WScript.Shell.

However this triggers the prompt for .NET Framework 3.5 installation on a fresh Windows 10 install.

This can be remediated by replacing your SetVersion sub with the one in Vincent's commit 12 days ago here: vysecurity/CACTUSTORCH@9527c13

This bypasses Sophos, ESET etc. but Windows Defender picked up on execution of the output HTA from the above exercise. I'm not sure at this stage what it flagged on.

from sharpshooter.

dmchell avatar dmchell commented on August 17, 2024

I'll give the setversion stub a test and see how it fares.

In terms of defender, you may want to review #9. This should be a case of just using some opsec shellcode, or using the encrypter referenced in the issue.

from sharpshooter.

SSATKINS avatar SSATKINS commented on August 17, 2024

Looks like #9 is the Defender issue - thanks.

Feel free to close if the setversion prevents the .NET Framework popup šŸ‘

from sharpshooter.

dmchell avatar dmchell commented on August 17, 2024

Tracked this down and fixed in this commit d9750be

from sharpshooter.

dmchell avatar dmchell commented on August 17, 2024

Thanks @SSATKINS

from sharpshooter.

myexploit avatar myexploit commented on August 17, 2024

Sorry about adding this to issue 8 but seems the closest to what i'm getting.

Using a fresh span up Win 10 from developer.microsoft.com Build 17763.rs5_release.180914-1434

python SharpShooter.py --stageless --dotnetver 4 --payload hta --output foo --rawscfile /root/Desktop/payload.bin --sandbox 4 --smuggle --template mcafee

Iā€™m getting the following error on my Win 10 VM.

  • An app on your PC needs the following Windows feature:
  • .NET Framework 3.5 (includes .NET 2.0 and 3.0)

The HTA works fine with Windows 7.

from sharpshooter.

Related Issues (20)

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.