Oh fellow monks,
I've digged the net for several hours now.
Strangely, I couldn't find what I'm looking for.
Essentially, I'd like to either interpret a C file with perl;
or interpret/convert the assembly generated by e.g. gcc.
Haven't been able to find anything yet.
So, I guess, compiling the c source to asm,
and converting the asm to perl might be the way to go.
Essentially creating a virtual x86 cpu, with ram, and so on might be trivial.
To my surprise, I didn't find anything at all.
Someone could please help me out?
(Background: I'm close to finishing sort of a cryptopad.
I believe, perl is the language of choice,
adding some obfuscation, self encryptiom, honeypots,
and even a full memory dump
might be a xdream to debug. :)
I'd like to add a small terminal editor.
Which I already have, written in C.
So, now there's the problem of how to be able running this editor
within perl..)
Best wishes, Michael
Addendum:
It's a personal project, and I did this before.
In the version I used for nearly 15 years I did the encryption stuff within perl,
and used vi as editor.
However, times have changed, and it might be possible to bruteforce the passwords nowaday
within reasonable time.
So I need a improved version,
and if concerned with security, it might be better going into full paranoia mode..
I'm also thinking about, what e.g. AI is able to do in 10 years.
So, at the moment, I believe I'm going to chain several encryption algorythms,
and take some precautions to prevent a brute force attack.
(Being in full paranoia mode, I shouldn't explain further..)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.