Comments (5)
Confirmed, even with the example ticket, the same error occurs:
python3 -tt ./kerberoast.py -p phoenix1 -r ./examples/MSSQLSvc-sql01.medin.local.kirbi -w ./examples/sql.kirbi2 -u 500
Traceback (most recent call last):
File "/opt/repos/kerberoast/./kerberoast.py", line 225, in <module>
pacobj = PAC.PAC(pac)
NameError: name 'PAC' is not defined
I was trying to troubleshoot the issue, I tried importing PAC differently
from pac import PAC
But the way it was used in kerberoast.py, made it fail differently:
python3 -tt ./kerberoast.py -p phoenix1 -r ./examples/MSSQLSvc-sql01.medin.local.kirbi -w ./examples/sql.kirbi2 -u 500
Traceback (most recent call last):
File "/opt/repos/kerberoast/./kerberoast.py", line 225, in <module>
pacobj = PAC.PAC(pac)
AttributeError: type object 'PAC' has no attribute 'PAC'
Then I changed the code so it uses PAC and not PAC.PAC, but this happened:
python3 -tt ./kerberoast.py -p phoenix1 -r ./examples/MSSQLSvc-sql01.medin.local.kirbi -w ./examples/sql.kirbi2 -u 500
Traceback (most recent call last):
File "/opt/repos/kerberoast/./kerberoast.py", line 225, in <module>
pacobj = PAC(pac)
File "/opt/repos/kerberoast/pac.py", line 466, in __init__
self.load(pac)
File "/opt/repos/kerberoast/pac.py", line 477, in load
numentries, self.Version = struct.unpack('<II', pac[:8])
TypeError: a bytes-like object is required, not 'str'
I have no idea what else to try.
from kerberoast.
Facing the same issue. Does anyone know how to solve it? @nidem Please?
from kerberoast.
I've been having a look at it, there are a lot of issues where it has been ported to python3 and strings are treated as bytes and vice-versa.
from kerberoast.
@nse-bse @xm17 @jorgejams88 please can you check if this resolves your issues.
from kerberoast.
@nse-bse @xm17 @jorgejams88 please can you check if this resolves your issues.
I try 3.6,3.7,3.8,3.9 version.
Seen still not fix this issues.
https://github.com/blitztide/kerberoast/blob/fix-kerberoast/kerberoast.py
from kerberoast.
Related Issues (14)
- Cannot encode ticket: AttributeError: 'GeneralizedTime' object has no attribute 'encode' HOT 6
- wordlist.txt HOT 1
- Unknown error (0x80005000) HOT 6
- Should switch to Python 3 HOT 4
- tgsrepcrack error
- tgsrepcrack.py error(s) HOT 4
- kirbi2john
- Filter for only no-computer accounts HOT 4
- John module HOT 1
- Receiving the following when starting tgsrepcrack HOT 3
- Feature Request: Verbose TGSrepCrack HOT 2
- 'NoneType' object has no attribute 'encode' HOT 6
- UnicodeDecodeError 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 kerberoast.