Skip to content

Commit

Permalink
added reading raw shellcode from file
Browse files Browse the repository at this point in the history
  • Loading branch information
psychomario committed May 29, 2012
1 parent 2b0aa71 commit 992a441
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dllinject.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ def injectshellcode(self, shellcode):
None
)

def injectshellcodefromfile(self, file):
fh=open(file,'rb')
shellcode=fh.read()
fh.close()
self.injectshellcode(shellcode)

def terminate(self, code=0):
"""This function terminates the process from the current handle"""
self.kernel32.TerminateProcess(
Expand Down

0 comments on commit 992a441

Please sign in to comment.