Kai's profilePrelude: AniccaBlog Tools Help

Blog


    September 30

    让GNS3从"R1"开始添加路由器

    方便你就叫!

     

    实现:

    1. 用UltraEdit等十六进制编辑器打开执行文件:gns3.exe

    2. 搜索十六进制字串:5A 1C 00 64 1C 00 61 1D 00

    3. 将"1C"修改为"06":5A 1C 00 64 06 00 61 1D 00

     

    思路:

    GNS3是用Python编写的开源软件。

    1. 下载源代码,分析后得知应修改:\GNS3\Node\IOSRouter.py

    2. 从执行文件中解压出编译过的比特码文件:\GNS3\Node\IOSRouter.pyo

    3. 安装Python,进入IDLE:

    f = open('IOSRouter.pyo','rb')
    
    import marshal
    
    co = marshal.load(f)
    
    print co.co_consts

    4. 算出常量池中"0"和"1"的索引号。

    5. 在十六进制编辑器中打开执行文件,修改/替换其索引号。

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://whistwhisper.spaces.live.com/blog/cns!28DA539E0E240B1F!174.trak
    Weblogs that reference this entry
    • None