pefile How do I nullify the first 8 bytes of a file?
<p>How do I nullify the first 8 bytes of a file?</p>

<p>this example does not work:</p>

<pre><code>import pefile
pe = pefile.pe(In)
pe.set_dword_at_rva(0,0)
pe.set_dword_at_rva(0,4)
pe.write(Out)
pe.close()
</code></pre>

<p>How i can rename import functions in the file?
this example does not work:</p>

<pre><code>for entry in pe.DIRECTORY_ENTRY_IMPORT:
  print entry.dll
  for imp in entry.imports:
     imp.name = 'NewIMports'
</code></pre>

<p>sorry for my english</p>
