├── test.py ├── 4_5942911484009912592.mp4 ├── byteString.txt ├── marshalled file.py ├── README.md └── LICENSE /test.py: -------------------------------------------------------------------------------- 1 | print("hi") 2 | input("") 3 | 4 | # This is Source -------------------------------------------------------------------------------- /4_5942911484009912592.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aDarkDev/Decrypte-Marshal/HEAD/4_5942911484009912592.mp4 -------------------------------------------------------------------------------- /byteString.txt: -------------------------------------------------------------------------------- 1 | byte_string = b'a\r\r\n\x00\x00\x00\x00\xf6\x971a\x00\x00\x00\x00' 2 | with open('ConfusedCharacter.pyc', 'wb') as pyc: 3 | pyc.write(byte_string ) 4 | marshal.dump(dis.Bytecode(Marshal_code).codeobj, pyc) 5 | 6 | #Confused Character -------------------------------------------------------------------------------- /marshalled file.py: -------------------------------------------------------------------------------- 1 | import marshal 2 | import dis 3 | 4 | marshal_c = marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s\x14\x00\x00\x00e\x00d\x00\x83\x01\x01\x00e\x01d\x01\x83\x01\x01\x00d\x02S\x00)\x03\xda\x02hi\xda\x00N)\x02\xda\x05print\xda\x05input\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00r\x02\x00\x00\x00\xda\x08\x01\x00\x00\x00s\x02\x00\x00\x00\x08\x01') 5 | 6 | byte_string = b'a\r\r\n\x00\x00\x00\x00\xf6\x971a\x00\x00\x00\x00' 7 | with open('ConfusedCharacter.pyc', 'wb') as pyc: 8 | pyc.write(byte_string ) 9 | marshal.dump(dis.Bytecode(marshal_c).codeobj, pyc) 10 | 11 | #Confused Character 12 | #Decrypting Marshal with @ConfusedCharacter 13 | #Put Marshal Load in var 14 | #run it -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Decrypte-Marshal 2 | Decrypte Marshal Method for python3 + first time in GitHub 3 | 4 | ### How it works? 5 | 6 | This tool use disassembling for convert marshal bytes to pyc 7 | then you can decompile pyc to py with Famous PycDc tool. 8 | 9 | ### How can i run it? ([Watch Video](https://raw.githubusercontent.com/aDarkDev/Decrypte-Marshal/main/4_5942911484009912592.mp4)) 10 | 11 | first of all download and install PycDc ( PYC Decrypte ) 12 | 13 | ```bash 14 | git clone https://github.com/zrax/pycdc 15 | sudo apt install cmake 16 | cd pycdc&& cmake . 17 | make 18 | ``` 19 | 20 | then put byteString.txt in your project 21 | import dis assembly library like this: 22 | ```python 23 | import dis 24 | import marshal 25 | ``` 26 | run project to get aDarkDev.pyc 27 | 28 | decompile pyc with this command 29 | 30 | ```bash 31 | ./pycdc aDarkDev.pyc 32 | ``` 33 | 34 | #Support Us! 35 | Tangs 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Cᴏɴғᴜsᴇᴅ Cʜᴀʀᴀᴄᴛᴇʀ 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------