ff-decoder 1.0.0__tar.gz → 1.0.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.
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/PKG-INFO +1 -1
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder/cli.py +12 -5
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder.egg-info/PKG-INFO +1 -1
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/setup.py +1 -1
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/README.md +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder/__init__.py +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder/decoder.py +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder.egg-info/SOURCES.txt +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder.egg-info/dependency_links.txt +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder.egg-info/entry_points.txt +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder.egg-info/requires.txt +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/ff_decoder.egg-info/top_level.txt +0 -0
- {ff_decoder-1.0.0 → ff_decoder-1.0.1}/setup.cfg +0 -0
|
@@ -14,20 +14,27 @@ def main():
|
|
|
14
14
|
parser.add_argument("--no-decrypt", action="store_true", help="Do not attempt outer decryption (use raw data)")
|
|
15
15
|
args = parser.parse_args()
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Determine input source
|
|
18
18
|
if args.file:
|
|
19
|
+
# Read from file
|
|
19
20
|
try:
|
|
20
21
|
with open(args.file, 'r', encoding='utf-8') as f:
|
|
21
22
|
raw_input = f.read().strip()
|
|
22
23
|
except Exception as e:
|
|
23
24
|
print(f"Error reading file: {e}", file=sys.stderr)
|
|
24
25
|
sys.exit(1)
|
|
25
|
-
|
|
26
|
-
#
|
|
26
|
+
elif not sys.stdin.isatty():
|
|
27
|
+
# There is piped input (stdin is not a terminal)
|
|
27
28
|
raw_input = sys.stdin.read().strip()
|
|
28
29
|
if not raw_input:
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
print("No input provided via pipe.", file=sys.stderr)
|
|
31
|
+
sys.exit(1)
|
|
32
|
+
else:
|
|
33
|
+
# Interactive mode: prompt user
|
|
34
|
+
raw_input = input("Paste hex or base64 payload: ").strip()
|
|
35
|
+
if not raw_input:
|
|
36
|
+
print("No input provided.", file=sys.stderr)
|
|
37
|
+
sys.exit(1)
|
|
31
38
|
|
|
32
39
|
try:
|
|
33
40
|
messages = decode_payload(raw_input)
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="ff-decoder",
|
|
8
|
-
version="1.0.
|
|
8
|
+
version="1.0.1",
|
|
9
9
|
author="UNKNOWN666",
|
|
10
10
|
author_email="arbasbilal25@gmail.com",
|
|
11
11
|
description="Decode Free Fire encrypted payloads (hex/base64) with automatic decryption and expansion.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|