Comments (5)
Wow.. nice catch Bryan.. Can you send me an output of the error you receive?
Original comment by [email protected]
on 10 Sep 2012 at 5:26
- Changed state: Accepted
- Added labels: ****
- Removed labels: ****
from impacket.
caught exception: ("'L' format requires 0 <= number <= 4294967295", "When
packing field 'pNetName | <L | 4410144592' in
impacket.dcerpc.srvsvc.SRVSVCShareInfo1")
Original comment by [email protected]
on 10 Sep 2012 at 5:28
- Added labels: ****
- Removed labels: ****
from impacket.
here's a random test in my environment:
In [1]: x = id('test')
In [2]: x
Out[2]: 4341761680
In [3]: x > 2**32
Out[3]: True
In [4]: x - 2**32
Out[4]: 46794384
In [5]: import struct
In [6]: struct.pack('>L', x)
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-6-80b596231688> in <module>()
----> 1 struct.pack('>L', x)
error: 'L' format requires 0 <= number <= 4294967295
Original comment by [email protected]
on 10 Sep 2012 at 5:29
- Added labels: ****
- Removed labels: ****
from impacket.
Great...
Yep.. your fix indeed solves the problem.. but only if the definition of the
structure field is '<L' (otherwise the mask should be changed).. stick to that
fix.. and let me review the other parts of the library when id() is used and
see if I can come up with something more general, that can check the
structure's definition as well.
We had a similar issue in the past in structure (it uses id() for some stuff
too..)...
graciass!
bto
Original comment by [email protected]
on 10 Sep 2012 at 5:33
- Added labels: ****
- Removed labels: ****
from impacket.
Okey..
There weren't many other instances of the same problem.. (just a few in
svcctl). Fixed in http://code.google.com/p/impacket/source/detail?r=715
Let me know if it works...
thanks bryan!
Original comment by [email protected]
on 10 Sep 2012 at 7:41
- Changed state: Fixed
- Added labels: ****
- Removed labels: ****
from impacket.
Related Issues (20)
- smbrelayx.py prob HOT 9
- smbserver.py does not work with signing HOT 1
- SMBTransport instance has no attribute 'get_dce_rpc' HOT 5
- secretsdump.py not working against winXP HOT 1
- secretsdump not working against a Windows 2000 Server HOT 1
- Error on function set_bytes_from_string in ImpactPacket.py HOT 2
- Services.py pass the hash causes an error HOT 3
- Python 2.6 support for OrderedDict HOT 2
- esentutl.py crashes while dumping table from ntds.dit HOT 6
- retr_file permissions issue in smb.py HOT 12
- smbserver not working with OSX Mavericks
- On Windows 2012R2 reports Broken Pipe HOT 7
- SMB_FIND_FILE_BOTH_DIRECTORY_INFO FileName non-NUL terminated HOT 8
- Bad record decoding in ese.py HOT 3
- error: can only concatenate tuple (not "unicode") to tuple HOT 6
- secretsdump.py utf16 codec errors HOT 13
- SMBv1 stack doesn't talk unicode on the wire HOT 8
- New KRB5 module/lib isn't installed HOT 2
- Patch for /trunk/impacket/examples/serviceinstall.py HOT 1
- psexec.py script throwing exceptions
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.