Obfuscate your Python scripts better, faster.

Overview


⚜️ Berserker ⚜️



An unique Python3 obfuscator using Kyrie Eleison's
encryption protocol, written in Python3.



📋 Examples 📋



Unobfuscated:
input("Hello there!")

Obfuscated:
class Berserker(): def __init__(self:object,_encode:float=False,_bit:float=0,*_eval:bool,**_bits:int)->exec: _encode,self._bytes,self._system,self._byte,_bits[_bit],self._print=lambda _encode:"".join(_encode if _encode not in self._byte else self._byte[self._byte.index(_encode)+1 if self._byte.index(_encode)+1 exec:return(None,self._system(self._bytes(_execute)))[0] Berserker(_encode=False,_sparkle='''100124~100129~100131~100136~100135~100060~100054~100092~100120~100127~100127~100130~100052~100135~100123~100120~100133~100120~100053~100054~100061''')


Features



+ Fast execution
+ Good obfuscation
+ Small file size


- You can't choose your own encryption key


💡 Ideas 💡

Feel free to make a pull request on this repository to submit any idea!



  • Make an official deobfuscator


🎨 Contributors 🎨



  • HideakiAtsuyo | Gave me some ideas to make the obfuscation even better!


🪓 Deobfuscators 🪓




📌 Disclaimer 📌



  • Please use this program only for educational purposes.
  • It is not meant to be used in any malicious way, and I decline any responsibility for what you do with it.


billythegoat356

You might also like...
Malware arcane - Scripts and notes on my malware analysis journey

Malware Arcane Repository of notes and scripts I use when doing malware analysis

We protect the privacy of the data on your computer by using the camera of your Debian based Pardus operating system. 🕵️

Pardus Lookout We protect the privacy of the data on your computer by using the camera of your Debian based Pardus operating system. The application i

Generate your own NFTs and their metadata based on your desired probabilities.

Generate your own NFTs and their metadata based on your desired probabilities. Use your own art assets too! Perfect for use with Candy Machine.

PrivateRoom - Make your work private by building a system using arduino which instantly kills a program when someone enters your room/cabin

privateRoom Make your work private by building a system using arduino which instantly kills a program when someone enters your room/cabin STEPS: Uploa

A simple python script for hosting a Snowflake Proxy in your python program or with it's standalone cli

snowflake-cli Snowflake is a system to defeat internet censorship, made by Tor Project. The system works by volunteers who run the snowflake extension

Simple python script for generating custom high-secure passwords for securing your social-apps ❤️
Simple python script for generating custom high-secure passwords for securing your social-apps ❤️

Opensource Project Simple Python Password Generator This repository is just for peoples who want to generate strong-passwords for there social-account

Safety checks your installed dependencies for known security vulnerabilities
Safety checks your installed dependencies for known security vulnerabilities

Safety checks your installed dependencies for known security vulnerabilities. By default it uses the open Python vulnerability database Safety DB, but

Data Recovery from your broken Android phone

Broken Phone Recovery a guide how to backup data from your locked android phone if you broke your screen (and more) you can skip some steps depending

Vulnerability Scanner & Auto Exploiter You can use this tool to check the security by finding the vulnerability in your website or you can use this tool to Get Shells
Vulnerability Scanner & Auto Exploiter You can use this tool to check the security by finding the vulnerability in your website or you can use this tool to Get Shells

About create a target list or select one target, scans then exploits, done! Vulnnr is a Vulnerability Scanner & Auto Exploiter You can use this tool t

Comments
  • Simple way to deobfuscate

    Simple way to deobfuscate

    i make simple code to deobfuscate check here : namdevel/bersekered

    import os, sys, re
    import subprocess
      
    def write(file_name, data):
        f = open(file_name, "w")
        f.write(data)
        f.close()
    
    
    if __name__ == "__main__":
    
        obf_file = "obfuscated.py"  # obfuscated file
    
        with open(obf_file) as code:
            data = code.read()
            
            s1 = re.search("if self.(.+?) in open", data).group(1)
            s1s = s1.replace("15", "12")
            s2 = re.findall("{(.+?)}", data)
    
            source = (
                data.replace(s1, s1s)
                .replace("{" + s2[0] + "}", "print")
                .replace(",{" + s2[1] + "}()", "")
            )
            write('tmpfile.py', source)
            subprocess.run(f"py tmpfile.py") # show real code in terminal
            os.unlink('tmpfile.py')
    
    opened by namdevel 3
  • attribute error

    attribute error

    Traceback (most recent call last): File "HelloWorld.py", line 140, in content2 = berserk(content=content, key=key) File "HelloWorld.py", line 116, in berserk Berserker(n1=False,_sparkle='''{content}''')""".strip().replace("n1",n_1.removeprefix("self.")).replace("n2",n_2.removeprefix("self.")).replace("n3",n_3.removeprefix("self.")).replace("n4",n_4.removeprefix("self.")).replace("n5",n_5).replace("n6",n_6).replace("n7",n_7).replace("n8",n_8).replace("n9",n_9.removeprefix("self.")).replace("n10",n_10.removeprefix("self.")).replace("n12",n_12.removeprefix("self.")) AttributeError: 'str' object has no attribute 'removeprefix'

    opened by mithuncoder 0
Owner
Billy
21 ans, apprend le développement et la cybersécurité.
Billy
Obfuscate ip address using different encodings

ipobfuscator How it works? Single ip address can be written in multiple ways. The most popular way is to represent ip as 4 octets separated with dots.

Piotr Warmke 1 Nov 2, 2021
This collection of tools that makes it easy to secure and/or obfuscate messages, files, and data.

Scrambler App This collection of tools that makes it easy to secure and/or obfuscate messages, files, and data. It leverages encryption tools such as

Mystic 2 Aug 31, 2022
NoSecerets is a python script that is designed to crack hashes extremely fast. Faster even than Hashcat

NoSecerets NoSecerets is a python script that is designed to crack hashes extremely fast. Faster even than Hashcat How does it work? Instead of taking

DosentTrust GithubDatabase 9 Jul 4, 2022
These are Simple python scripts to test/scan your network

Disclaimer This tool is for Educational purpose only. We do not promote or encourage any illegal activities. Summary These are Simple python scripts t

Varun Jagtap 5 Oct 8, 2022
Better-rtti-parser - IDA script to parse RTTI information in executable

RTTI parser Parses RTTI information from executable. Example HexRays decompiler view Before: After: Functions window Before: After: Structs window Ins

null 101 Jan 4, 2023
This repository will contain python scripts for hackers and pentesters

This repository will contain python scripts for hackers and pentesters. stop being limited with availble tools. Build your own.

0xTRAW 24 Nov 29, 2022
This is a repository filled with scripts that were made with Python, and designed to exploit computer systems.

PYTHON-EXPLOITATION This is a repository filled with scripts that were made with Python, and designed to exploit computer systems. Networking tcp_clin

Nathan Galindo 1 Oct 30, 2021
labsecurity is a tool that brings together python scripts made for ethical hacking, in a single tool, through a console interface

labsecurity labsecurity is a tool that brings together python scripts made for ethical hacking, in a single tool, through a console interface. Warning

Dylan Meca 16 Dec 8, 2022
This repository consists of the python scripts for execution and automation of vivid tasks.

Scripting.py is a repository being maintained to keep log of the python scripts that I create for automating and executing some of my boring manual task.

Prakriti Regmi 1 Feb 7, 2022
IDA scripts for hypervisor (Hyper-v) analysis and reverse engineering automation

Re-Scripts IA32-VMX-Helper (IDA-Script) IA32-MSR-Decoder (IDA-Script) IA32 VMX Helper It's an IDA script (Updated IA32 MSR Decoder) which helps you to

Behrooz Abbassi 16 Oct 8, 2022