Jump to content


Photo

file .so for enigam2


  • Please log in to reply
64 replies to this topic

#1 hacksat

  • Senior Member
  • 57 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,605 posts

+286
Excellent

Posted 9 October 2017 - 23:23

look at this

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



Re: file .so for enigam2 #3 hacksat

  • Senior Member
  • 57 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

  • PLi® Core member
  • 70,596 posts

+1,821
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.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

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


Re: file .so for enigam2 #5 hacksat

  • Senior Member
  • 57 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
  • 14,055 posts

+298
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
  • 57 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
  • 8,458 posts

+327
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 - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 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
  • 46,969 posts

+542
Excellent

Posted 10 October 2017 - 18:45

Obfuscating is futile anyway. Don't bother.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: file .so for enigam2 #10 hacksat

  • Senior Member
  • 57 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
  • 57 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
  • 131 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
  • 57 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

  • PLi® Core member
  • 70,596 posts

+1,821
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.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

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


Re: file .so for enigam2 #15 hacksat

  • Senior Member
  • 57 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

  • PLi® Core member
  • 70,596 posts

+1,821
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.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

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


Re: file .so for enigam2 #17 hacksat

  • Senior Member
  • 57 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
  • 46,969 posts

+542
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 via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: file .so for enigam2 #19 hacksat

  • Senior Member
  • 57 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,603 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


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users