Accéder au contenu principal

Python Pickler saving live assembly instruction... Pickler can save anything even Virus if you intended to do so...

This following artifact, from Numpy module called np_inline can generate static inline code and it's well known module... Such utility can ( demonstrated thru PDF example to multiply Matrix with a couple of line of Ansi C )...

Despite finding a way to Proove we can use big number Library to insert into a development from my github, fibonacci_offset start to work in a correct way, but crafting the original class FibonacciOffset-> ComputeLevel can compute really big number and can also generated such number it easy overflow after converting a number into C-type from module ctypes...

But after reading the module-pdf from np_inline, it show the function working after compilation ( can not be seen with idle, you need to open a terminal and calling python2.7 ) version I actually work with...

So are doing in this way:
from np_inline import inline_debug as inline

code=r'printf("Program #%i: Hello world.\n",i)
inline('hello_word_example', args=(1,),py_types=((int,'i'),),code=code )

### Showing on terminal, the compilation and finally:
--------------------------------------------------
Program #1: Hello world.
--------------------------------------------------

### This is not bad... but calling it back:
>>>import hello_word_example
### As the name you mention inside inline(...)
### and this time just using Number 2 

>>>hello_word_example.function( 2 )

--------------------------------------------------
Program #2: Hello world.
--------------------------------------------------

### -- Still Correct...
### And saving them... after all it's an object and can possibly stored... Why-not !!!

>>>import cPickle
>>>from cPickle import Pickler, Unpickler
>>>import tempfile

### I am using tempfile because it will always have space for temporary file
### being a standard in Computer-administration, almost all application 
### requires free-space

>>>atemp=tempfile.NamedTemporaryFile()
>>>aPickler=cPickle.Pickler( atemp, -1 )
>>>aPickler.dump( hello_word_example.function )
>>>AFH=open( '/home/maxiste/obj_mem.pkl', 'w+')
>>>atemp.seek(0)
>>>AFH.write( atemp.read() ) 
>>>AFH.close()
>>>del hello_word_example

### The delete operation is really important to remove the module to 
### reload it from Unpickler...

>>> hello_word_example.function( 2 )

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'hello_word_example' is not defined


### Recovering Object with Unpickler
>>>BFH=open( '/home/maxiste/obj_mem.pkl', 'r' )
>>> Dpickler=cPickle.Unpickler( BFH )
>>>hello_word_example=Dpickler.load()
### Now Module is in memory and we can load back
>>>from hello_word_example import *
### Now using Number 3 
>>>function( 3 )

--------------------------------------------------
Program #3: Hello world.
-------------------------------------------------- 
Telling it's important to keep in mind creating a new package and using setuptools directive data([...]) to store any data can store indefinitely your object compiled for your station... Might be problematic if we move toward another kernel version or simply different architecture... But the remaining story is my original New on Zero-install project with autoinstall module can freely transform and Egg out of the Web and installing it like np_inline function inline can compile it and create a module inside Tempfile and be directly Ansi-C code and directly create Assembly code ready to be executed... I do not have direct example like sending a shutdown-signal in Windows as example, but unfortunately the ctype tutorial explain how to load the windll.kernel32 and msvcrt dll too, leaving you unbreath when it's time to load Development back-end to do Administration task while Operator or Administrator had blocked such Entry over Windows Policy Group...

But unfortunately, developping a cluster, and using autoinstall and call a module being available in your personal File-Server can be spreaded fast and allow sometimes application to operate like lightning ...

And I'm working at home under Linux Environment wich is a personal pain creating virus under a ELF structure... Windows I do not own any personal knowledge of how hijacking a program running and today Virus are mostly look like to TSR and are not efficient like virus from 90' to mid-90 which was probably the end of a wage carrying their knowledge out of today technology...



XText may contains errors, syntax errors or lexical error...
XNow with SpellChecking and Editable text. Up to you to get something correct.


  • 1No Interest
  • 2Somewhat good
  • 3Good
  • 4Special.

Posts les plus consultés de ce blog

What are you doing here, another one ?

 Yeah, that's another one piece of Intel Corporation. Not in is box, already plugged somewhere. And now it's not sold with a board and not only wrap into a bubble bag. It come with the plastic box, and at least.    At 5.59$CA, if one of my board ares misconfiguration and lacking BIOS update to support higher than 10 Mb of memory, for family e5 2650v4 with 10 core rather than 14 and less than 20 Mb of L3 cache and will probably report only 60% of the memory is inaccessible rather than yelling for 66% of the memory if this one calculate the L3 memory as internal memory error for being unable to count the edge. Yes it's true an e5-2650 own 30Mb of L3 cache while the e5-2630 own 25 Mb. Ok it's not also the theoretical 2 cores in less. I seriously believe the second one will fail, for not having around 6 to 8 core and up to 15 Mb of memory on L3 cache. But apparently there is so many option withing the bios it let you disable the core. And mean I do request to investigate fo...

South Park Season 6 episode 8, Getting entry from everywhere, and talk that purge.

 Inside Red Hot Catholic love: Mostly engaged in a quest with old paper that compromise Vatican, we can empirically see the spider invade the Vatican as web that is origin of the sin and may compromise a story long of a big king willing to eat whole religion itself and there is drawn a idea the king will someday enter in the Vatican to invade it. But it's not the detailed reason, two other sub-talk from parent and delegation of believe do something strange among South Park resident.   Starting at the seventh minutes where Cartman challenge everyone. He not only winning but  got a slang talk to inherit from a strange symptoms against talk .     And manifestation of that symptoms lets people refluxing theirs 'expelation' back from the exit to normal way we are using to eat or express themselves.   We call it intro-digestion symptoms and beware of what you are doing it take you by surprise.  Accordingly to Stan report or Cartman slang to get a pooh out of...

Does George Santos have receive money from Honest Gill.

 Back to five point of Honest Gill was :  76% of Americans say their representatives do a very bad job of listening to them. We used to aim big in this country – what happened? I’ll work hard to make sure 100% of Americans feel unrepresented.  I’ll make elections more representative for people who pay me. Ranked Choice Voting would disenfranchise campaign mega-donors and carelessly empower everyday Americans who don’t understand the wants and needs of the fundraising class. I’ll strengthen partisan gerry mandering. It’s better that politicians choose their voters, not the other way around, right ? Lobbyists spend $4 million per member of Congress. How are us poor Congress Members supposed to live on chump change? I pledge to continue to take gobs of cash from unscrupulous lobbyists. Just 4% of U.S. adults say the political system is working extremely or very well. Honest Gil will do his gosh darndest to get that number down to 0%.   To point 1, Honest Gil wi...