Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
tyraniter committed Mar 18, 2020
1 parent a4abaa7 commit 869de38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/agent/agent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ function Invoke-Empire {
}

# resolve the complete paths
$Path = Get-Childitem -Recurse $Path -File | ForEach-Object {$_.FullName}
$Path = Get-Childitem $Path -File | ForEach-Object {$_.FullName}

foreach ( $File in $Path) {
# read in and send the specified chunk size back for as long as the file has more parts
Expand Down
2 changes: 1 addition & 1 deletion lib/common/packets.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def build_task_packet(taskName, data, resultID):
totalPacket = struct.pack('=H', 1)
packetNum = struct.pack('=H', 1)
resultID = struct.pack('=H', resultID)
length = struct.pack('=L', len(data))
length = struct.pack('=L', len(data.encode("UTF-8")))
return taskType + totalPacket + packetNum + resultID + length + data.encode("UTF-8")

def parse_result_packet(packet, offset=0):
Expand Down

0 comments on commit 869de38

Please sign in to comment.