2011-09-22 10:55:30 +08:00
|
|
|
|
/*
|
2013-01-02 00:03:16 +08:00
|
|
|
|
Copyright (C) 2011-2013 de4dot@gmail.com
|
2011-09-22 10:55:30 +08:00
|
|
|
|
|
|
|
|
|
This file is part of de4dot.
|
|
|
|
|
|
|
|
|
|
de4dot is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
de4dot is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with de4dot. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-12-20 09:06:09 +08:00
|
|
|
|
using dnlib.DotNet.Writer;
|
2012-12-07 22:06:38 +08:00
|
|
|
|
using de4dot.code.renamer;
|
2012-12-01 10:24:12 +08:00
|
|
|
|
|
2011-12-09 16:02:06 +08:00
|
|
|
|
namespace de4dot.code.deobfuscators {
|
|
|
|
|
public enum OpDecryptString {
|
2011-09-22 10:55:30 +08:00
|
|
|
|
None,
|
|
|
|
|
Static,
|
|
|
|
|
Dynamic,
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-09 16:02:06 +08:00
|
|
|
|
public interface IOperations {
|
2011-09-22 10:55:30 +08:00
|
|
|
|
bool KeepObfuscatorTypes { get; }
|
2012-12-01 10:24:12 +08:00
|
|
|
|
MetaDataFlags MetaDataFlags { get; }
|
2012-12-07 22:06:38 +08:00
|
|
|
|
RenamerFlags RenamerFlags { get; }
|
2011-09-22 10:55:30 +08:00
|
|
|
|
OpDecryptString DecryptStrings { get; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Operations : IOperations {
|
|
|
|
|
public bool KeepObfuscatorTypes { get; set; }
|
2012-12-01 10:24:12 +08:00
|
|
|
|
public MetaDataFlags MetaDataFlags { get; set; }
|
2012-12-07 22:06:38 +08:00
|
|
|
|
public RenamerFlags RenamerFlags { get; set; }
|
2011-09-22 10:55:30 +08:00
|
|
|
|
public OpDecryptString DecryptStrings { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|