Page 4 of 5

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

Posted: Sun Apr 24, 2022 11:11 am
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.

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

Posted: Sat May 07, 2022 10:20 am
by zoelechat
Thread cleaned. Advertising/requests over.

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

Posted: Sat May 07, 2022 9:36 pm
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?

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

Posted: Sat May 07, 2022 11:05 pm
by zoelechat
Nope. Also I've checked, it's not available here.

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

Posted: Sun May 08, 2022 2:24 am
by Midozalouk
Ok thanks 😔
Can i know your region?

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

Posted: Sun May 08, 2022 10:06 am
by zoelechat
It's just under my name ;)

decrypt files .spm into ubuntu

Posted: Tue Jun 07, 2022 3:38 pm
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;
}

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

Posted: Tue Jun 07, 2022 8:41 pm
by zoelechat
No. It's stuff that MUST be run on rooted TV.

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

Posted: Thu Jun 09, 2022 12:51 pm
by kokogo
possible help me

rooted TV.

Is there an explanation of the method and required software?

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

Posted: Mon Jun 26, 2023 10:16 am
by yanliang
Can this program be used on QR series devices without ROOT access?