rat-king-parser 4.2.0__tar.gz → 4.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {rat_king_parser-4.2.0/src/rat_king_parser.egg-info → rat_king_parser-4.2.1}/PKG-INFO +3 -3
  2. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/README.md +2 -2
  3. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/_version.py +1 -1
  4. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/extern/maco/rkp_maco.py +12 -7
  5. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1/src/rat_king_parser.egg-info}/PKG-INFO +3 -3
  6. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/LICENSE +0 -0
  7. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/pyproject.toml +0 -0
  8. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/setup.cfg +0 -0
  9. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/__init__.py +0 -0
  10. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/__init__.py +0 -0
  11. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/config_parser_exception.py +0 -0
  12. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/rat_config_parser.py +0 -0
  13. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/__init__.py +0 -0
  14. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/config_item.py +0 -0
  15. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/config_normalization.py +0 -0
  16. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/data_utils.py +0 -0
  17. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/__init__.py +0 -0
  18. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor.py +0 -0
  19. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor_aes_with_iv.py +0 -0
  20. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor_aes_with_iv_pbkdf.py +0 -0
  21. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor_decrypt_xor.py +0 -0
  22. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor_ecb.py +0 -0
  23. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor_plaintext.py +0 -0
  24. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor_random_hardcoded.py +0 -0
  25. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/decryptors/config_decryptor_rijndael.py +0 -0
  26. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/dotnet_constants.py +0 -0
  27. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/config_parser/utils/dotnetpe_payload.py +0 -0
  28. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/extern/__init__.py +0 -0
  29. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/extern/maco/__init__.py +0 -0
  30. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/rkp.py +0 -0
  31. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/yara_utils/__init__.py +0 -0
  32. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/yara_utils/recompile.py +0 -0
  33. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/yara_utils/rules.yar +0 -0
  34. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser/yara_utils/rules.yarc +0 -0
  35. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser.egg-info/SOURCES.txt +0 -0
  36. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser.egg-info/dependency_links.txt +0 -0
  37. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser.egg-info/entry_points.txt +0 -0
  38. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser.egg-info/requires.txt +0 -0
  39. {rat_king_parser-4.2.0 → rat_king_parser-4.2.1}/src/rat_king_parser.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rat-king-parser
3
- Version: 4.2.0
3
+ Version: 4.2.1
4
4
  Summary: A robust, multiprocessing-capable, multi-family RAT config parser/config extractor for AsyncRAT, DcRAT, VenomRAT, QuasarRAT, XWorm, Xeno RAT, and cloned/derivative RAT families.
5
5
  Author-email: jeFF0Falltrades <8444166+jeFF0Falltrades@users.noreply.github.com>
6
6
  Maintainer-email: jeFF0Falltrades <8444166+jeFF0Falltrades@users.noreply.github.com>
@@ -137,7 +137,7 @@ pip install "rat_king_parser[maco] @ git+https://github.com/jeFF0Falltrades/rat_
137
137
 
138
138
  ## Example Input/Output
139
139
 
140
- ## Not Preserving Obfuscated Keys
140
+ ### Not Preserving Obfuscated Keys
141
141
  ```bash
142
142
  $ rat-king-parser -n dangerzone/* | jq
143
143
  ```
@@ -601,7 +601,7 @@ $ rat-king-parser -n dangerzone/* | jq
601
601
  }
602
602
  ]
603
603
  ```
604
- ## Preserving Obfuscated Keys
604
+ ### Preserving Obfuscated Keys
605
605
  ```bash
606
606
  $ rat-king-parser -np dangerzone/* | jq
607
607
  ```
@@ -99,7 +99,7 @@ pip install "rat_king_parser[maco] @ git+https://github.com/jeFF0Falltrades/rat_
99
99
 
100
100
  ## Example Input/Output
101
101
 
102
- ## Not Preserving Obfuscated Keys
102
+ ### Not Preserving Obfuscated Keys
103
103
  ```bash
104
104
  $ rat-king-parser -n dangerzone/* | jq
105
105
  ```
@@ -563,7 +563,7 @@ $ rat-king-parser -n dangerzone/* | jq
563
563
  }
564
564
  ]
565
565
  ```
566
- ## Preserving Obfuscated Keys
566
+ ### Preserving Obfuscated Keys
567
567
  ```bash
568
568
  $ rat-king-parser -np dangerzone/* | jq
569
569
  ```
@@ -23,4 +23,4 @@
23
23
  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
24
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
25
  # SOFTWARE.
26
- __version__ = "4.2.0"
26
+ __version__ = "4.2.1"
@@ -102,13 +102,18 @@ class RKPMACO(extractor.Extractor):
102
102
  # Instead, these will show individually as "server_port"
103
103
  # entries in the MACO config
104
104
  case ConfigValueTypes.PORT:
105
- rkp_model.tcp.extend(
106
- [
107
- rkp_model.Connection(server_port=port)
108
- for port in v
109
- if port.isdigit()
110
- ]
111
- )
105
+ if isinstance(v, int):
106
+ # Single port was extracted rather than a list
107
+ rkp_model.tcp.append(rkp_model.Connection(server_port=v))
108
+ else:
109
+ # Assume a list of ports was extracted
110
+ rkp_model.tcp.extend(
111
+ [
112
+ rkp_model.Connection(server_port=int(port))
113
+ for port in v
114
+ if str(port).isdigit()
115
+ ]
116
+ )
112
117
  case ConfigValueTypes.VERSION:
113
118
  rkp_model.version = v
114
119
  continue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rat-king-parser
3
- Version: 4.2.0
3
+ Version: 4.2.1
4
4
  Summary: A robust, multiprocessing-capable, multi-family RAT config parser/config extractor for AsyncRAT, DcRAT, VenomRAT, QuasarRAT, XWorm, Xeno RAT, and cloned/derivative RAT families.
5
5
  Author-email: jeFF0Falltrades <8444166+jeFF0Falltrades@users.noreply.github.com>
6
6
  Maintainer-email: jeFF0Falltrades <8444166+jeFF0Falltrades@users.noreply.github.com>
@@ -137,7 +137,7 @@ pip install "rat_king_parser[maco] @ git+https://github.com/jeFF0Falltrades/rat_
137
137
 
138
138
  ## Example Input/Output
139
139
 
140
- ## Not Preserving Obfuscated Keys
140
+ ### Not Preserving Obfuscated Keys
141
141
  ```bash
142
142
  $ rat-king-parser -n dangerzone/* | jq
143
143
  ```
@@ -601,7 +601,7 @@ $ rat-king-parser -n dangerzone/* | jq
601
601
  }
602
602
  ]
603
603
  ```
604
- ## Preserving Obfuscated Keys
604
+ ### Preserving Obfuscated Keys
605
605
  ```bash
606
606
  $ rat-king-parser -np dangerzone/* | jq
607
607
  ```
File without changes