22Imports System.Net
33Imports System.Net.Sockets
44Imports System.Security.Authentication
5+ Imports System.Threading
56Imports FluentFTP
67Imports Microsoft.Web.WebView2.Core
78Imports Newtonsoft.Json
@@ -200,7 +201,7 @@ Public Class PS5Menu
200201 End Sub
201202
202203 Private Sub OpenGP5ManagerMenuItem_Click(sender As Object , e As RoutedEventArgs) Handles OpenGP5ManagerMenuItem.Click
203- Dim NewGP5Creator As New GP5Creator() With {.PubToolsPath = Environment.CurrentDirectory + "\Tools\PS5\prospero-pub-cmd.exe" , . ShowActivated = True }
204+ Dim NewGP5Creator As New GP5Creator() With {.ShowActivated = True }
204205 NewGP5Creator.Show()
205206 End Sub
206207
@@ -220,20 +221,17 @@ Public Class PS5Menu
220221 End Sub
221222
222223 Private Sub OpenPKGBuilderMenuItem_Click(sender As Object , e As RoutedEventArgs) Handles OpenPKGBuilderMenuItem.Click
223- Dim NewPKGBuilder As New PS5PKGBuilder() With {.PubToolsPath = Environment.CurrentDirectory + "\Tools\PS5\prospero-pub-cmd.exe" , . ShowActivated = True }
224+ Dim NewPKGBuilder As New PS5PKGBuilder() With {.ShowActivated = True }
224225 NewPKGBuilder.Show()
225226 End Sub
226227
228+ Private Sub OpenPKGExtractorMenuItem_Click(sender As Object , e As RoutedEventArgs) Handles OpenPKGExtractorMenuItem.Click
229+ Dim NewPS5PKGExtractor As New PS5PKGExtractor() With {.ShowActivated = True }
230+ NewPS5PKGExtractor.Show()
231+ End Sub
232+
227233 Private Sub OpenAudioConverterMenuItem_Click(sender As Object , e As RoutedEventArgs) Handles OpenAudioConverterMenuItem.Click
228234 Dim NewAudioConverter As New PS5AT9Converter() With {.ShowActivated = True }
229-
230- If File.Exists(Environment.CurrentDirectory + "\Tools\PS5\at9tool.exe" ) Then
231- NewAudioConverter.AT9Tool = Environment.CurrentDirectory + "\Tools\PS5\at9tool.exe"
232- Else
233- NewAudioConverter.IsEnabled = False
234- MsgBox( "Could not find the at9tool." + vbCrLf + "Please add it inside the 'Tools\PS5' folder inside PS Multi Tools." , MsgBoxStyle.Information, "at9tool not available" )
235- End If
236-
237235 NewAudioConverter.Show()
238236 End Sub
239237
@@ -301,6 +299,11 @@ Public Class PS5Menu
301299 End If
302300 End Sub
303301
302+ Private Sub OpenPortCheckerMenuItem_Click(sender As Object , e As RoutedEventArgs) Handles OpenPortCheckerMenuItem.Click
303+ Dim NewPS5PortChecker As New PS5PortChecker() With {.ShowActivated = True , .PS5Host = SharedIPAddress}
304+ NewPS5PortChecker.Show()
305+ End Sub
306+
304307 Private Sub OpenPSClassicsfPKGBuilderMenuItem_Click(sender As Object , e As RoutedEventArgs) Handles OpenPSClassicsfPKGBuilderMenuItem.Click
305308 Dim NewPSClassicsfPKGBuilder As New PSClassicsfPKGBuilder() With {.ShowActivated = True }
306309 NewPSClassicsfPKGBuilder.Show()
@@ -466,6 +469,15 @@ Public Class PS5Menu
466469
467470# Region "Homebrew"
468471
472+ Private Async Sub DownloadDumpRunner_Click(sender As Object , e As RoutedEventArgs) Handles DownloadDumpRunner.Click
473+ Dim NewDownloader As New Downloader() With {.ShowActivated = True }
474+ NewDownloader.Show()
475+ If Await NewDownloader.CreateNewDownload( "http://X.X.X.X/ps5/hb/dump_runner.elf" ) = False Then
476+ MsgBox( "Could not download the selected file." , MsgBoxStyle.Critical)
477+ NewDownloader.Close()
478+ End If
479+ End Sub
480+
469481 Private Async Sub DownloadAvatarChanger_Click(sender As Object , e As RoutedEventArgs) Handles DownloadAvatarChanger.Click
470482 Dim NewDownloader As New Downloader() With {.ShowActivated = True }
471483 NewDownloader.Show()
@@ -550,7 +562,7 @@ Public Class PS5Menu
550562 Private Async Sub DownloadNewKStuff_Click(sender As Object , e As RoutedEventArgs) Handles DownloadNewKStuff.Click
551563 Dim NewDownloader As New Downloader() With {.ShowActivated = True , .PackageConsole = "PS5" }
552564 NewDownloader.Show()
553- If Await NewDownloader.CreateNewDownload( "http://X.X.X.X/ps5/hb/kstuff_3xx-7xx_v1 .5.elf" ) = False Then
565+ If Await NewDownloader.CreateNewDownload( "http://X.X.X.X/ps5/hb/kstuff_v1 .5.elf" ) = False Then
554566 MsgBox( "Could not download the selected file." , MsgBoxStyle.Critical)
555567 NewDownloader.Close()
556568 End If
@@ -559,7 +571,7 @@ Public Class PS5Menu
559571 Private Async Sub DownloadKStuffToggle_Click(sender As Object , e As RoutedEventArgs) Handles DownloadKStuffToggle.Click
560572 Dim NewDownloader As New Downloader() With {.ShowActivated = True , .PackageConsole = "PS5" }
561573 NewDownloader.Show()
562- If Await NewDownloader.CreateNewDownload( "http://X.X.X.X/ps5/hb/kstuff-toggle-0.2Beta.zip " ) = False Then
574+ If Await NewDownloader.CreateNewDownload( "http://X.X.X.X/ps5/hb/kstuff-toggle.elf " ) = False Then
563575 MsgBox( "Could not download the selected file." , MsgBoxStyle.Critical)
564576 NewDownloader.Close()
565577 End If
@@ -574,24 +586,6 @@ Public Class PS5Menu
574586 End If
575587 End Sub
576588
577- Private Async Sub DownloadetaHEN_Click(sender As Object , e As RoutedEventArgs) Handles DownloadetaHEN.Click
578- Dim NewDownloader As New Downloader() With {.ShowActivated = True , .PackageConsole = "PS5" }
579- NewDownloader.Show()
580- If Await NewDownloader.CreateNewDownload( "https://github.com/etaHEN/etaHEN/releases/download/2.0b/etaHEN-2.0b.bin" ) = False Then
581- MsgBox( "Could not download the selected file." , MsgBoxStyle.Critical)
582- NewDownloader.Close()
583- End If
584- End Sub
585-
586- Private Async Sub DownloadetaHENNoToolbox_Click(sender As Object , e As RoutedEventArgs) Handles DownloadetaHENNoToolbox.Click
587- Dim NewDownloader As New Downloader() With {.ShowActivated = True , .PackageConsole = "PS5" }
588- NewDownloader.Show()
589- If Await NewDownloader.CreateNewDownload( "https://github.com/etaHEN/etaHEN/releases/download/2.0b/Payload.zip" ) = False Then
590- MsgBox( "Could not download the selected file." , MsgBoxStyle.Critical)
591- NewDownloader.Close()
592- End If
593- End Sub
594-
595589 Private Async Sub DownloadetaHENBDJB_Click(sender As Object , e As RoutedEventArgs) Handles DownloadetaHENBDJB.Click
596590 Dim NewDownloader As New Downloader() With {.ShowActivated = True , .PackageConsole = "PS5" }
597591 NewDownloader.Show()
@@ -1052,10 +1046,6 @@ Public Class PS5Menu
10521046 End If
10531047 End Sub
10541048
1055- Private Sub ShowSystemInfoOnPS5_Click(sender As Object , e As RoutedEventArgs) Handles ShowSystemInfoOnPS5.Click
1056- MsgBox( "Not ready yet." , MsgBoxStyle.Information)
1057- End Sub
1058-
10591049 Private Sub OpenPS5WebSrvInterface_Click(sender As Object , e As RoutedEventArgs) Handles OpenPS5WebSrvInterface.Click
10601050 If Not String .IsNullOrEmpty(SharedIPAddress) Then
10611051 Dim NewwebMANMODWebGUI As New PS5webMANBrowser() With {.ShowActivated = True , .WebMANWebSrvAddress = "http://" & SharedIPAddress + ":8080" }
@@ -1086,6 +1076,80 @@ Public Class PS5Menu
10861076 NewWebSrvHomebrewManager.Show()
10871077 End Sub
10881078
1079+ Private Sub GetAuthID_Click(sender As Object , e As RoutedEventArgs) Handles GetAuthID.Click
1080+ Try
1081+ Dim NewTelnetClient As New TelnetClient(SharedIPAddress, 2323 )
1082+
1083+ Thread.Sleep( 20000 ) 'Wait 20sec until connected
1084+
1085+ 'Get welcome message to check if connected successfully
1086+ Dim WelcomeMesssage As String = NewTelnetClient.Read()
1087+ If Not String .IsNullOrEmpty(WelcomeMesssage) Then
1088+
1089+ NewTelnetClient.Write( "authid" )
1090+
1091+ Thread.Sleep( 500 )
1092+
1093+ Dim RetrievedAuthID As String = NewTelnetClient.Read()
1094+ MsgBox( "AuthID: " )
1095+ Else
1096+ MsgBox( "ShSrv took to long to respond." , MsgBoxStyle.Critical, "Error reading output" )
1097+ NewTelnetClient.Close()
1098+ End If
1099+
1100+ 'Disconnect
1101+ NewTelnetClient.Close()
1102+ Catch ex As Exception
1103+ MsgBox( "An error occurred: " & ex.Message)
1104+ End Try
1105+ End Sub
1106+
1107+ Private Sub GetConsoleInfo_Click(sender As Object , e As RoutedEventArgs) Handles GetConsoleInfo.Click
1108+ Try
1109+ Dim NewTelnetClient As New TelnetClient(SharedIPAddress, 2323 )
1110+
1111+ Thread.Sleep( 20000 ) 'Wait 20sec until connected
1112+
1113+ 'Get welcome message and split console information output to values
1114+ Dim WelcomeMesssage As String = NewTelnetClient.Read()
1115+ If Not String .IsNullOrEmpty(WelcomeMesssage) Then
1116+ Dim WelcomeData As New Dictionary( Of String , String )()
1117+ Dim SplittedLines() As String = WelcomeMesssage.Split( New String () {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
1118+
1119+ For Each Line As String In SplittedLines
1120+ Dim LineParts() As String = Line.Split( ":"c )
1121+ If LineParts.Length >= 2 Then
1122+ Dim DictKey As String = LineParts( 0 ).Trim()
1123+ Dim DictValue As String = LineParts( 1 ).Trim()
1124+ WelcomeData(DictKey) = DictValue
1125+ End If
1126+ Next
1127+
1128+ Dim ConsoleModel As String = If (WelcomeData.ContainsKey( "Model" ), WelcomeData( "Model" ), String .Empty)
1129+ Dim ConsoleSerialNumber As String = If (WelcomeData.ContainsKey( "S/N" ), WelcomeData( "S/N" ), String .Empty)
1130+ Dim ConsoleSoftwareVersion As String = If (WelcomeData.ContainsKey( "S/W" ), WelcomeData( "S/W" ), String .Empty)
1131+ Dim ConsoleSoCTemp As String = If (WelcomeData.ContainsKey( "SoC temp" ), WelcomeData( "SoC temp" ), String .Empty)
1132+ Dim ConsoleCPUTemp As String = If (WelcomeData.ContainsKey( "CPU temp" ), WelcomeData( "CPU temp" ), String .Empty)
1133+ Dim ConsoleCPUFreq As String = If (WelcomeData.ContainsKey( "CPU freq" ), WelcomeData( "CPU freq" ), String .Empty)
1134+
1135+ MsgBox( "Model Number: " & ConsoleModel & vbCrLf &
1136+ "Serial Number: " & ConsoleSerialNumber & vbCrLf &
1137+ "Software Version: " & ConsoleSoftwareVersion & vbCrLf &
1138+ "SoC Temperature: " & ConsoleSoCTemp & vbCrLf &
1139+ "CPU Temperature: " & ConsoleCPUTemp & vbCrLf &
1140+ "CPU Frequency: " & ConsoleCPUFreq)
1141+ Else
1142+ MsgBox( "ShSrv took to long to respond." , MsgBoxStyle.Critical, "Error reading output" )
1143+ NewTelnetClient.Close()
1144+ End If
1145+
1146+ 'Disconnect
1147+ NewTelnetClient.Close()
1148+ Catch ex As Exception
1149+ MsgBox( "An error occurred: " & ex.Message)
1150+ End Try
1151+ End Sub
1152+
10891153# End Region
10901154
10911155End Class
0 commit comments