Jump to content


Photo

file .so for enigam2


  • Please log in to reply
54 replies to this topic

#1 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 9 October 2017 - 20:12

Hi to everyone, I'm new to the forum, but use openpli and I thought about writing here

i'm trying to make a plugin, just i would like to compile it in .so to protect the source code,

can someone help me?



Re: file .so for enigam2 #2 mfaraj57

  • Senior Member
  • 1,326 posts

+186
Excellent

Posted 9 October 2017 - 23:23

look at this

https://forums.openp...le/#entry747577



Re: file .so for enigam2 #3 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 10 October 2017 - 13:14

thanks for the answer, I saw but you did not solve it...how do you create the file.so?



Re: file .so for enigam2 #4 WanWizard

  • Forum Moderator
    PLi® Core member
  • 34,730 posts

+493
Excellent

Posted 10 October 2017 - 13:42

You can't compile python into a binary. You need to write your plugin in C++ with a python loader so it integrates into Enigma.

 

If however you want this to obscure your intentions, then don't bother, a binary file can be disected too.


Many answers to your question can be found in our new and improved wiki.

Currently in active use: HD2400 (4xS2)VU+Duo2 (3xS2)Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+

For testing purposes: ET10000 (4xS2)XP1000Formuler F1 (2xS2)Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T), Galaxy 4K (FBC)


Re: file .so for enigam2 #5 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 10 October 2017 - 14:33

You can't compile python into a binary. You need to write your plugin in C++ with a python loader so it integrates into Enigma.

 

If however you want this to obscure your intentions, then don't bother, a binary file can be disected too.

 

hello, thank you for the answer,

I proceed this way, convert from python to C with cython

"cython -a file.py " in this way I get the file so file.c

now 

ggc -shared -pthread -fPIC -fwrapv -02 -Wall -fno-strict -aliasing \
-I/usr/include/python2.7 -o file.so file.c
like this i have the file.so, but not work in enigma2
he tells me you can not open this file


Re: file .so for enigam2 #6 MiLo

  • PLi® Core member
  • 13,504 posts

+281
Excellent

Posted 10 October 2017 - 17:10

Hi to everyone, I'm new to the forum, but use openpli and I thought about writing here
i'm trying to make a plugin, just i would like to compile it in .so to protect the source code,
can someone help me?


No, because that would be in violation of Enigma2's GPL license.
Real musicians never die - they just decompose

Re: file .so for enigam2 #7 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 10 October 2017 - 17:58

also openpli has in its file.so
I just need to know how I can make it read to enigma2 ... please

Re: file .so for enigam2 #8 athoik

  • PLi® Core member
  • 6,178 posts

+212
Excellent

Posted 10 October 2017 - 18:36

I guess you didn't read the thread mfaraj57 linked..

Security through obscurity is no security at all.
However, library written in the C sometimes is needed because of performance.

For example here:
https://github.com/s...r/iptvsubparser

is module written by me to speed up parsing external subtitles.

There is simple make.sh written in bash which call cross compiler directly .
I think it is easy to understand and learn how it is working from A to Z.

Regards,
SSS


Wavefield T90: 0.8W - 5E - 7E - 13E - 16E - 19E - 23E - 26E - 28E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: file .so for enigam2 #9 Erik Slagter

  • PLi® Core member
  • 40,020 posts

+431
Excellent

Posted 10 October 2017 - 18:45

Obfuscating is futile anyway. Don't bother.


* Wavefrontier T90 with 28E/23E/19E/13E/9E/4.8E/0.8W/5W via SCR switches 2 x 2 x 6 user bands
* UPC digital cable TV (FTA)


Re: file .so for enigam2 #10 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 10 October 2017 - 19:44

I guess you didn't read the thread mfaraj57 linked..
 

Security through obscurity is no security at all.
However, library written in the C sometimes is needed because of performance.

For example here:
https://github.com/s...r/iptvsubparser

is module written by me to speed up parsing external subtitles.

