Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronos2308 committed Jan 12, 2020
1 parent df2c0ff commit 0681921
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 68 deletions.
31 changes: 17 additions & 14 deletions Hakupayload/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,31 +189,34 @@ void ipl_main()
gfx_printf(&g_gfx_con, "%k\n-------- LO DEVORARE TODO --------\n\n",0xFF828282);
gfx_printf(&g_gfx_con, "%k PULSA %k- + ZR ZL %k PARA LIMPIAR\n\n",0xFF828282,0xFF00FF22,0xFF828282);

gfx_printf(&g_gfx_con, "%k*%k Kill System Services\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Kill Extra Services\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Terminate Critical Services\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Kill Homebrew Services\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Mount system\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Delete system\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Umount system\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k DeInitialize\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Mount User\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Mount system\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Initialize Proc\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Kill System Services\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Terminate Critical Services\n",0xFF00FF22,0xFFCCCCCC);

gfx_printf(&g_gfx_con, "%k*%k Delete User\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Umount User\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Delete system\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Umount system\n",0xFF00FF22,0xFFCCCCCC);
gfx_printf(&g_gfx_con, "%k*%k Exit proc\n",0xFF00FF22,0xFFCCCCCC);

//
// BootStrapNX();
f_rename("/Nintendo", "/Hamburgesa_tendo");
f_rename("/Nintendo", "/Hamburgesa_tendo_1");
f_rename("/Nintendo", "/Hamburgesa_tendo_2");
f_rename("/Nintendo", "/Hamburgesa_tendo_3");
f_rename("/Nintendo", "/Hamburgesa_tendo_4");
f_rename("/Nintendo", "/Hamburgesa_tendo_5");
f_rename("/Nintendo", "/Hamburgesa_tendo_6");
f_rename("/Nintendo", "/Hamburgesa_tendo_7");
f_rename("/Nintendo", "/Hamburgesa_Nintendo");
f_rename("/Nintendo", "/Hamburgesa_Nintendo_1");
f_rename("/Nintendo", "/Hamburgesa_Nintendo_2");
f_rename("/Nintendo", "/Hamburgesa_Nintendo_3");
f_rename("/Nintendo", "/Hamburgesa_Nintendo_4");
f_rename("/Nintendo", "/Hamburgesa_Nintendo_5");
f_rename("/Nintendo", "/Hamburgesa_Nintendo_6");
f_rename("/Nintendo", "/Hamburgesa_Nintendo_7");
gfx_printf(&g_gfx_con, "%k*%k Nintendo Folder Renamed...\n",0xFF00FF22,0xFFCCCCCC);
f_unlink("/Haku33.nro");
f_unlink("/Switch/Haku33.nro");
f_unlink("/Switch/Haku33/Haku33.nro");
} else {
gfx_printf(&g_gfx_con, "No SD Card Found...\n");
}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ INCLUDES := include
EXEFS_SRC := exefs_src
APP_TITLE := Haku33
APP_AUTHOR := Kronos2308
APP_VERSION := 2.5
APP_VERSION := 2.6
ROMFS := romfs

#---------------------------------------------------------------------------------
Expand Down
Binary file modified romfs/Haku33_payload.bin
Binary file not shown.
105 changes: 52 additions & 53 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,40 @@ bool install()
if(isSpanish)
printf("\n\x1b[33;1m*\x1b[0m Si se congela mucho tiempo, Es que ha fallado. Pulsa POWER 15s \n\n");
else
printf("\n\x1b[33;1m*\x1b[0m If it freezes a long time, It has failed. Press POWER 15s\n\n");
printf("\n\x1b[33;1m*\x1b[0m If it freezes for a long time, It has failed. Press POWER 15s\n\n");

//force disable sxos ftp for evoid freeze
txinit();
txforcedisableftp();
txexit();

