Last active
October 26, 2018 08:02
-
-
Save SocraticBliss/697c68bf3f9880c5eadb0227d2f69d91 to your computer and use it in GitHub Desktop.
Remote PS4 Package Installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: SocraticBliss (R) | |
@ECHO OFF | |
TITLE Remote PS4 Package Installer | |
:: 0) Edit these | |
SET PS4=13.37.13.136:12800 | |
SET SERVER=13.37.13.137:8008 | |
:: 1) Check if the CUSA is already installed or not | |
SET CUSA=%~nx1 | |
SET CHECK=curl --data {"""title_id""":"""%CUSA:~7,12%"""} http://%PS4%/api/is_exists | |
%CHECK%|findstr /i "true">NUL && SET UN=un | |
:: 2) Install or Uninstall? | |
SET STALL=curl -v http://%PS4%/api/%UN%install --data {"""type""": | |
:: 3) PKG or JSON? | |
IF "%~x1" == ".pkg" ( | |
SET PKG=%STALL%"""direct""","""packages""":["""http://%SERVER%/%~nx1"""]} | |
) ELSE ( | |
SET PKG=%STALL%"""ref_pkg_url""","""url""":"""http://%SERVER%/%~nx1"""} | |
) | |
:: 4) ??? ... Profit! | |
%PKG% | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment