Code Monkey home page Code Monkey logo

concealed_position's People

Contributors

jacob-baines avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

concealed_position's Issues

Block unauthenticated requests - Error 1272 or 5

Hi there, floyd from Pentagrid here (the "POISIONDAMAGE" guys)

I tried to use concealed position and it worked fine until I tried to install the printer with cp_client.exe. It seems deactivating the password protected sharing in the advanced sharing settings is breaking the exploit in this setup. The error message of cp_client.exe is:

Couldn't connect to the remote printer: 1272

Digging a little, I found that error 1272 is probably:

You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help protect your PC from unsafe or malicious devices on the network.

And of course if I don't deactivate password protected sharing, I get:

Couldn't connect to the remote printer: 2

Which is access denied, because cp_client.exe didn't authenticate.

Some more debug info. This line fails:

if (OpenPrinter((LPWSTR)wPrinter.c_str(), &hPrinter, &defaults) == false)

OpenPrinter doc is here and is called with the first argument (pPrinterName) being an UNC path (\<name>):

https://docs.microsoft.com/en-us/windows/win32/printdocs/openprinter

So the question is which component is responsible for authentication on the UNC paths. Probably the machine sees that it is a non-authenticated share. So we need authentication. The question is if there is something that allows to accept any NTLM/Kerberos authentication the Windows machine is doing.

Any chance to fix this? Any other ideas?

Edit: I'm going to try to mount the server first (aka "net use Z: \Server\SharedFolder passwordGoesHere /USER:userAccountGoesHere /persistent:no"), then try the exploit again, I guess the UNC authentication part is transparent Windows magic to OpenPrinter and if the printer is alread "mounted" that might work

Potential bug in how cp_client.exe -l -e POISONDAMAGE works

You can not run: cp_client.exe -l -e POISONDAMAGE without firstly running cp_server.exe -e POISONDAMAGE and deleting the shared printer. If you do it tells you the driver doesn't exist, if you don't delete the shared printer it tells you the printer is already installed. is this a bug?

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.