disassembly

.NET reflector + Reflexil Plugin

a 夏天 提交于 2019-12-07 15:38:05
问题 I've just installed reflexil v2.0 plugin but when I click on it after highliting a method it only displays 3 sub menus : Delete, Rename, Update Reflector object model...I'm not seeing Save as, Inject menus..anybody who can help me solve this? 回答1: 1) Install Reflector 2) download reflexil into Reflector\Addins folder C:\Program Files (x86)\Red Gate.NET Reflector\Desktop 9.0\Addins 3) open reflector > Tools > Add-Ins 4) add Reflexil.Reflector.dll 回答2: Right click your assembly in left pane,

Why does the compiler generate a right-shift by 31 bits when dividing by 2?

﹥>﹥吖頭↗ 提交于 2019-12-07 09:33:41
问题 I have disassembled code produced by the compiler, and I see that it has produced the following sequence of instructions: mov eax, edx shr eax, 1Fh add eax, edx sar eax, 1 What is the purpose of this code? I know that sar eax, 1 divides by 2, but what does shr eax, 1Fh do? Does this mean that EAX will be either 0 or 1 if the left bit was either 0 or 1? This looks strange to me! Can someone explain it? 回答1: The quick answer to your question—what is shr eax, 1Fh —is that it serves to isolate

Dynamically Mocking iOS Dynamic Type System Text Size (UIContentSizeCategory)

杀马特。学长 韩版系。学妹 提交于 2019-12-06 17:52:25
问题 I'd like to easily test my app with different selections of system text size, including accessibility sizes. These can be set in the Settings app (Display & Brightness => Text Size or General => Accessibility => Larger Text). The only way I can find to currently do this is to go into Settings and change the value with the UI (edit: partial solution described below). This is slow and cumbersome. I suspect there's a way to dynamically alter it using private APIs, but I can't figure out how.

Is it possible to inspect an assembly's IL instructions programmatically using managed code?

橙三吉。 提交于 2019-12-06 15:57:47
See title. Reflection.Emit seems to be more about creating a new dynamic assembly, not for loading an exisitng assembly and inspecting its IL. Common Compiler Infrastructure Reflector does this, and last time I checked, Reflector could still inspect (i.e. disassemble) itself this way, so it will show you exactly how it works. 来源: https://stackoverflow.com/questions/2824086/is-it-possible-to-inspect-an-assemblys-il-instructions-programmatically-using-m

How to see the assembly code of a Python file? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 15:16:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Out of curiosity I would like to see the assembly instructions that correspond to the code of a .py file. Are there any trustworthy solutions you can propose? 回答1: The dis module disassembles code objects (extracting those from functions, classes and objects with a __dict__ namespace). This means you can use it

Understand VB6 disassemble code

帅比萌擦擦* 提交于 2019-12-06 11:22:01
I have an old VB executable that has been used for a long time in my project. The current implementation of the application contains a debug window that's not needed any more. Of course, the source code was lost and can not be modified. My idea is to modify the HEX code of the instance that's opening the annoying debug window. For that purpose, I use VB Decompiler by DotFix software, and I suppose that I found the code responsible for that instance. Unfortunately, I can't understand how it works. Let's see the disassemble code: loc_8F420C: var_8A = 0 loc_8F4219: If (Len(var_88) = &H30) Then

Can I combine all the sections “Objdump -S -d elf-file” generate into a re-assemble capable file?

烂漫一生 提交于 2019-12-06 10:59:35
问题 THe elf file is static linked and currently the objdump's output is something like: Disassembly of section: .init: xxxxxx Disassembly of section: .plt: xxxxxx Disassembly of section: .text: xxxxxx basically what I want to achieve is "elf-file -(disassemble by objdump)-> assemble file --(re-compile)--> same functionality " I don't need the re-compiled binary has the binary content same as the original one, only same functionality is enough. After a quick search, basically the answer is no ,

How to fully disassemble Python source

人盡茶涼 提交于 2019-12-06 09:09:29
问题 I have been playing with the dis library to disassemble some Python source code, but I see that this does not recurse into functions or classes: import dis source_py = "test.py" with open(source_py) as f_source: source_code = f_source.read() byte_code = compile(source_code, source_py, "exec") dis.dis(byte_code) All I see are entries such as: 54 456 LOAD_CONST 63 (<code object foo at 022C9458, file "test.py", line 54>) 459 MAKE_FUNCTION 0 462 STORE_NAME 20 (foo) If the source file had a

How to find a function of application with ollydbg?

ε祈祈猫儿з 提交于 2019-12-06 07:26:27
Let's say i released the application below. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello World!","Message Box"); } } } Now here is my questions: How to find the function of button which is responsible to show message box after pressing

How to intercept a call to a nonvirtual method from/to thirdy-party libraries in .Net?

浪子不回头ぞ 提交于 2019-12-06 05:19:42
问题 I think what I need is something the .net folks call "transparent dynamic proxy", but all the implementations I've seen this far (Castle DynamicProxy, Spring.NET AOP, etc) require me to do at least one of these: Declare intercepted method as virtual Wrap class and create instances of the wrapper instead of wrapped class Change inheritance or implement interfaces Obviously, if both caller and callee are nonvirtual and from thirdy-party closed source libraries, which is the case, there is