Advertisement
Lulz-Tigre

Pay2Img

May 29th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.72 KB | None | 0 0
  1. # - *- coding: utf- 8 - *-
  2.  
  3. # This is a tool that hides a payload in images
  4. # I have written a better version But Reluctant to upload because of the authenticity
  5. # I take no responsibility for whatever this is used for
  6. # Maa the Lulz Be With YOu
  7.  
  8. import os
  9. import sys
  10. import time
  11. from os.path import exists
  12.  
  13. class ColorsEnum:
  14.     ORANGE = '\033[93m'
  15.     RED = '\033[91m'
  16.     DARKCYAN = '\033[36m'
  17.     BLUE = '\033[94m'
  18.     CYAN = '\033[96m'
  19.     PURPLE = '\033[95m'
  20.     BLACK = '\033[90m'
  21.     backRed = '\033[41m'
  22.     backMagenta = '\033[45m'
  23.     ENDC = '\033[0m'
  24.  
  25.  
  26. print ColorsEnum.BLUE + '''
  27.  
  28.  | ██|        | █|     |█ | |██ |         | █████████ /
  29.  | ██|        |█ |     | █| | ██|         |___       /
  30.  | ██|        | █|     |█ | |██ |             / ███ /
  31.  | ██|        |█ |     | █| |███|            /     /
  32.  | ██|______  | █|     |█ | |███|_______    /  ███/____    
  33.  | █████████| |█ █\___/█ █| |██ ██████ █|  / ███  ███  |
  34.  |__________|  \_________/  |___________| /____________| ''' + ColorsEnum.ENDC + ColorsEnum.RED + '''
  35.  
  36. ███████████╗  █╗█      █████║║║  █████████╗     ███████████╗
  37. ║          ║  █╗█    ║█╔══════╝  ██████████     ███████████║
  38. ╚═══███════╝  █║█   █║█║         ███║    ██     ███  ╔═════╝
  39.     ██║       █║█   █║█║         ███║     █     ███  ╚════╗
  40.     ███       ╔╚╗   █║█║  █████  ███ ══ █╝      ███  ╔════╝
  41.     ██║       ║║║   █║█║     ██  ███  \╝╝╝\    ███  ╚═════╗    
  42.     ███       ║╚╝    ║█║║║║  ██  ███   \╝╝╝\   ███████████║
  43.     █║║       ║██    ██████████  ███    \╝_╝\  ███████████╝
  44.                                                              ''' + ColorsEnum.ENDC
  45.  
  46. print ColorsEnum.CYAN + "This is A tool that copies your payload to an image" + ColorsEnum.ENDC
  47. print ' '
  48.  
  49. dir = os.getcwd()
  50. dirx = os.listdir(dir)
  51.  
  52. print ColorsEnum.BLUE + "Are Your Files in " + dir + ColorsEnum.ENDC
  53. #Please for everyone sake , put your payload and pic in the same dir, don't pick 'no'
  54.  
  55. file = raw_input(ColorsEnum.CYAN + 'Y/n: ' + ColorsEnum.ENDC)
  56.  
  57. if file == 'Y':
  58.     print ' '
  59. elif file == 'n':
  60.     cwd = raw_input('enter the dir where they are: ')
  61.     newcwd = os.chdir(cwd)
  62.     print 'your new dir is %r' %newcwd
  63.  
  64. while True:
  65.     global payload1
  66.     global picx1
  67.    
  68.     payload = raw_input(ColorsEnum.RED + 'Enter Payload Name: '+ ColorsEnum.ENDC)
  69.     payl = open(payload, 'rb')
  70.     payload1 = payl.read()         
  71.    
  72.     if exists(payload) == False:
  73.         print ColorsEnum.backRed + 'Please Confirm Payload Does exist' + ColorsEnum.ENDC
  74.         sys.exit(ColorsEnum.backRed + 'The More You Drive The Dumber You Become' + ColorsEnum.ENDC)
  75.     else:
  76.         print ColorsEnum.backRed + 'Confirming If Payload Exists, Because I Can' + ColorsEnum.ENDC
  77.         time.sleep(5.00)
  78.         print ColorsEnum.PURPLE + 'Payload  is  %r  bytes large' %len(payload1) + ColorsEnum.ENDC
  79.         print ' '
  80.    
  81.     pic = raw_input(ColorsEnum.BLUE + 'Enter Initial Picture name: ' + ColorsEnum.ENDC)
  82.     picx = open(pic, 'rb')
  83.     picx1 = picx.read()
  84.    
  85.     if exists(pic) == False:
  86.         print "Do you think this is a joke?"
  87.         sys.exit('This mission is too important for you to Jeopardize')
  88.     else:
  89.         print ColorsEnum.backRed + 'Confirming Picture Does Exists Because Reasons' + ColorsEnum.ENDC
  90.         time.sleep(5.00)
  91.         print ColorsEnum.ORANGE + 'This picture is %r bytes Large' %len(picx1) + ColorsEnum.ENDC
  92.         print ' '
  93.     break
  94.    
  95. final = raw_input(ColorsEnum.CYAN + 'Enter final name for image: ' + ColorsEnum.ENDC)
  96. final1 = final + open(payload, 'rb').read()
  97. final1 += final + open(pic , 'rb').read()
  98.  
  99.  
  100. try:
  101.     print ColorsEnum.DARKCYAN + 'Generating new payload' + ColorsEnum.ENDC
  102.     time.sleep(1.00)
  103.     print ColorsEnum.backMagenta + 'Loading...' + ColorsEnum.ENDC
  104.     time.sleep(3.00)
  105.     print ColorsEnum.RED + 'This might take Longer than expected ' + ColorsEnum.ENDC
  106.     open(final, 'wb').write(final1)
  107.     time.sleep(5.00)
  108.     print ColorsEnum.BLACK + 'New payload  is '+ final + ' and is %r bytes Large' %len(final1) + ColorsEnum.ENDC
  109. except:
  110.     sys.exit(ColorsEnum.backRed + "something happened and it's all your fault" + ColorsEnum.ENDC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement