标签: reflector

使用Reflector,为什么我看不到我的.NET应用程序中嵌入的app.manifest?

我有一个WinForms .NET应用程序,根据启用UAC的Vista任务管理器,运行虚拟化"已禁用",即使我不记得在应用程序中添加带有"asInvoker"的清单.VS.NET(这个项目经历了VS.NET的所有四个版本)必须添加我在解决方案资源管理器中看到的\ Properties\app.manifest文件,但是这个文件不包含我希望禁用虚拟化的trustinfo元素.所以我启动了Reflector以查看可能嵌入到我的实际可执行文件中的内容,但是我找不到app.manifest文件.我是否应该能够在可执行文件中找到它的清单或标志?根据VS 2008,构建操作是BaseApplicationManifest,但这是否意味着它没有嵌入在exectable中?有人可以解释为什么我的应用程序在禁用虚拟化的情况下运行,如果我没有要求它,并且一旦解释,有人可以指向我找到通过Reflector在我的应用程序中导致此问题的工件吗?

作为app.manifest的后续,我的解决方案是谁知道多久,它充满了各种IPermissions,我不确定我还需要什么.什么为此文件添加内容,是否包含我不再需要的权限?它应该被修剪或管理吗?我应该向它明确添加trustinfo吗?我想app.manifest只是一个谜,我需要了解更多.

更新:本文中,我了解到我可以使用SysInternals/Microsoft Sigcheck实用程序查看以下信息,但我不知道我的应用程序是如何使用MyApplication.app签名的.在构建过程中发生了什么?

c:\Users\Public\Programs\SysinternalsSuite>sigcheck.exe -m ceo.exe

sigcheck v1.54 - sigcheck
Copyright (C) 2004-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

"c:\Users\Public\Programs\SysinternalsSuite\ceo.exe":
        Verified:       Unsigned
        File date:      1:47 PM 2/6/2009
        Publisher:      CEO Image Systems
        Description:    Main Menu
        Product:        Image Executive CEO
        Version:        2.0.0.0
        File version:   2.0.0.0
        Manifest:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>
Run Code Online (Sandbox Code Playgroud)

更新2:看起来我最终会到达那里.VS …

.net reflector uac windows-vista visual-studio

2
推荐指数
1
解决办法
2618
查看次数

商业混淆器如何实现崩溃.net Reflector和ILDASM?

一些商业混淆器声称他们可以崩溃ILDASM(以及其他类似工具,如Reflector)

关于他们如何实现这一点的任何想法

正如在这里的众多主题中所述,有足够动力/时间/技能的人总能找到一种方法来阅读你的代码(即如果它是可运行的,它是可以反编译的),但在我看来,大多数随意的代码阅读器都不会打扰我的反编译如果Reflector无法为它们执行代码.

这个级别的保护我的知识产权(即,除了那些可能会找到解决方法的人之外,任何人都可以找到解决方法)对我来说肯定是足够的.

.net obfuscation reflector

2
推荐指数
1
解决办法
1561
查看次数

将资源文件转换为resx - 不可序列化

我有一个任务,我正在重建我们为许多项目丢失的一些来源.最多,它已经很好了,但当然在最后一个项目中,我遇到了一个错误,我无法找到任何解决方案.

我使用Reflector 8.1反编译DLL,它给了我所有源代码和一堆.resources文件.我一直在使用resgen程序将它们转换回.resx文件以包含在项目中.一个档案让我感到悲伤.请帮忙.

>resgen foo.resources foo.resx
Read in 106 resources from "foo.resources"
ResGen : error RG0000: Error while writing the output file "Resources.resx"
ResGen : error RG0000: Specific exception: "InvalidOperationException"  Message: "Item        named 'IncomingRing' of type 'System.IO.PinnedBufferMemoryStream' cannot
be added to the resource file because it is not serializable."
Run Code Online (Sandbox Code Playgroud)

2个错误.

c# reflector resx invalidoperationexception resgen

2
推荐指数
1
解决办法
3502
查看次数

如何使Reflector不会在新语法上窒息

有没有办法让反射器反汇编回新的c#构造?

