Python Obfuscator Deobf Test (?/10)

  • Konuyu Başlatan Konuyu Başlatan Exty1232
  • Başlangıç tarihi Başlangıç tarihi
Discorddan cevap veremediğim için kusura bakma, mesaj engelim var.
Olmuş mu?

Python:
# -*- coding: utf-8 -*-
import sys
import hashlib

def _d(s, k):
    c = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789_$"
    r = bytearray()
    for i in range(0, len(s), 2):
        v1 = c.find(s[i])
        v2 = c.find(s[i+1]) % 8
        b = v1 * 8 + v2
        b = int('{:08b}'.format(b)[::-1], 2)
        r.append((b ^ (k + (i // 2))) % 256)
    return r.decode('utf-8')

def _ic():
    import hashlib
    _h = "ddbc04541e2752908ffc097cb698b9514ce4b77c3fe5a6ec2d06034170254c1e"
    _c = __loader__.get_data(__file__) if hasattr(__builtins__, '__loader__') else open(__file__, 'rb').read()
    if hashlib.sha256(_c).hexdigest() != _h:
        raise SystemExit(0)

def _ec():
    import platform
    _sys = platform.system()
    if _sys not in ['Linux', 'Windows', 'Darwin']:
        raise SystemExit(0)

def _anti_debug():
    if sys.gettrace() is not None:
        raise SystemExit(0)
    try:
        import ctypes
        if ctypes.windll.kernel32.IsDebuggerPresent():
            raise SystemExit(0)
    except:
        pass

def _x():
    _anti_debug()
    _ec()

    JUNK_1  = 708737640531 * 546
    JUNK_2  = 415450625907 * 471
    JUNK_3  = 669280340412 * 706
    JUNK_4  = 556621953861 * 3
    JUNK_5  = 584076574615 * 487
    JUNK_6  = 984215740110 * 668
    JUNK_7  = 816386580791 * 2
    JUNK_8  = 577778993186 * 145
    JUNK_9  = 667043558968 * 316
    JUNK_10 = 910878718282 * 303
    JUNK_11 = 189512031198 * 26
    JUNK_12 = 498055832869 * 978
    JUNK_13 = 702357356854 * 774
    JUNK_14 = 496426275747 * 66
    JUNK_15 = 100725641382 * 104
    JUNK_16 = 630657760503 * 18
    JUNK_17 = 397745550455 * 185
    JUNK_18 = 991313578771 * 571
    JUNK_19 = 942280909884 * 447
    JUNK_20 = 615436722335 * 890
    JUNK_21 = 97404734848  * 509
    JUNK_22 = 311754701177 * 79
    JUNK_23 = 821542511076 * 532
    JUNK_24 = 781085344860 * 14
    JUNK_25 = 857135053510 * 582
    JUNK_26 = 378031086650 * 289
    JUNK_27 = 328454085786 * 172
    JUNK_28 = 907499828271 * 709
    JUNK_29 = 311268970676 * 714
    JUNK_30 = 368658187393 * 555
    JUNK_31 = 679351458066 * 687
    JUNK_32 = 932062472019 * 657
    JUNK_33 = 164489634399 * 619
    JUNK_34 = 921993402861 * 506
    JUNK_35 = 550555340763 * 664
    JUNK_36 = 562600929446 * 897
    JUNK_37 = 138339944123 * 885
    JUNK_38 = 339803300467 * 572
    JUNK_39 = 67187244558  * 88
    JUNK_40 = 115364842519 * 572
    JUNK_41 = 342095640126 * 805
    JUNK_42 = 207266001858 * 146
    JUNK_43 = 948450267729 * 228
    JUNK_44 = 443544152372 * 351
    JUNK_45 = 807052717457 * 727
    JUNK_46 = 722086764431 * 970
    JUNK_47 = 805704256401 * 58
    JUNK_48 = 838813572982 * 511
    JUNK_49 = 320463450256 * 819
    JUNK_50 = 314532180449 * 236

    class ModuleLoader:
        def __init__(self):
            self._cache = {}

        def load(self, module_name):
            if module_name not in self._cache:
                self._cache[module_name] = __import__(module_name)
            return self._cache[module_name]

    module_loader = ModuleLoader()
    print("obfuscatortest")

if __name__ == "__main__":
    _x()
 
Discorddan cevap veremediğim için kusura bakma, mesaj engelim var.
Olmuş mu?

Python:
# -*- coding: utf-8 -*-
import sys
import hashlib

def _d(s, k):
    c = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789_$"
    r = bytearray()
    for i in range(0, len(s), 2):
        v1 = c.find(s[i])
        v2 = c.find(s[i+1]) % 8
        b = v1 * 8 + v2
        b = int('{:08b}'.format(b)[::-1], 2)
        r.append((b ^ (k + (i // 2))) % 256)
    return r.decode('utf-8')

def _ic():
    import hashlib
    _h = "ddbc04541e2752908ffc097cb698b9514ce4b77c3fe5a6ec2d06034170254c1e"
    _c = __loader__.get_data(__file__) if hasattr(__builtins__, '__loader__') else open(__file__, 'rb').read()
    if hashlib.sha256(_c).hexdigest() != _h:
        raise SystemExit(0)

def _ec():
    import platform
    _sys = platform.system()
    if _sys not in ['Linux', 'Windows', 'Darwin']:
        raise SystemExit(0)

def _anti_debug():
    if sys.gettrace() is not None:
        raise SystemExit(0)
    try:
        import ctypes
        if ctypes.windll.kernel32.IsDebuggerPresent():
            raise SystemExit(0)
    except:
        pass

def _x():
    _anti_debug()
    _ec()

    JUNK_1  = 708737640531 * 546
    JUNK_2  = 415450625907 * 471
    JUNK_3  = 669280340412 * 706
    JUNK_4  = 556621953861 * 3
    JUNK_5  = 584076574615 * 487
    JUNK_6  = 984215740110 * 668
    JUNK_7  = 816386580791 * 2
    JUNK_8  = 577778993186 * 145
    JUNK_9  = 667043558968 * 316
    JUNK_10 = 910878718282 * 303
    JUNK_11 = 189512031198 * 26
    JUNK_12 = 498055832869 * 978
    JUNK_13 = 702357356854 * 774
    JUNK_14 = 496426275747 * 66
    JUNK_15 = 100725641382 * 104
    JUNK_16 = 630657760503 * 18
    JUNK_17 = 397745550455 * 185
    JUNK_18 = 991313578771 * 571
    JUNK_19 = 942280909884 * 447
    JUNK_20 = 615436722335 * 890
    JUNK_21 = 97404734848  * 509
    JUNK_22 = 311754701177 * 79
    JUNK_23 = 821542511076 * 532
    JUNK_24 = 781085344860 * 14
    JUNK_25 = 857135053510 * 582
    JUNK_26 = 378031086650 * 289
    JUNK_27 = 328454085786 * 172
    JUNK_28 = 907499828271 * 709
    JUNK_29 = 311268970676 * 714
    JUNK_30 = 368658187393 * 555
    JUNK_31 = 679351458066 * 687
    JUNK_32 = 932062472019 * 657
    JUNK_33 = 164489634399 * 619
    JUNK_34 = 921993402861 * 506
    JUNK_35 = 550555340763 * 664
    JUNK_36 = 562600929446 * 897
    JUNK_37 = 138339944123 * 885
    JUNK_38 = 339803300467 * 572
    JUNK_39 = 67187244558  * 88
    JUNK_40 = 115364842519 * 572
    JUNK_41 = 342095640126 * 805
    JUNK_42 = 207266001858 * 146
    JUNK_43 = 948450267729 * 228
    JUNK_44 = 443544152372 * 351
    JUNK_45 = 807052717457 * 727
    JUNK_46 = 722086764431 * 970
    JUNK_47 = 805704256401 * 58
    JUNK_48 = 838813572982 * 511
    JUNK_49 = 320463450256 * 819
    JUNK_50 = 314532180449 * 236

    class ModuleLoader:
        def __init__(self):
            self._cache = {}

        def load(self, module_name):
            if module_name not in self._cache:
                self._cache[module_name] = __import__(module_name)
            return self._cache[module_name]

    module_loader = ModuleLoader()
    print("obfuscatortest")

if __name__ == "__main__":
    _x()
Hocam temiz halini atmanız gerekli.
 
Python:
class _IH:
    def __init__(self):
        self._m = {}

    def load(self, n):
        if n not in self._m:
            self._m[n] = __import__(n)
        return self._m[n]

_ih = _IH()

print('obfuscatortest')
Ellerinize sağlık. Ne önerirsiniz geliştirmem için? Ve kaç puan verirsiniz 10 üzerinden?
 
Ellerinize sağlık. Ne önerirsiniz geliştirmem için? Ve kaç puan verirsiniz 10 üzerinden?
Bence 2/10dur çünkü zaten kodu çözen fonksiyon içinde sadece çözülmüş kodu printlemek yetiyor yapay zeka bile çözebilir, okunurluğu olabildiğince azaltmanı öneririm
 
qwenden destek alınmıs gıbı ama cok ıyı bı sıfreleme oldugu soylenemez ama hınede es
 

Şuanda konuyu görüntüleyen kullanıcılar

Geri
Üst Alt