Skip to content

Commit

Permalink
Fix inverted logic properly
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai-NL committed Dec 8, 2021
1 parent 504d4fa commit d6ff542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zerologon_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def perform_attack(dc_handle, dc_ip, target_computer):
for attempt in range(0, MAX_ATTEMPTS):
rpc_con = try_zero_authenticate(dc_handle, dc_ip, target_computer)

if rpc_con:
if not rpc_con:
print('=', end='', flush=True)
else:
break

if not rpc_con:
if rpc_con:
print('\nSuccess! DC can be fully compromised by a Zerologon attack.')
else:
print('\nAttack failed. Target is probably patched.')
Expand Down

0 comments on commit d6ff542

Please sign in to comment.