Giter Club home page Giter Club logo

Comments (9)

a7t0fwa7 avatar a7t0fwa7 commented on May 29, 2024 2

Excellent blog posts mate. Thank you for awesome contributions.

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 29, 2024

Hey,

The parameters are correct if you want to use Domainreconmodules.

grafik

DomainReconmodules will most likely run a very long time with theese parameters depending on the domain size, especially the search for network shares takes much time here. Take a look at the code, the WinPwn function calls the Domainreconmodules function and Domainreconmodules calls different sub-functions like generaldomaininfo, shareenumeration, powerSQL, printercheck and so on with the corresponding parameters:

grafik

So you could also use them as standalone functions depending on what you want to do:

powerSQL -noninteractive - PowerUPSQL Checks

snaffler -noninteractive -consoleoutput - snaffler without questions and with consoleoutput

generaldomaininfo -noninteractive -consoleoutput - All those text file information which is normally generated in the Domainrecon Folder

Your error messages look like some of the scripts used by Domainreconmodules have problems in your environment, but i didnĀ“t see theese messages so far anywhere. DidnĀ“t use the Offline version in combination with PowerShdll so till now.

You could try all the subfunctions of generaldomainInfo and tell me which one of it has this problem.

Greetings

from winpwn.

a7t0fwa7 avatar a7t0fwa7 commented on May 29, 2024

Ah excellent will definitely give it a try and let you know which parameters could potentially present issues. Thanks again for your great help.
Yes I thought you would be interested in knowing the pre-conditions on how WinPwn is being used i am engaged in a locked down environment at the moment so was interested in seeing how WinPwn would behave.
Cheers

from winpwn.

a7t0fwa7 avatar a7t0fwa7 commented on May 29, 2024

Ok buddy,

Seems that Powershdll doesn't handle the console output properly so you actually need to push all the WInPwn output to a file and only then can i go through the findings

`PS H:\Desktop2019>WinPwn -noninteractive -consoleoutput -Privesc >WinPwn_Privesc_output.txt`

otherwise i get this below

PS H:\Desktop2019>WinPwn -noninteractive -Privesc
A positional parameter cannot be found that accepts argument 'proxy.redacted.local:80'.

PS H:\Desktop2019>WinPwn -noninteractive -consoleoutput -Privesc 
Cannot find drive. A drive with the name 'blahblahblah' does not exist.

Will continue to test on target while i can and update.

Cheers

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 29, 2024

I am interested in how WinPwn is used and i am interested in how it behaves in different situations, this could also happen to me sometime. I just tried to replicate this using PowerShdll but i canĀ“t even load WinPwn in its runspace. You could also try other open source alternatives like MsBuildshell, just replace the AMSI Bypass Namespace and Class name with random names. There are several projects like PowerLessShell, nopowershell Stracciatella and more. You will get the output from other tools including error messages in the MsBuildShell.

image

from winpwn.

a7t0fwa7 avatar a7t0fwa7 commented on May 29, 2024

Awesome thanks mate. Definitely will try the alternatives. Just as a heads up and interesting thing to note, i also used PowerSharpPack and found that the PowerSharpPack.ps1 gets flagged by AMSI but lets all the other binaries through LOL.

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 29, 2024

Thats because i didnĀ“t change the AMSITrigger there so far, itĀ“s explained in one of my blog posts here:

https://s3cur3th1ssh1t.github.io/Bypass_AMSI_by_manual_modification/

grafik

I switched all scripts to gzip compression yesterday so at this time they are not flagged but they will get flagged in the near future again ;-)

from winpwn.

a7t0fwa7 avatar a7t0fwa7 commented on May 29, 2024

Tried out MSBuildSell and it works great on my lab test machine, but as soon as i attempt to run it on my target for some reason there seems to be build errors occuring. Mind you i am launching this via PowerShdll. So tomorrow will test out by launching commands from a batch script and see if that works. Will keep you posted

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 29, 2024

If you encounter new behaviours feel free to reopen.

from winpwn.

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.