Skip to content

Instantly share code, notes, and snippets.

@SocraticBliss
Last active October 26, 2018 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SocraticBliss/697c68bf3f9880c5eadb0227d2f69d91 to your computer and use it in GitHub Desktop.
Save SocraticBliss/697c68bf3f9880c5eadb0227d2f69d91 to your computer and use it in GitHub Desktop.
Remote PS4 Package Installer
:: 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