Skip to content

Commit

Permalink
issue with atexec.py Pennyw0rth#1
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaaz-fr committed Dec 10, 2024
1 parent 3945b65 commit 728f653
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions nxc/protocols/smb/atexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ def gen_xml(self, command, fileless=False):
xml = f"""<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<Triggers>
<CalendarTrigger>
<StartBoundary>2024-09-29T10:12:18.1178577</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>3</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
<RegistrationTrigger>
<EndBoundary>{self.get_end_boundary()}</EndBoundary>
</RegistrationTrigger>
</Triggers>
<Principals>
<Principal id="LocalSystem">
Expand Down Expand Up @@ -106,7 +102,7 @@ def gen_xml(self, command, fileless=False):
</Settings>
<Actions Context="LocalSystem">
<Exec>
<Command>%WINDIR%\SyStem32\cmd.exe, </Command>
<Command>cmd.exe, </Command>
"""
if self.__retOutput:
self.__output_filename = "\\WINDOWS\\" + gen_random_string(8)
Expand Down

0 comments on commit 728f653

Please sign in to comment.