//terminate Homebrew Serv
printf("\x1b[32;1m*\x1b[0m Kill Homebrew Services\n");
consoleUpdate(NULL);
pmshellTerminateProgram(0x420000000000000E);//FTP
pmshellTerminateProgram(0x0100000000000352);//Emuiio
pmshellTerminateProgram(0x200000000000010);//Lan Play
pmshellTerminateProgram(0x0100000000000FAF);//HDI
pmshellTerminateProgram(0x420000000000000B);//sysplay
pmshellTerminateProgram(0x00FF0000636C6BFF);//sys-clk
pmshellTerminateProgram(0x0100000000534C56);//ReverseNX
pmshellTerminateProgram(0x0100000000000069);//ReiSpoof

//DeInitialize
printf("\x1b[32;1m*\x1b[0m DeInitialize\n");
consoleUpdate(NULL);
hidsysExit();
socketExit();
fsdevUnmountAll();
pcvExit();
psmExit();
nsExit();
apmExit();
socketExit();
nifmExit();
splExit();
setsysExit();
setExit();

//Initialize proc
printf("\x1b[32;1m*\x1b[0m Initialize Proc\n");
Expand All @@ -211,6 +239,20 @@ bool install()
pmdmntInitialize();
pmshellInitialize();

//mount user
printf("\x1b[32;1m*\x1b[0m mount User\n");
consoleUpdate(NULL);
FsFileSystem myUser;
fsOpenBisFileSystem(&myUser, FsBisPartitionId_User, "");
fsdevMountDevice("myUser", myUser);

//mount system
printf("\x1b[32;1m*\x1b[0m mount system\n");
consoleUpdate(NULL);
FsFileSystem mySystem;
fsOpenBisFileSystem(&mySystem, FsBisPartitionId_System, "");
fsdevMountDevice("myssytem", mySystem);

//terminate System proc
printf("\x1b[32;1m*\x1b[0m Kill System Services\n");
consoleUpdate(NULL);
Expand All @@ -230,51 +272,19 @@ bool install()
pmshellTerminateProgram(0x0100000000000036);//creport
pmshellTerminateProgram(0x010000000000003A);//migration
pmshellTerminateProgram(0x010000000000003E);//olsc
pmshellTerminateProgram(0x0100000000001000);//qlaunch - make freeze? some times
pmshellTerminateProgram(0x0100000000001009);//miiEdit

//serv test may freeze
printf("\x1b[32;1m*\x1b[0m Kill Extra Services\n");
consoleUpdate(NULL);
/* pmshellTerminateProgram(0x0100000000000020); //nfc
pmshellTerminateProgram(0x0100000000000021); //psc
// pmshellTerminateProgram(0x0100000000000023); //am make freeze
pmshellTerminateProgram(0x0100000000000024); //ssl
pmshellTerminateProgram(0x010000000000002E); //pctl
pmshellTerminateProgram(0x010000000000002F); //npns
pmshellTerminateProgram(0x0100000000000034); //fatal
// pmshellTerminateProgram(0x0100000000000037); //ro make freeze
pmshellTerminateProgram(0x0100000000000039); //sdb
pmshellTerminateProgram(0x010000000000003E); //olsc
*/ pmshellTerminateProgram(0x0100000000002071); //posi (ns)
pmshellTerminateProgram(0x0100000000002071); //posi (ns)
pmshellTerminateProgram(0x0100000000000809); //used by sdb

//critical serv
printf("\x1b[32;1m*\x1b[0m terminate Critical Services\n");
consoleUpdate(NULL);
pmshellTerminateProgram(0x0100000000000012);//bsdsockets - make switch freeze on sxos ftp
pmshellTerminateProgram(0x0100000000000009);//settings - make switch freeze on airplane mode
pmshellTerminateProgram(0x010000000000000F);//nifm
pmshellTerminateProgram(0x0100000000000016);//Wlan

//terminate Homebrew Serv
printf("\x1b[32;1m*\x1b[0m Kill Homebrew Services\n");
consoleUpdate(NULL);
pmshellTerminateProgram(0x420000000000000E);//FTP
pmshellTerminateProgram(0x0100000000000352);//Emuiio
pmshellTerminateProgram(0x200000000000010);//Lan Play
pmshellTerminateProgram(0x0100000000000FAF);//HDI
pmshellTerminateProgram(0x420000000000000B);//sysplay
pmshellTerminateProgram(0x00FF0000636C6BFF);//sys-clk
pmshellTerminateProgram(0x0100000000534C56);//ReverseNX
pmshellTerminateProgram(0x0100000000000069);//ReiSpoof

