Skip to content

Commit

Permalink
Merge pull request #1 from htat12/master
Browse files Browse the repository at this point in the history
PoSH bug fix (.hex file)
  • Loading branch information
g0tmi1k committed Jan 16, 2016
2 parents 3b6fac4 + 3d66afe commit 78263ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exe2hex.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def save_posh(self):
output += "for ($i=0;$i -le $len-1;$i+=2)"
output += "{$bin[$x]=[byte]::Parse($hex.Substring($i,2),[System.Globalization.NumberStyles]::HexNumber);"
output += "$x+=1};"
output += "set-content -encoding byte '%s.hex' -value $bin;\"%s\r\n" % (self.short_file, suffix)
output += "set-content -encoding byte '%s' -value $bin;\"%s\r\n" % (self.exe_filename, suffix)
output += "%sdel /F /Q %s.hex%s\r\n" % (prefix, self.short_file, suffix)
output += "%sstart /b %s%s\r\n" % (prefix, self.exe_filename, suffix)

Expand Down

0 comments on commit 78263ac

Please sign in to comment.