当前位置: 首页 > news >正文

[C#]de4dot常用命令

命令:de4dot.exe "D:\xxx.exe"
解释:运行后文件在程序集的目录下生成一个带-cleaned的新程序集。
命令:de4dot.exe file1 -f "D:\xxx.exe" -o "D:\output\xxx_cleaned.exe"
解释:-f : 指定.NET 程序集文件,-o : 指定输出 文件
命令:de4dot -r "D:\input" -ru -ro "D:\output"
解释:反混淆整个文件夹其中-r  xxx : 指定输入文件夹,包括子文件夹,-ru : 跳过不支持的混淆工具混淆过的文件,-ro : 指定输出文件夹
命令:de4dot.exe -f "D:\a\xxx.exe" -d
解释:检测混淆工具名称
命令:de4dot file1.dll -p sa
解释:指定混淆工具名称,de4dot可能检测不准确混淆工具的名称,可以通过 -p 参数指定

更多命令:

de4dot <options> <file options>
Options:-r DIR           Scan for .NET files in all subdirs-ro DIR          Output base dir for recursively found files-ru              Skip recursively found files with unsupported obfuscator-d               Detect obfuscators and exit--asm-path PATH  Add an assembly search path--dont-rename    Don't rename classes, methods, etc.--keep-names FLAGSDon't rename n(amespaces), t(ypes), p(rops), e(vents), f(ields), m(ethods), a(rgs), g(enericparams), d(elegate fields). Can be combined, eg. efm--dont-create-paramsDon't create method params when renaming--dont-restore-propsDon't restore properties/events--default-strtyp TYPEDefault string decrypter type--default-strtok METHODDefault string decrypter method token or [type::][name][(args,...)]--no-cflow-deob  No control flow deobfuscation (NOT recommended)--only-cflow-deobOnly control flow deobfuscation--load-new-processLoad executed assemblies into a new process--keep-types     Keep obfuscator types, fields, methods--preserve-tokensPreserve important tokens, #US, #Blob, extra sig data--preserve-table FLAGSPreserve rids in table: tr (TypeRef), td (TypeDef), fd (Field), md (Method), pd (Param), mr (MemberRef), s (StandAloneSig), ed (Event), pr (Property), ts (TypeSpec), ms (MethodSpec), all (all previous tables). Use - to disable (eg. all,-pd). Can be combined: ed,fd,md--preserve-all   Preserve all tokens--preserve-stringsPreserve #Strings heap offsets--preserve-us    Preserve #US heap offsets--preserve-blob  Preserve #Blob heap offsets--preserve-sig-dataPreserve extra data at the end of signatures--one-file       Deobfuscate one file at a time-v               Verbose-vv              Very verbose-h               Show this help message--help           Same as -hFile options:-f FILE          Name of .NET file-o FILE          Name of output file-p TYPE          Obfuscator type (see below)--strtyp TYPE    String decrypter type--strtok METHOD  String decrypter method token or [type::][name][(args,...)]Deobfuscator options:
Type un (Unknown)--un-name REGEX  Valid name regex pattern (^[a-zA-Z_<{$][a-zA-Z_0-9<>{}$.`-]*$)Type dr4 (.NET Reactor)--dr4-name REGEX Valid name regex pattern (^[\u2E80-\u9FFFa-zA-Z_<{$][\u2E80-\u9FFFa-zA-Z_0-9<>{}$.`-]*$)--dr4-methods BOOLDecrypt methods (True)--dr4-bools BOOL Decrypt booleans (True)--dr4-types BOOL Restore types (object -> real type) (True)--dr4-inline BOOLInline short methods (True)--dr4-remove-inlined BOOLRemove inlined methods (True)--dr4-embedded BOOLDump embedded assemblies (True)--dr4-rsrc BOOL  Decrypt resources (True)--dr4-ns1 BOOL   Clear namespace if there's only one class in it (True)--dr4-sn BOOL    Remove anti strong name code (True)--dr4-sname BOOL Rename short names (False)String decrypter typesnone             Don't decrypt stringsdefault          Use default string decrypter type (usually static)static           Use static string decrypter if availabledelegate         Use a delegate to call the real string decrypteremulate          Call real string decrypter and emulate certain instructionsMultiple regexes can be used if separated by '&'.
Use '!' if you want to invert the regex. Example: !^[a-z\d]{1,2}$&!^[A-Z]_\d+$&^[\w.]+$Examples:
de4dot -r c:\my\files -ro c:\my\output
de4dot file1 file2 file3
de4dot file1 -f file2 -o file2.out -f file3 -o file3.out
de4dot file1 --strtyp delegate --strtok 06000123

http://www.lryc.cn/news/291210.html

相关文章:

  • 林浩然的“生命体验”大冒险
  • 设计模式——职责链模式(Chain of Responsibility Pattern)
  • C++引用详解
  • fMRI数据处理(随时更新)
  • 【Linux C | 网络编程】getsockname 和 getpeername函数详解及C语言例子
  • 研发日记,Matlab/Simulink避坑指南(六)——字节分割Bug
  • (M)unity受伤反弹以及死亡动画
  • 【Java】Springboot入门
  • 专业138总分420+中国科学技术大学843信号与系统考研经验中科大电子信息通信
  • 携程开源 基于真实请求与数据的流量回放测试平台、自动化接口测试平台AREX
  • Android中C++层fstream用法详解
  • git clone常见问题一览及解决方法
  • ​ArcGIS Pro 如何批量删除字段
  • OG Trade在ZKX揭幕:一家基于Starknet的游戏化永续合约交易所
  • ubuntu 22.04 安装redis并设置远程连接
  • MemcachedRedis构建缓存服务器
  • Python编辑开发 --- pycharm pro 中文
  • Linux的 .bashrc 有什么作用?
  • .ui文件相关
  • 【DOCKER】docker 安装sonarque
  • 解决IDEA报错端口被占用的问题
  • IDEA:git 回滚本地提交-git 选择 Reset Current Branch to
  • Docker核心教程
  • React通用后台模板
  • 【Axure教程0基础入门】00Axure9汉化版下载、安装、汉化、注册+01制作线框图
  • day38_MySQL
  • element ui组件 el-date-picker设置default-time的默认时间
  • ###C语言程序设计-----C语言学习(8)## 斐波那契数列问题,素数问题,人数分配问题。
  • 蓝桥杯 第 1 场 小白入门赛
  • 飞天使-linux操作的一些技巧与知识点5-expect与docker便捷命令