How can i write program that writes itself in a file and then executes a payload method that does something?

时间:2019-06-01 14:12:56

标签: python

I already did the copying part but I don't know how to include the payload method.. I have already did some research but I didn't find anything.

from sys import argv

import suprocess

script = argv

name = str(script[0])
print Name

for i in range (0,10):

    directoryNamee = 'copy '+str(i)

    subprocess.call(['mkdir ' ,directoryName])

    subprocess.call(['cp' ,name,directoryName])

It is working. It is copying the source code in a file but I don't know how to do the payload method.

0 个答案:

没有答案