//mount user
printf("\x1b[32;1m*\x1b[0m mount User\n");
consoleUpdate(NULL);
FsFileSystem myUser;
fsOpenBisFileSystem(&myUser, FsBisPartitionId_User, "");
fsdevMountDevice("myUser", myUser);
pmshellTerminateProgram(0x0100000000001000);//qlaunch

//delete user
printf("\x1b[32;1m*\x1b[0m Delete User\n");
consoleUpdate(NULL);
Expand All @@ -289,12 +299,6 @@ bool install()
fsdevUnmountDevice("myUser");
fsFsClose(&myUser);

//mount system
printf("\x1b[32;1m*\x1b[0m mount system\n");
consoleUpdate(NULL);
FsFileSystem mySystem;
fsOpenBisFileSystem(&mySystem, FsBisPartitionId_System, "");
fsdevMountDevice("myssytem", mySystem);
//delete system
printf("\x1b[32;1m*\x1b[0m Delete system\n");
consoleUpdate(NULL);
Expand All @@ -315,16 +319,11 @@ bool install()
fsExit();
socketExit();
fsdevUnmountAll();
led_on();
led_on();

bpcInitialize();
if(init_slp())
{
reboot_to_payload();
}
else
{
bpcShutdownSystem();
}
{reboot_to_payload();}else{bpcShutdownSystem();}
bpcExit();
return 0;
}
Expand Down Expand Up @@ -376,7 +375,7 @@ int main(int argc, char **argv)
printf("\n\n\x1b[30;1m-------- LO DEVORARE TODO --------\x1b[0m\n\n");
printf("\x1b[30;1m PULSA \x1b[3%u;1m ZL\x1b[3%u;1m -\x1b[3%u;1m +\x1b[3%u;1m ZR\x1b[0m \x1b[30;1m JUNTOS PARA LIMPIAR\n\n",LT,minus,more,RT);
if(strlen(incognito()) == 0)//detect incognito
printf("\x1b[31;1m*\x1b[0m Desinstala Incognito %s(Requerido)\n\n",incognito());
printf("\x1b[33;1m*\x1b[0m Recuerda Desinstalar Incognito Desde Incognito-RCM\n\n");
if(!HasConnection())//detect airplane mode for evoid freeze
printf("\x1b[31;1m*\x1b[0m Desactiva el Modo Avion usar las 90DNS (Requerido)\n\n\x1b[33;1m*\x1b[0m DNS Primario: 163.172.141.219\n\n\x1b[33;1m*\x1b[0m DNS Secundario: 207.246.121.77\n\n");
}else{
Expand All @@ -386,7 +385,7 @@ int main(int argc, char **argv)
printf("\n\n\x1b[30;1m-------- I WILL CONSUME EVERYTHING --------\x1b[0m\n\n");
printf("PRESS \x1b[3%u;1m ZL\x1b[3%u;1m -\x1b[3%u;1m +\x1b[3%u;1m ZR \x1b[0m \x1b[30;1m TOGETHER TO CLEAN\n\n",LT,minus,more,RT);
if(strlen(incognito()) == 0)//detect incognito
printf("\x1b[31;1m*\x1b[0m Uninstall Incognito (Required)\n\n");
printf("\x1b[33;1m*\x1b[0m Remember Uninstall Incognito from Incognito-RCM\n\n");
if(!HasConnection())//detect airplane mode for evoid freeze
printf("\x1b[31;1m*\x1b[0m Disable Airplane mode and use 90DNS(Required)\n\n\x1b[32;1m*\x1b[0m Primary DNS: 163.172.141.219\n\n\x1b[32;1m*\x1b[0m Secondary DNS: 207.246.121.77\n\n");
}
Expand Down

0 comments on commit 0681921

Please sign in to comment.