Giter Club home page Giter Club logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Hey Bryan:

Thanks for the report.. I'll take a look it at.. 

Any specific MSF module you're using for testing this? ( I assume all of them 
uses the same SMB client library, but just in case..)

cheers,
beto


Original comment by [email protected] on 6 Sep 2012 at 1:28

  • Added labels: ****
  • Removed labels: ****

from impacket.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024

Original comment by [email protected] on 6 Sep 2012 at 3:02

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

from impacket.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Okey.. I think it's fixed.. please verify...

I tested it with smb_login and smb_enumshares.

Actually metasploit, as you say,DOES send extended security in the neg packet 
but not on the session_setup one.. Against a Windows 7 MSF does send it in both 
packets. There must be something the in my negproto answer that confuses msf 
(or something i'm returning not compliant with the protocol).  

I haven't applied your fix tho.. main problem is you can't cast the data to 
SMBSessionSetupAndX_Extended_Parameters if you're not sure whether or not the 
client sent that. SMBSessionSetupAndX_Extended_Parameters and 
SMBSessionSetupAndX_Parameters have different sizes. That would break clients 
trying to connect with standard security, under some circumstances.

What I did is what [MS-SMB] recommends, which is still reading the Flags2 at 
this stage to decide whether it's extended security or not.

One important note tho.. smbServer still does NOT support NTLMv2 authentication 
using under standard security (this is what MSF does), it does under extended 
security although right now we're granting access to everybody. So if you think 
about checking usernames it won't work yet.  

thanks again for the report Bryan..

cheers,
beto

Original comment by [email protected] on 6 Sep 2012 at 3:38

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from impacket.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Forgot to say...

fixed in http://code.google.com/p/impacket/source/detail?r=710

Original comment by [email protected] on 6 Sep 2012 at 3:39

  • Added labels: ****
  • Removed labels: ****

from impacket.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Confirmed it has been fixed, thanks for the quick turnaround!

Original comment by [email protected] on 6 Sep 2012 at 3:47

  • Added labels: ****
  • Removed labels: ****

from impacket.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Great :)

Check http://code.google.com/p/impacket/source/detail?r=711, I found out what 
was wrong there too.. Now it's more compliant with [MS-SMB] and [MS-CIFS].

Cheers,
beto

Original comment by [email protected] on 6 Sep 2012 at 4:03

  • Added labels: ****
  • Removed labels: ****

from impacket.

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.