GithubHelp home page GithubHelp logo

Comments (2)

cube0x0 avatar cube0x0 commented on June 15, 2024

Local admin works https://github.com/cube0x0/CVE-2021-1675#smb-configuration

PS C:\Users\Administrator\Desktop> mkdir C:\share
Directory: C:
Mode LastWriteTime Length Name


d----- 6/30/2021 4:23 PM share

PS C:\Users\Administrator\Desktop> icacls C:\share\ /T /grant Anonymous` logon:r
processed file: C:\share
Successfully processed 1 files; Failed processing 0 files

PS C:\Users\Administrator\Desktop> icacls C:\share\ /T /grant Everyone:r
processed file: C:\share
Successfully processed 1 files; Failed processing 0 files

PS C:\Users\Administrator\Desktop> New-SmbShare -Path C:\share -Name share -ReadAccess 'ANONYMOUS LOGON','Everyone'
Name ScopeName Path Description


share * C:\share

PS C:\Users\Administrator\Desktop> REG ADD "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v NullSessionPipes /t REG_MULTI_SZ /d srvsvc /f #This will overwrite existing NullSessionPipes
The operation completed successfully.

PS C:\Users\Administrator\Desktop> REG ADD "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v NullSessionShares /t REG_MULTI_SZ /d share /f
The operation completed successfully.

PS C:\Users\Administrator\Desktop> REG ADD "HKLM\System\CurrentControlSet\Control\Lsa" /v EveryoneIncludesAnonymous /t REG_DWORD /d 1 /f
The operation completed successfully.

PS C:\Users\Administrator\Desktop> REG ADD "HKLM\System\CurrentControlSet\Control\Lsa" /v RestrictAnonymous /t REG_DWORD /d 0 /f
The operation completed successfully.

PS C:\Users\Administrator\Desktop> whoami
srv02\administrator

from cve-2021-1675.

MortalAndTry avatar MortalAndTry commented on June 15, 2024

srv02\administrator is a domain administrator, so when you open a powershell with adminnistrator , it will require domain administrator authentication

from cve-2021-1675.

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.