Comments (5)
uhmm.. what was the context where you used it?...
Seems to be working for me:
>>> from impacket.dcerpc import dcerpc
>>> hh = dcerpc.MSRPCHeader()
>>> hh
<impacket.dcerpc.dcerpc.MSRPCHeader instance at 0x7fc0a8371440>
>>> hh.dump()
MSRPCHeader
ver_major: {5}
ver_minor: {0}
pduData: {''}
auth_data: {''}
flags: {3}
type: {0}
auth_len: {0}
>>> str(hh)
'\x05\x00\x00\x03\x10\x00\x00\x00\x10\x00\x00\x00\x01\x00\x00\x00'
Remember that 'no data' should be data = None.. not data = ''
bto
Original comment by [email protected]
on 10 Sep 2012 at 6:25
from impacket.
This happened when connecting with my windows 7 host. Data was indeed '' not
None. Not sure how that happened exactly..
Original comment by [email protected]
on 10 Sep 2012 at 6:58
from impacket.
So the scenario is your Windows 7 connecting to the smbserver and asking for
shares right?
If you have the traceback for the exception that'd be great.., plus wireshark
dump (if possible)..
It's kind of weird.. that never happened to me.. and I usually connect against
the smbserver from Windows 7 machines..
Traceback might give some clues...
In the meantime try this patch (just to test):
Structure.__init__(self,data, alignment)
if data is None or data is '':
But we should track the origin of why there's a cast to that structure with ''
data.
thanks bryan..
Original comment by [email protected]
on 10 Sep 2012 at 7:17
from impacket.
The comments in simple_server suggest that you need to run srvsvc for windows 7
to connect, but I have found the opposite, that my windows 7 box works better
without srvsvc bound.
I'll try to get to the bottom of that data=='' issue.
Original comment by [email protected]
on 10 Sep 2012 at 8:18
from impacket.
Bryan:
I'm closing this one..as we saw.. you need to pass Data = None to the
dcerpc.MSRPCHeader() constructor to work as expected.. otherwise it will think
there's data and will try to parse it.
Original comment by [email protected]
on 10 Sep 2012 at 11:07
- Changed state: Invalid
from impacket.
Related Issues (20)
- Constrained Delegation With Ticketer ST Gives "KRB_AP_ERR_MODIFIED(Message stream modified)" HOT 1
- PyOpenSSL has removed deprecated PKCS12 breaking --shadow-credentials in ntlmrelayx.py HOT 1
- Can't add REG_MULTI_SZ registry values using reg.py HOT 3
- Failed building wheel while installing HOT 2
- unsupported mechtype 'negoex - spnego extended negotiation security mechanism' HOT 2
- NTLMRelayX (multirelay) infinite retries when attacking an HTTP target even if successful
- SMB: Missing out of memory error handling 0x17000000 HOT 4
- AttributeError: 'NTLMRelayxConfig' object has no attribute 'setAddComputerSMB') HOT 1
- Create a release for impacket HOT 1
- Moving `impacket/impacket/examples` to `impacket/examples` HOT 9
- Does not install on Windows 10 HOT 1
- wmiexec.py: "Can't find a valid stringBinding to connect" when using a domain defined in `/etc/hosts` HOT 1
- HTTP relay server fails to negotiate NTLM authentication for keep-alive requests
- secretsdump.py empty output when dumping AD hashes. HOT 1
- NTDSHashes.__init__() got an unexpected keyword argument 'skipUser' HOT 3
- Feature Request: secretsdump.py should also parse deleted registry hives
- AttributeError: 'NTLMRelayxConfig' object has no attribute 'setAddComputerSMB' HOT 1
- Signed commits break building and installing from git repo if `log.showSignature=true` in git
- mssqlclient.py doesn't list databases when used directly from the repo HOT 1
- SOC alert with Microsoft defender HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from impacket.