自动实现的属性如下:

[CompilerGenerated]
private string <TypeName>k__BackingField;
 public string TypeName
 {
     [CompilerGenerated]
     get
      {
         return this.<TypeName>k__BackingField;
      }
      [CompilerGenerated]
      private set
      {
          this.<TypeName>k__BackingField = value;
      }
 }
Run Code Online (Sandbox Code Playgroud)

字符串整数或对象的泛型类型出错:

Tuple<User,String><User,string>

更不用说为响应一些基于lambda的代码而生成的令人困惑的枚举器.

有任何想法吗?回到原始形式会很棒,但是进入相同的可编辑状态将是向前迈出的一大步.以上示例不是有效的C#代码.

c# reflector decompiling decompiler

1
推荐指数
1
解决办法
1060
查看次数

"不是.NET模块." 这是什么意思?

我正在使用beta 7.2反射器,当我试图反映一些exe文件时,我看到了这条消息.这是什么意思 ?

谢谢

reflector

1
推荐指数
1
解决办法
1万
查看次数

为什么Reflector不能显示字节数组?这是由于某些技术限制吗?

我想看一个字节数组的内容,但是Reflector不会显示它们.为什么?这是由于某些技术限制,还是只是Reflector未实现的功能?

有没有其他工具可以用来做到这一点?

截图

.net c# reflection reflector

1
推荐指数
1
解决办法
277
查看次数

Reflector如何反编译代码?

Red Gate Ant Profiler或Reflector等工具如何将IL转换为C#或VB.NET代码?

我最近注意到Red Gate Ant Profiler不生成与最初编写的源代码相同的源代码.

它产生了一个while我用过的循环foreach.

这让我想到了.我在Reflector中打开了Reflector.exe,但是他们的代码大多数(并非全部)都是混淆的.

.net il reflector cil reflection.emit

1
推荐指数
1
解决办法
546
查看次数

使用Reflector将Delphi vcl.net应用程序转换为c#

我用反射器直到试用期结束

我已成功解码了许多应用程序.通过我最近的帖子,我能够识别它还可以解码delphi.net vcl应用程序(d2007).

我可以解码delphi.net vcl并将其转换为ac#应用程序,可以使用visual studio完全编译成功.

c# delphi reflector

0
推荐指数
1
解决办法
1482
查看次数

通用参数错误

嗨我试图修复此代码,以便编译,无法找到方法

错误:

Pro\AGeeksToy\Controls\LadderHeader.cs(218,98):错误CS0426:类型名称'menuData'在类型'AGeeksToy.CoreDataTypes.AGeeksToyToolStripMenuItem>中不存在

这是错误.

   private void ChangeStakingType(AGeeksToyToolStripMenuItem<EnhancedType<StakingTypeEnum>>.menuData newType)
    {
        this.StakeBox.StakingType.Value = newType.Data.Value;
    }
Run Code Online (Sandbox Code Playgroud)

AGeeksToyToolStripMenuItem类代码:

  namespace AGeeksToy.CoreDataTypes
{
    using System;
    using System.Windows.Forms;

    public abstract class AGeeksToyToolStripMenuItem<T> : ToolStripMenuItem, AGeeksToyMenu
    {
        public MouseButtons LastMouseButton;
        public MenuData<T> menuData;
        public static readonly VoidEventWithParam<MenuData<T>> RightClicked;

        static AGeeksToyToolStripMenuItem()
        {
            AGeeksToyToolStripMenuItem<T>.RightClicked = new VoidEventWithParam<MenuData<T>>();
        }

        protected AGeeksToyToolStripMenuItem(T obj, string text) : this(obj, text, null)
        {
        }

        protected AGeeksToyToolStripMenuItem(T obj, string text, Control ctrl)
        {
            base.DropDown.ImageList = IconManager.m_ImageList;
            this.menuData = new MenuData<T>(obj, ctrl);
            this.Text = text;
        }

        protected …
Run Code Online (Sandbox Code Playgroud)

c# reflector betfair

-3
推荐指数
1
解决办法
520
查看次数