Giter Club home page Giter Club logo

Comments (15)

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024 1

There were two more bugs which should now be fixed. It will take a long time to run now if you have multiple Drives connected to a system. But it should not be nessesary to press enter or anything anytime.

Theese bugs were not only in the noninteractive WinPwn so thank you for the hint. :-)

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024 1

I will merge it there but i didn´t have enough time the last days/weeks. Some patience ;-)

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024 1

8196cca

I´ll close this now. If you think important checks should be added for the noninteractive switch feel free to comment.

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024

There is basically no big difference between PowerSharpPack and WinPwn. Both are using functions and can be loaded into memory. If you cant display the menu if WinPwn for example you could use the explicit function for every step.

Its not working if you use an asynchronous C2-Server if you mean that.

from winpwn.

ankushgoel27 avatar ankushgoel27 commented on May 31, 2024

I am using poshc2 which is not interactive session. It loads scripts fine but doesn't display menu. What can I do to load with winpwn and execute functions? Since the menu talks about pressing 1,2,3 for executing commands.

from winpwn.

ankushgoel27 avatar ankushgoel27 commented on May 31, 2024

In powersharppack, I can load the script in memory and call on functions with arguments so it works fine in poshc2 and in my scenario. Does that makes sense?

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024

I won’t modify the script for this use case because I wanted it to be very easy and fast to use. The Menu and interaction with the user will not be possible with an asynchronous C2.

If you look at the script source code for the menu and for the submenu you will see that for every number there is a switch case statement and a function lying behind it. If you put those function names for example at the very end of the script they will be automatically executed when the script is loaded. This should fit your needs. But if there is a question which needs a “Yes” or “No” the script will hang at this point. So you would have to modify the questions as well.

I’m using Pupy as C2 most times which has an interactive Shell, so I don’t have this problem atm.

Greetings

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024

Also WinPwn is not meant to be a run and get everything out of it Tool. It’s use case based. If you need Privilege escalation checks you can run those functions. If you need an overview for a domain you can use domainrecon modules and so on.

It would be possible to split the script in many peaces and integrate those peace’s in an asynchronous C2.

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024

I thought about it one more time. And I will implement a switch for noninteractive shells. This will result in some limitations - but makes it asynchronous C2 ready.

from winpwn.

ankushgoel27 avatar ankushgoel27 commented on May 31, 2024

Thank you.

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024

Domainreconmodules, LocalReconmodules and Privesc + C#Magic is now noninteractive. Give it a try and feedback! 👍
For Example: WinPwn -Privesc -noninteractive
I will add more options for other functions this week.

d3f7ed0

from winpwn.

ankushgoel27 avatar ankushgoel27 commented on May 31, 2024

i ran the privesc module..works fine..but the localrecon module gets stuck asking for input for sessiongopher. Thank you again for making this possible. makes life easier having all the modules in one place and run them.

from winpwn.

S3cur3Th1sSh1t avatar S3cur3Th1sSh1t commented on May 31, 2024

Oh i forgot about sessiongopher. Should be fixed by now :)

from winpwn.

ankushgoel27 avatar ankushgoel27 commented on May 31, 2024

1

i tried to run it few times...sometimes it would just pause and i have to press enter to continue it running. Also, i am seeing this error in the attached image.

from winpwn.

ankushgoel27 avatar ankushgoel27 commented on May 31, 2024

Can this also be incorporated in your offline version

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.