Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

VxCoder/PythonVM

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonVM

通过python实现python虚拟机

暂时实现的功能

主要功能脚本:InsightPyc.py

PYC文件解析

  1. 打开pyc文件并显示解析结果
  2. 打开py文件,生成pyc文件并解析显示
  3. 显示python汇编代码(py方式打开,可以有源码对照)

模拟运行

  1. 模拟运行功能, 现支持的汇编指令(参见OpCode.py 有#标志的指令)

源码文件编辑

  1. 有个运行界面了

有空要开发的功能

  1. 完善pyc中剩余类型的解析
  2. 参考byterun项目/ceval.c 实行python执行引擎(这么大的功能,就这么一笔带过了)
  3. 完善GUI显示
  4. 支持python3.x
  5. 从汇编代码中逆推出源代码
  6. co_consts 附带类型

About

通过python实现python虚拟机

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.