File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -986,15 +986,11 @@ def asreproast(self):
986986
987987 def kerberoasting (self ):
988988 if self .args .no_preauth :
989- if not self .args .username :
990- self .logger .fail ("Use -u/--username to supply a list of usernames or SPNs (file or comma-separated list)" )
991- return
992-
993989 usernames = []
994- for item in self .args .username :
990+ for item in self .args .no_preauth :
995991 if os .path .isfile (item ):
996992 with open (item , encoding = "utf-8" ) as f :
997- usernames .extend (l .strip () for l in f if l .strip ())
993+ usernames .extend (line .strip () for line in f if line .strip ())
998994 else :
999995 usernames .append (item .strip ())
1000996
@@ -1008,10 +1004,7 @@ def kerberoasting(self):
10081004 skipped .append (base_name )
10091005 continue
10101006
1011- hashline = KerberosAttacks (self ).get_tgs_no_preauth (
1012- self .args .no_preauth ,
1013- spn
1014- )
1007+ hashline = KerberosAttacks (self ).get_tgs_no_preauth (self .username , spn )
10151008 if hashline :
10161009 hashes .append (hashline )
10171010
You can’t perform that action at this time.
0 commit comments