Hacking RELEASE NSScreenshotMaker

  • Thread starter Thread starter cheuble
  • Start date Start date
  • Views Views 67,990
  • Replies Replies 203
  • Likes Likes 41
Seems that if the image is too large it wont be able to convert it.
No HD images for us D:

Nothing Gimp cant fix though :)

Makes sense, the Switch only takes 720p screenshots, so I don't see why larger images would be allowed within the parameters given
 
Would be funny if this enabled a ChickHEN type exploit further down the line
Or the Tiff Exploit:

On September 23, 2005, an exploit, a buffer overrun in the image rendering libraries, was discovered, allowing execution of an unsigned binary file. The method involved the user setting a PNG image as their background and a TIFF file in their photo directory. When the Photo menu was accessed, the binary file was loaded.

Two days later, the first "Hello World" program was released. The size of the binary was limited to 64kb, and the PSP could not yet read unencrypted ELF files, so further experimentation was required before any kind of homebrew software could be run. A day later, the first playable game using the exploit was released, titled "TIFF Pong 2.00".

A PSP developer by the name of Fanjita created a program called eLoader using the same exploit as the MPH Downgrader, allowed the user to run unsigned user mode homebrew launched from a menu. This was an alternative to downgrading the PSP to 1.5 using the MPH Downgrader.
 
The Switch videos have a jpg strapped at the end of the mp4 container.
This is the thumbnail you see in album and also acts as a verifier.

Changing the script to add padding and an image with the HMAC will probably work.
Dunno if it checks the actual video or the thumbnail to create the HMAC though.

I will probably play a bit when I have some time.. It will be great as a handheld and tv player.
 
  • Like
Reactions: Naked_Snake
Would also like to point out that a 600x400 image managed to load without error. Just in case anybody wanted to know
Alright, try the latest release, it might have fixed it.

--------------------- MERGED ---------------------------

The Switch videos have a jpg strapped at the end of the mp4 container.
This is the thumbnail you see in album and also acts as a verifier.

Changing the script to add padding and an image with the HMAC will probably work.
Dunno if it checks the actual video or the thumbnail to create the HMAC though.

I will probably play a bit when I have some time.. It will be great as a handheld and tv player.
From Switchbrew:
4.0.0 includes video playback etc support in Album via mp4. These include a JPEG thumbnail, which is presumably used for video "validation". The EXIF from this JPEG doesn't seem to contain the same HMAC data as the original Album JPEGs. The EXIF is also now much larger: the MakerNote is 0x498-bytes, with random-looking data for all of it starting at offset +0x8.

Note: the Album process itself uses libstagefright for video playback.
So yeah, it probably won't be as easy as it currently is for the JPEGs
 
Seems to have generated fine!
Will see if it works on the switch and report back.

--------------------- MERGED ---------------------------

Works great :)
Is in great quality too!

If you could get this to work for videos that would be amazing :D

also, going to ignore the SAO haters
 

Attachments

Hmm, can't get it to work with 720p images as PNG created in paint.net.
Thumbnail shows, but it won't show in fullscreen.

Any ideas?
 
Hmm, can't get it to work with 720p images as PNG created in paint.net.
Thumbnail shows, but it won't show in fullscreen.

Any ideas?
Not sure what happened there. Are you sure you made the image 1280x720?
I made some test images in Gimp, its free if you want to try it out. They work fine.
 
NSScreenshotMaker

NSScreenshotMaker is a tool that will allow you to sign images for the Nintendo Switch. The Switch has an album function to view your screenshots, but it can't read images you put yourself on the SD card.
This tool's purpose is to sign any image so the Switch can read it. I don't really see any use for it, but eh, some people want it ¯\_(ツ)_/¯

Requirements
You might otherwise use the exe file which doesn't need those requirements (except for the key). Your antivirus may block it though.

Usage
  • Find the "Nintendo Switch capsrv screenshot HMAC secret" key (Can't share it here for legal reasons). Either save it in a key.bin file, or pass it as an argument when running the program.
  • Create an "input" folder, and put your images in it. Images can be all sizes and formats that PIL supports.
  • Download the program and run it. It should output an "SD" folder. Extract its content to the root of your Switch's SD card.
History
  • 1.0.1
    • Fixed a bug regarding thumbnails being too large
  • 1.0.0
    • Initial release

License
This project is licensed under the MIT License. See the LICENSE.md file for details.

Thanks
Downloads

is it normal for the generated file name to be so long? you have to copy tb the folders that are created 2018-04-11? or only the images that are generated within nintendo / album ??
 
is it normal for the generated file name to be so long? you have to copy tb the folders that are created 2018-04-11? or only the images that are generated within nintendo / album ??
Yes they are supposed to be long.
Copy the Nintendo folder to the root of your SD card, no need to mess around with files.
 
  • Like
Reactions: salamandrusker
Seems to have generated fine!
Will see if it works on the switch and report back.

--------------------- MERGED ---------------------------

Works great :)
Is in great quality too!

If you could get this to work for videos that would be amazing :D

also, going to ignore the SAO haters


resolution 600x400??
 

Site & Scene News

Popular threads in this forum