There is simple make.sh written in bash which call cross compiler directly .
I think it is easy to understand and learn how it is working from A to Z.

Regards,
SSS

 

 

thanks for the reply, I was reading your answer now



Re: file .so for enigam2 #11 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 10 October 2017 - 20:15

Obfuscating is futile anyway. Don't bother.

Hello, thanks for the answer
are you saying that even a file that is compiled as file.so is readable?


Re: file .so for enigam2 #12 ozzsurf

  • Senior Member
  • 110 posts

+3
Neutral

Posted 10 October 2017 - 23:13

.so  file easy to read with readelf



Re: file .so for enigam2 #13 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 11 October 2017 - 10:14

.so file easy to read with readelf


I knew that at most you could have info on the file.so with readelf but not that you could read the entire content ... a decompilation?

Re: file .so for enigam2 #14 WanWizard

  • Forum Moderator
    PLi® Core member
  • 34,730 posts

+493
Excellent

Posted 11 October 2017 - 10:20

You can strace it, you can decompile it, you can even step through it at machine code level if you really want to.


Many answers to your question can be found in our new and improved wiki.

Currently in active use: HD2400 (4xS2)VU+Duo2 (3xS2)Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+

For testing purposes: ET10000 (4xS2)XP1000Formuler F1 (2xS2)Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T), Galaxy 4K (FBC)


Re: file .so for enigam2 #15 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 11 October 2017 - 10:35

You can strace it, you can decompile it, you can even step through it at machine code level if you really want to.


does anyone know how to decompile the file.so?

Re: file .so for enigam2 #16 WanWizard

  • Forum Moderator
    PLi® Core member
  • 34,730 posts

+493
Excellent

Posted 11 October 2017 - 10:37

Define anyone? My dad, no probably not. Anyone who has a vested interest in finding out what you are up to, yes, probably. Or they find someone who can.


Many answers to your question can be found in our new and improved wiki.

Currently in active use: HD2400 (4xS2)VU+Duo2 (3xS2)Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+

For testing purposes: ET10000 (4xS2)XP1000Formuler F1 (2xS2)Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T), Galaxy 4K (FBC)


Re: file .so for enigam2 #17 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 11 October 2017 - 11:22

Define anyone? My dad, no probably not. Anyone who has a vested interest in finding out what you are up to, yes, probably. Or they find someone who can.

 

ahhahahah sure, i just want to learn, i do not know how to do it and i would like to know it



Re: file .so for enigam2 #18 Erik Slagter

  • PLi® Core member
  • 40,020 posts

+431
Excellent

Posted 11 October 2017 - 16:12

We get this request quite often and also often is turns out that a username and password for an illegal subscriber service need to be hidden. This is a practice we're not quite fond of, for various reasons. So to get any support, you'd better have at least a good reason to do so.


* Wavefrontier T90 with 28E/23E/19E/13E/9E/4.8E/0.8W/5W via SCR switches 2 x 2 x 6 user bands
* UPC digital cable TV (FTA)


Re: file .so for enigam2 #19 hacksat

  • Senior Member
  • 31 posts

0
Neutral

Posted 11 October 2017 - 21:00

No, it does not concern any password for illegal purposes,
it's just a matter of making reading a python as easy as possible,
that's why I want to learn how to create files.so running on the box enigam2 and figuring out how to decompile (i could not do until yesterday)


Re: file .so for enigam2 #20 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,471 posts

+62
Good

Posted 11 October 2017 - 21:34

if your objective is 'learning' then why take the detour via an engima2 box?

Why not just develop an .so for your developper machine (assuming you use a linux machine) and play around with that. 

And when you have questions about how to decompile,  obfuscate code, hide code you're better of on programming forums.

Here we work on improving the user experience for satellite receivers with open source in mind. So everyone here should not be eager to invest time in creating binary only stuff. 


Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo




4 user(s) are reading this topic

2 members, 2 guests, 0 anonymous users