• Stars
    star
    149
  • Rank 247,108 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

I got tired of writing good code so I made good code to make bad code

Python-Obfuscator

One night I got bored of writing good code, so I made good code to make bad code.

GitHub release (latest by date) Downloads Linkedin

DONT USE IN PRODUCTION

I just made this because it was interesting to me. I do plan on making this more official in the future, but currently don't have the time!

Consider sponsoring me here

Installing

pip install python-obfuscator

Quickstart

Print out obfuscated code

pyobfuscate -i your_file.py

Apply changes to the input file

pyobfuscate -i your_file.py -r True

More Detailed Documentation

You can use this as a module if you want

import python_obfuscator
obfuscator = python_obfuscator.obfuscator()

code_to_obfuscate = "print('hello world')"

You can also exclude certain techniques applied for obfuscation

import python_obfuscator
from python_obfuscator.techniques import add_random_variables
obfuscator = python_obfuscator.obfuscator()

code_to_obfuscate = "print('hello world')"
obfuscated_code = obfuscator.obfuscate(code_to_obfuscate, remove_techniques=[add_random_variables])

Find a list of all techniques here

Example Obfuscated Code

Input

y = input("what's your favorite number")

user_value = int(y)
print("{} that's a great number!".format(user_value))

With pyobfuscate -i file.py

With --one-liner True

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

More Repositories

1

TikTok-Api

The Unofficial TikTok API Wrapper In Python
Python
4,712
star
2

TikTokBot

A TikTokBot that downloads trending tiktok videos and compiles them using FFmpeg
Python
349
star
3

everything-web-scraping

Learn everything web scraping with David Teather Codes on YouTube
HTML
304
star
4

chatGPT-for-applications

Generate cover letters, resumes, and more with chatGPT!
Python
87
star
5

web-scraping-with-reverse-engineering

MOVED TO https://github.com/davidteather/everything-web-scraping
JavaScript
43
star
6

Instagram-Bot

This is a commissioned instagram bot that will auto assign instagram account proxies and execute a job list to follow, like, or comment on a post.
Python
38
star
7

tinder-bot

Tinder Automation Bot
Python
31
star
8

ApplicantAtlas

An open source event management platform focused on Hackathons
TypeScript
16
star
9

BackpackTf-API

Unoffical Backpack.tf wrapper in python
Python
14
star
10

webscraping-workshop-madhacks-2023

Introduction to Static Site Web Scraping Workshop For MadHacks 2023
Jupyter Notebook
5
star
11

Hotukdeals-Discord-Notifier

A commissioned project to notify a user on discord about new deals matching specific criteria.
Python
5
star
12

Target-Stock-Discord-Bot

This is a bot that is designed to respond with Target's stock based on a DPCI code.
Python
5
star
13

copypasta-generator

Code that creates copypasta
Python
3
star
14

app-etite

Discover a new place to eat
JavaScript
3
star
15

TCGPlayer-Scraper

This is a commissioned to return the listings with images of specific cards.
Python
3
star
16

triller-api

The Unofficial Triller API Wrapper In Python
Python
3
star
17

cursed-python

Python code, but cursed
Python
2
star
18

csgo-no-hands

Playing CSGO Without Using Hands
HTML
2
star
19

conspiracy-bot

A bot that just rambles about conspiracies from r/conspiracy
Python
2
star
20

worst-stock-predictor

Predicts the worst stocks to invest in
Python
2
star
21

astro-search-optimized-image-blog-template

Astro + Page Search + Optimized Images from Markdown + TailwindCSS + DaisyUI Template
Astro
2
star
22

linkedin-profile-picture-notifier

This is a commissioned project that notifies users over email when a person's LinkedIn profile picture changes
Python
2
star
23

Wisconsin-Covid19-API

A wrapper library to get Covid-19 data from Wisconsin's Department of Health
Python
2
star
24

imc-prosperity-2024

IMC Prosperity 2024, #103 USA #381 Globally
Python
1
star
25

scrape-crossfit-gyms

Scrapes crossfit gym data
Python
1
star
26

Mini-Apis

A python wrapper for a ton of small free apis.
Python
1
star
27

COVID19-US-Chrome-Extension

Google Chrome Extension Tracking COVID-19 in the US
JavaScript
1
star
28

zoom-scheduler

Repository for our hackdavis.io project
Python
1
star
29

ewg-water-scrape

Python
1
star
30

robot-interrupter

A robot that interrupts you because that's what you need in your life.
Python
1
star
31

STEP

C++
1
star
32

photo-booth

A basic photo booth application for controlling a gphoto2 compatible camera through a nice web interface that can send the pictures out to the user over email.
Python
1
star
33

UW-Madison-Covid-19

This is a dashboard to keep track of the current cases of coronavirus in and around the University of Wisconsin Madison.
TypeScript
1
star