Jump to content
Nytro

Zolom

Recommended Posts

Posted

Zolom

C# Executable with embedded Python that can be used reflectively to run python code on systems without Python installed

Usage

zolom.exe --script:"from random import seed; from random import random; seed(1); print 'getting random number'; print random();" zolom.exe --b64script:"ZnJvbSByYW5kb20gaW1wb3J0IHNlZWQ7IGZyb20gcmFuZG9tIGltcG9ydCByYW5kb207IHNlZWQoMSk7IHByaW50ICdnZXR0aW5nIHJhbmRvbSBudW1iZXInOyBwcmludCByYW5kb20oKTs="

Building

Using Visual Studio restore the nuget packages and then click build.

Adding more modules

Unzip the Lib.zip file and add your modules, rezip the file and embed as a resource, finally recompile and your new lib should be available

 

Sursa: https://github.com/checkymander/Zolom

  • Upvote 1
Guest gigiRoman
Posted

Asta vorbeam si eu cu un baiat, nu stiu daca are cont pe rst.

C# are o chestie foarte puternica: poate rula scripting engine, gen fara sa ai limbajul de scripting instalat pe masina, vezi cazul de fata python.

ScriptEngine engine = Python.CreateEngine();

Da. Si fix de zolom era vorba. ;))))

Recomand si cartea https://www.manning.com/books/metaprogramming-in-dot-net

Screenshot_20200916-152604_Discord.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...