[App] decrypt spm J/K/M

Software related to Samsung M/Q series TVs.
Please don't create any new topic here unless you have software to post/release.

JeppeTh
SamyGO Project Donor
Posts: 170
Joined: Wed Oct 02, 2013 11:29 pm

Re: [App] decrypt spm J/K/M

Post by JeppeTh »

I have to buy a rootable > 2016 model to be able to test that 😊

I get the same message browsing the URL from the PC.
But sure, perhaps it uses user agent or similar in some way to detect.

Running the app from 2020 model indicates some other mechanism though, there's no sign of http. Possibly https but didn't really see any sign of DNS either...

EDIT: Checked out the URL in browser a bit more - seems to running more than I first saw - perhaps it's the same url for all devices after all, and there some downloaded js or similar that performs the device check.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] decrypt spm J/K/M

Post by zoelechat »

Thread cleaned. Advertising/requests over.
I do NOT receive any PM. Please use forum.
Midozalouk
Posts: 5
Joined: Tue Apr 07, 2020 11:04 pm

Re: [App] decrypt spm J/K/M

Post by Midozalouk »

@zoelechat

If I sniffed the link of the tmg of the app I needed (ok.ru)

Will I be able to decrypt it without root?
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] decrypt spm J/K/M

Post by zoelechat »

Nope. Also I've checked, it's not available here.
I do NOT receive any PM. Please use forum.
Midozalouk
Posts: 5
Joined: Tue Apr 07, 2020 11:04 pm

Re: [App] decrypt spm J/K/M

Post by Midozalouk »

Ok thanks 😔
Can i know your region?
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] decrypt spm J/K/M

Post by zoelechat »

It's just under my name ;)
I do NOT receive any PM. Please use forum.
kokogo
Posts: 2
Joined: Tue Jun 07, 2022 3:33 pm

decrypt files .spm into ubuntu

Post by kokogo »

hi

possible decrypt files .spm into ubuntu ?

thnks

Code: Select all

decrypt_spm.c:(.text+0x7e): undefined reference to `appdrm_load_license'
decrypt_spm.c:(.text+0xc3): undefined reference to `appdrm_decrypt_spm'
decrypt_spm.c:(.text+0xec): undefined reference to `appdrm_release_license'
collect2: error: ld returned 1 exit status


/usr/bin/ld: cannot find -lappdrm
collect2: error: ld returned 1 exit status


Code: Select all

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>

int appdrm_load_license(const char *license_file, void **license_handle);
int appdrm_release_license(void **license_handle);
int appdrm_decrypt_spm(void **license_handle, const char *filename, unsigned char **outbuf, int *outlen);

int main(int argc, char **argv)
{
	if(argc < 3)
	{
		printf("usage: %s <license_file> <spm_file>\n", argv[0]);
		exit(1);
	}
			
	unsigned char* outbuf;
	int32_t outlen = 0;			
	char outfile[256];
	void *license_handle;
	
	if( appdrm_load_license(argv[1], &license_handle) < 0 )
	{
		printf("error reading license_file\n");
		return -1;
	}
	
	if( appdrm_decrypt_spm(&license_handle, argv[2], &outbuf, &outlen) < 0 )
	{
		printf("error decrypting spm file\n");
		return -1;
	}
	
	if( appdrm_release_license(&license_handle) < 0 )
	{
		printf("error releasing license_handle\n");
		return -1;
	}

	sprintf( outfile, "%s", argv[2] );
	outfile[strlen(argv[2]) - 4] = 0;	
	
	printf("writing to %s\n", outfile);	
	
	FILE *write_ptr = fopen(outfile,"wb");
	if( write_ptr == NULL )
	{
		printf("error opening output file\n");
		return -1;
	}
	
	fwrite( outbuf, outlen, 1, write_ptr );
	fclose( write_ptr );
		
    return 0;
}
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] decrypt spm J/K/M

Post by zoelechat »

No. It's stuff that MUST be run on rooted TV.
I do NOT receive any PM. Please use forum.
kokogo
Posts: 2
Joined: Tue Jun 07, 2022 3:33 pm

Re: [App] decrypt spm J/K/M

Post by kokogo »

possible help me

rooted TV.

Is there an explanation of the method and required software?
yanliang
Posts: 1
Joined: Mon Jun 26, 2023 3:28 am

Re: [App] decrypt spm J/K/M

Post by yanliang »

Can this program be used on QR series devices without ROOT access?

Post Reply

Return to “[M/Q] Software”