Category PS4 CFW and Hacks       Thread starter PSXHAX       Start date Mar 1, 2017 at 11:45 PM       5,954       10            
Following his recent PS4 Modding 1.76 Ghosts 1.20 Hud Elements RTM demo video and the PS4 Payload Injector GUI, today PlayStation 4 developer @BadChoicesZ shared some PlayStation 4 C# code for sending your own PS4 Payloads to the Webkit Playground. ;-)

Download: PS4-C#SendingPayloads

To quote from BadChoicesZ: There's some C# code if anyone else wants to make their own program for sending there payload. or see how simple it is to do ^_^.
Code:
public static Socket _psocket;
public static bool pDConnected;
public static string IP = "192.168.0.8";//Temporary.

public static void Connect2PS4(string ip)
{
           try
            {
                _psocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                _psocket.ReceiveTimeout = 3000;
                _psocket.SendTimeout = 3000;
                _psocket.Connect(new IPEndPoint(IPAddress.Parse(IP), 9023));
                pDConnected = true;
                return true;
            }
            catch
            {
                pDConnected = false;
                return false;
            }
}

public static bool SendPayload(string filename)
{
    _psocket.SendFile(filename);
    return true;
}

 public static bool DisconnectPayload()
{
    pDConnected = false;
    _psocket.Close();
    return true;
}


//Below is a simple example using the above to send the payload to ps4.

Connect2PS4(IP);
if(_pConnected)
{
    OpenFileDialog FileO = new OpenFileDialog();
    FileO.FileName = "payload.bin";
    FileO.InitialDirectory = "C:\\";
    FileO.Filter = "bin files|*.bin|All Files|*.*";
    DialogResult result = FileO.ShowDialog();
    if(result == DialogResult.OK)
     SendPayload(FileO.FileName);
    DisconnectPayload();
}
Cheers to @HydrogenNGU for the news tip on Twitter earlier tonight! :beer:
PlayStation 4 C# Code for Sending PS4 Payloads by BadChoicesZ.jpg
 

Comments

Lord Pyro ARSON

Senior Member
Contributor
I think its better if they full exploit the ps4 on 1.76 maybe even port cfw on it then they work towards porting the hacks to the 3.15/3.55 playground or they can work on a downgrade its better than nothing...
 

PSXHAX

Staff Member
Moderator
Contributor
Verified
It depends on what you are trying to do, there are some decent PS4 Guides & Tutorials you can check out or if you are looking for something specific let me know and I will try to find you a direct link to it. :cool:
 
Recent Articles
Some of the PlayStation 4 E3 2019 PS4 Trailer Videos!
We've seen a Watch Dogs: Legion PS4, Marvel Avengers: A-Day PS4 and some Final Fantasy VIII Remastered & Final Fantasy VII Remake PS4 videos from E3 2019, and below are several more PlayStation 4...
Crash Team Racing: Nitro-Fueled Races to PS4 Next Week
CTR racers on your mark, get set, go... as Crash Team Racing: Nitro-Fueled speeds onto PlayStation 4 next week. šŸŽ šŸ Get ready to go fur-throttle in the fully-remastered and revved up to the max...
TurboGrafx-16 Mini, PC Engine Mini & PC Engine CoreGrafx Mini by Konami
A few months back we covered the Sega Genesis Mini reveal, and during E3 2019 Konami announced a TurboGrafx-16 Mini, PC Engine Mini and PC Engine CoreGrafx Mini on their official site for...
PS4 Firmware / System Software 6.80 Preview Program PUP and Features
As reported earlier this month, since their recent 6.71 PS4 OFW Update those enrolled in Sony's PlayStation Preview Program can now download and install the PS4 Firmware / System Software 6.80...
Top