Skip to content

Commit 767194b

Browse files
lustmanes3n1n
andauthored
refactor(config): set chance default value to 100 (#27)
* tiny "fix" * Update README.md Co-authored-by: Arsenii es3n1n <me@es3n.in> --------- Co-authored-by: Arsenii es3n1n <me@es3n.in>
1 parent bb6e7cc commit 767194b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Examples:
2727
obfuscator hehe.exe -map mymap.map -pdb mypdb.pdb -f main -t TransformName -v SomeName 1337 -v SomeName0 1337 -g TransformName -v SomeGlobalName 1337
2828
```
2929

30+
In case of unexpected exit without any error message or in case you feel lucky, try adjusting the chances. E.g.:
31+
```commandline
32+
obfuscator hehe.exe -pdb hehe.pdb -f main -t ConstantCrypt -v chance 55
33+
```
34+
3035
## Writeup
3136
- [https://blog.es3n1n.eu/posts/obfuscator-pt-1](https://blog.es3n1n.eu/posts/obfuscator-pt-1)
3237

src/lib/obfuscator/transforms/configs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace obfuscator {
117117
std::uint8_t repeat_times_ = repeat_times_default_;
118118

119119
/// \brief Transform run chance in percents
120-
std::uint8_t chance_default_ = 30; // (from 0 to 100)%
120+
std::uint8_t chance_default_ = 100; // (from 0 to 100)%
121121
std::uint8_t chance_ = chance_default_;
122122
};
123123

0 commit comments

Comments
 (0)