LunarixusMDMBypass.bat 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @echo off
  2. Title Lunarixus MDM Bypass Tool
  3. color a
  4. echo Lunarixus MDM Bypass
  5. echo Shout-out to that one sketch eBay guy for source code
  6. echo
  7. deviceinfo.dll -k SerialNumber > info.log 2>&1
  8. find /c "ERROR: No device found!" info.log > nul
  9. if %errorlevel% equ 1 goto notfound1
  10. echo Error occured.
  11. echo Device not connected. Connect and try again.
  12. echo.
  13. echo Possible Fix : Open iTunes and check if device is connected then try again.
  14. goto end
  15. :notfound1
  16. find /c "Could not connect to lockdownd" info.log > nul
  17. if %errorlevel% equ 1 goto verify
  18. echo Software cannot connect to device.
  19. echo Make sure the device gets detected in iTunes and try again.
  20. echo.
  21. echo Possible Fix : Connect the device in Recovery mode and restore it in iTunes. Then try again.
  22. goto end
  23. :verify
  24. echo
  25. echo
  26. FOR /F "tokens=* USEBACKQ" %%F IN (`deviceinfo.dll -k SerialNumber`) DO (
  27. SET Serial=%%F
  28. )
  29. FOR /F "tokens=* USEBACKQ" %%F IN (`deviceinfo.dll -k UniqueDeviceID`) DO (
  30. SET UDID=%%F
  31. )
  32. FOR /F "tokens=* USEBACKQ" %%F IN (`deviceinfo.dll -k ProductType`) DO (
  33. SET DeviceName=%%F
  34. )
  35. FOR /F "tokens=* USEBACKQ" %%F IN (`deviceinfo.dll -k ProductVersion`) DO (
  36. SET ios=%%F
  37. )
  38. echo Device Connected: %DeviceName%
  39. echo iOS: %ios%
  40. echo Serial: %Serial%
  41. echo UDID: %UDID%
  42. echo
  43. echo Please wait, bypassing...
  44. libcon.dll -convert xml1 "ffe2017db9c5071adfa1c23d3769970f7524a9d4\Manifest.plist" >nul 2>&1
  45. down.dll ed -L -u "//key[.='SerialNumber']/following-sibling::string[1]" -v %Serial% "ffe2017db9c5071adfa1c23d3769970f7524a9d4\Manifest.plist" >nul 2>&1
  46. down.dll ed -L -u "//key[.='UniqueDeviceID']/following-sibling::string[1]" -v %UDID% "ffe2017db9c5071adfa1c23d3769970f7524a9d4\Manifest.plist" >nul 2>&1
  47. libcon.dll -convert binary1 "ffe2017db9c5071adfa1c23d3769970f7524a9d4\Manifest.plist" >nul 2>&1
  48. sys.temp.dll -s ffe2017db9c5071adfa1c23d3769970f7524a9d4 restore --system --settings --skip-apps --no-reboot "%temp%" > test.log
  49. echo Device is rebooting, once it has rebooted MDM should be bypassed.
  50. finish.dll restart > nul
  51. echo ------------------------------
  52. echo Twitter: @LunarixusOld
  53. echo Telegram: @TheOGLunarixus
  54. echo GitHub: Lunarixus
  55. echo ------------------------------
  56. del /f "info.log" >nul 2>&1
  57. pause