Questions tagged [dnspy]

A debugger and .NET assembly editor. It can be used to edit and debug assemblies even if no source code available is available.

33 questions
0
votes
0 answers

dnspy disassembly code async method gives syntax error

When I decompile the exe file, it gives a spelling errors.]1 enter image description here
Özgür
  • 1
  • 1
0
votes
1 answer

says dnspython isn't installed with mongodb but it is

I wanna import my database or whatever, I have an actual username and password but changed them import dns import pymongo from pymongo import MongoClient cluster =…
user18086842
0
votes
1 answer

C# Decompiling: Some of methods are empty

I have only exe+dlls. CEF shows me: Portable .NET. I try to use dnSpy to decompiling and see methods empty with attribute like this // Token: 0x0600011D RID: 285 RVA: 0x00003098 File Offset:…
ZedZip
  • 5,794
  • 15
  • 66
  • 119
0
votes
1 answer

Full of hex codes in ILSpy, dNSpy, dotPeek

I'm trying to explore things with decompiling and I think I hit a wall because I think this is too much for a simple guy like me to comprehend. Is this normal? Or like the developer of the software (exe file) protected/secured it? Is there any…
jebb
  • 11
  • 1
0
votes
2 answers

ILSpy,How to make IL Code looks more like native C# instead of machine code

this is my result this is what i want to see I've only just started using ILSpy,the dll is compined with Unity Self,and i just drag the Assembly-CSharp.dll into ILSpy,I have searched for a long time but nothing leaned.Is there some setting i need?
Logarius
  • 1
  • 1
0
votes
1 answer

DnSpy decompiled output has syntax errors and can not be recompiled, in particular "<>f__switch$map1"

I have a program which no longer has support and does not have source code available. So I decompiled it in order to make fixes, because the fixes required are substantial I decided to use dnSpy to export the decompiled code as a project, however…
0
votes
0 answers

Why checking MX using dnspython giving timeout error?

import dns.resolver import concurrent.futures domains=open('com 2021-6-7 domains.txt',encoding='utf-8').read().splitlines()[0:10000] mx_domains=[] def check(domain): try: answers = dns.resolver.resolve(domain, 'MX') print('MX…
shahrOZe
  • 105
  • 1
  • 5
0
votes
1 answer

Program crash after dnSpy compilation

I'm new to dnSpy and there's a program I want to debug, I deobfuscated the .dll in de4dot and then opened it in dnSpy to debug. I tried compiling some method. no compilation error, saved it. And ran the program, result in a crash. BUT there's…
Rim
  • 1
  • 2
0
votes
1 answer

rename assembly uncode hex encoded names using dnspy like \uE000

How can I rename every single unicode variable name ? Its hard to analyse, and also build. It raises a lot errors. I know, I can change their name via edit property, but its really hard to change names in bulk manually. Please view images: So is…
Gray Programmerz
  • 479
  • 1
  • 5
  • 22
0
votes
1 answer

Match Domains to DNS Resolver Name - Python

I am still new to Python, and have been working on this for work, and a few side projects with it for automating my Plex Media Management tasks. I am trying to write a python script that would allow me to take a set list of domains from a csv file,…
Jordan
  • 5
  • 4
0
votes
0 answers

"has Stopped working" message after IL Assembly editing

I am using "dnSpy" application to read and change .net assembly exe module, I chose "Edit IL Instructions..." like that Then I change "brtrue" to "brfalse" as this picture Then I saved a module like that Then I run NGRN like that Now When I…
JustMe
  • 6,065
  • 3
  • 19
  • 17
0
votes
1 answer

Dotpeek or dnSpy filter for .NET Core Assemblage

I am working in the context of a .NET Core application, windows service, and I have a compiler error telling me I've got a type that has moved assemblies. I cannot find said type and I have gone all over looking for it. So far, I have tried using a…
Evan Ricard
  • 35
  • 2
  • 10
0
votes
1 answer

Dnspy can't compile MySql.Data

I have deobfuscated an executable file with de4dot and Dnspy. I can change and compile most of the classes but, I can't change and compile the ones that has MySql methods in it. It gives me an error: type or namespace name 'MySql' could not be found…
0
votes
1 answer

DLL recompile with dnSpy - agnostic assembly cannot have a processor specific module System.EnterpriseServices.Wrapper.dll

I'm trying to add debugging flags on a DLL using dnSpy, but I keep getting the following error: agnostic assembly cannot have a processor specific module System.EnterpriseServices.Wrapper.dll This does not happen only on a particular DLL I try to…
CLod
  • 917
  • 2
  • 11
  • 28
0
votes
0 answers

How do I fix the "Property or indexer 'PlayerController.Modifier' cannot be assigned to -- it is read only" error?

I've looked through a bunch of solutions for my code, but none of them apply to what I've been trying to add. Since I'm modding a game, I've been coding through dnSpy, and I'm constantly coming up with a read-only error with my issue. Like I said,…
ZeeEhm
  • 1
  • 2