💘 Write any Python with 9 Characters: e,x,c,h,r,(,+,1,)

Related tags

MiscellaneousPyFuck
Overview

💘 PyFuck exchr(+1)

PyFuck is a strange playful code.
It uses only nine different characters to write Python3 code.

Inspired by aemkei/jsfuck

Example

The following source will do an __import__("os").system("ls"):

exec(chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)+chr(111+1)+chr(111)+chr(111+1+1+1)+chr(111+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+1)+chr(111)+chr(111+1+1+1+1)+chr(11+11+11+1)+chr(11+11+11+1+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1)+chr(111+1+1+1+1)+chr(111+1+1+1+1+1+1+1+1+1+1)+chr(111+1+1+1+1)+chr(111+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1)+chr(111+1+1+1+1)+chr(11+11+11+1)+chr(11+11+11+1+1+1+1+1+1+1+1))

Basics

chr(48) => chr(11+11+11+11+1+1+1+1) "1" => chr(49) => chr(11+11+11+11+1+1+1+1+1) "2" => chr(50) => chr(11+11+11+11+1+1+1+1+1+1) "A" => chr(65) => chr(11+11+11+11+11+1+1+1+1+1+1+1+1+1+1) "B" => chr(66) => chr(11+11+11+11+11+11) "C" => chr(67) => chr(11+11+11+11+11+11+1) "a" => chr(97) => chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1) "b" => chr(98) => chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1) "c" => chr(99) => chr(11+11+11+11+11+11+11+11+11) "+" => chr(43) => chr(11+11+11+1+1+1+1+1+1+1+1+1+1) "-" => chr(45) => chr(11+11+11+11+1) "(" => chr(40) => chr(11+11+11+1+1+1+1+1+1+1) ")" => chr(41) => chr(11+11+11+1+1+1+1+1+1+1+1) "[" => chr(91) => chr(11+11+11+11+11+11+11+11+1+1+1) "]" => chr(93) => chr(11+11+11+11+11+11+11+11+1+1+1+1+1) etc.">
"0"  =>  chr(48)  =>  chr(11+11+11+11+1+1+1+1)
"1"  =>  chr(49)  =>  chr(11+11+11+11+1+1+1+1+1)
"2"  =>  chr(50)  =>  chr(11+11+11+11+1+1+1+1+1+1)
"A"  =>  chr(65)  =>  chr(11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)
"B"  =>  chr(66)  =>  chr(11+11+11+11+11+11)
"C"  =>  chr(67)  =>  chr(11+11+11+11+11+11+1)
"a"  =>  chr(97)  =>  chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1)
"b"  =>  chr(98)  =>  chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)
"c"  =>  chr(99)  =>  chr(11+11+11+11+11+11+11+11+11)
"+"  =>  chr(43)  =>  chr(11+11+11+1+1+1+1+1+1+1+1+1+1)
"-"  =>  chr(45)  =>  chr(11+11+11+11+1)
"("  =>  chr(40)  =>  chr(11+11+11+1+1+1+1+1+1+1)
")"  =>  chr(41)  =>  chr(11+11+11+1+1+1+1+1+1+1+1)
"["  =>  chr(91)  =>  chr(11+11+11+11+11+11+11+11+1+1+1)
"]"  =>  chr(93)  =>  chr(11+11+11+11+11+11+11+11+1+1+1+1+1)
etc.

Execute print(1)

chr(111+1) "r" => chr(111+1+1+1) "i" => chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1) "n" => chr(11+11+11+11+11+11+11+11+11+11) "t" => chr(111+1+1+1+1+1) "(" => chr(11+11+11+1+1+1+1+1+1+1) "1" => chr(11+11+11+11+1+1+1+1+1) ")" => chr(11+11+11+1+1+1+1+1+1+1+1) "print(1)" => chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1) exec("print(1)") => exec(chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1))">
"p" => chr(111+1)
"r" => chr(111+1+1+1)
"i" => chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)
"n" => chr(11+11+11+11+11+11+11+11+11+11)
"t" => chr(111+1+1+1+1+1)
"(" => chr(11+11+11+1+1+1+1+1+1+1)
"1" => chr(11+11+11+11+1+1+1+1+1)
")" => chr(11+11+11+1+1+1+1+1+1+1+1)
"print(1)" => chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1)
exec("print(1)") => exec(chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1))

Usage

test.py $ python pyfuck.py ____ _____ _ | _ \ _ _| ___| _ ___| | __ | |_) | | | | |_ | | | |/ __| |/ / | __/| |_| | _|| |_| | (__| < |_| \__, |_| \__,_|\___|_|\_\ |___/ by Satoki FileName: test.py -> output.py $ python output.py Satoki">
$ echo "print('Satoki')" > test.py
$ python pyfuck.py
 ____        _____           _
|  _ \ _   _|  ___|   _  ___| | __
| |_) | | | | |_ | | | |/ __| |/ /
|  __/| |_| |  _|| |_| | (__|   <
|_|    \__, |_|   \__,_|\___|_|\_\
       |___/
                                    by Satoki

FileName: test.py
-> output.py
$ python output.py
Satoki
Owner
Satoki
Satoki
Completed task 1 and task 2 at LetsGrowMore as a data science intern.

LetsGrowMore-Internship Completed task 1 and task 2 at LetsGrowMore as a data science intern. Task 1- Task 2- Creating a Decision Tree classifier and

Sanjyot Panure 1 Jan 16, 2022
Remote execution of a simple function on the server

FunFetch Remote execution of a simple function on the server All types of Python support objects.

Decave 4 Jun 30, 2022
Track testrail productivity in automated reporting to multiple teams

django_web_app_for_testrail testrail is a test case management tool which helps any organization to track all consumption and testing of manual and au

Vignesh 2 Nov 21, 2021
solsim is the Solana complex systems simulator. It simulates behavior of dynamical systems—DeFi protocols, DAO governance, cryptocurrencies, and more—built on the Solana blockchain

solsim is the Solana complex systems simulator. It simulates behavior of dynamical systems—DeFi protocols, DAO governance, cryptocurrencies, and more—built on the Solana blockchain

William Wolf 12 Jul 13, 2022
gwcheck is a tool to check .gnu.warning.* sections in ELF object files and display their content.

gwcheck Description gwcheck is a tool to check .gnu.warning.* sections in ELF object files and display their content. For an introduction to .gnu.warn

Frederic Cambus 11 Oct 28, 2022
TikTok Auto Claimer Made By Aim low!#9999 Leaked By bazooka#0001

Zues Auto Claimer Leaked By bazooka#0001 put proxies in prox.txt put ssid in sid.txt put all users you want to target in user.txt for the login just t

1 Jan 14, 2022
One-stop-shop for docs and test coverage of dbt projects.

dbt-coverage One-stop-shop for docs and test coverage of dbt projects. Why do I need something like this? dbt-coverage is to dbt what coverage.py and

Slido 106 Dec 27, 2022
A little tool that uses LLVM to extract simple "what does this do" level instruction information from all architectures.

moirai: MOre InstRuctions and Information Backcronym. Anyway, this is a small project to extract useful instruction definitions from LLVM's platform d

2 Jul 30, 2022
Apache Superset out of box version(Windows 64-bit)

superset_app Apache Superset out of box version (Windows 64bit) prepare job download 3 files python-3.8.10-embed-amd64.zip get-pip.py python_geohash‑0

Steven Lee 9 Oct 02, 2022
Never see escaped bytes in output.

Uniout It makes Python print the object representation in readable chars instead of the escaped string. Example from pprint import pprint lang

Mosky Liu 156 Oct 21, 2022
Pypot ⚙️ A Python library for Dynamixel motor control

Pypot ⚙️ A Python library for Dynamixel motor control Pypot is a cross-platform Python library making it easy and fast to control custom robots based

Poppy Project 238 Nov 21, 2022
This python application let you check for new announcements from MMLS, take attendance while your lecturer is sharing QR Code on the screen.

This python application let you check for new announcements from MMLS, take attendance while your lecturer is sharing QR Code on the screen.

wyhong3103 5 Jul 17, 2022
A beautiful and useful prompt for your shell

A Powerline style prompt for your shell A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh: Shows some important details about the

Buck Ryan 6k Jan 08, 2023
Broken Link Finder is a Burp Extension to detect broken links for a passive scanning domains and links.

Broken Link Finder Broken Link Finder is a Burp Extension to detect broken links for a passive scanning domains and links. Inspired by InitRoot's link

Red Section 10 Sep 11, 2021
🎅🏻 Helping santa understand ✨ python ✨

☃️ Advent of code 2021 ☃️ Helping santa understand ✨ python ✨

Fluffy 2 Dec 25, 2021
A simple app that helps to train quick calculations.

qtcounter A simple app that helps to train quick calculations. Usage Manual Clone the repo in a folder using git clone https://github.com/Froloket64/q

0 Nov 27, 2021
HiQ - A Modern Observability System

🦉 A Modern Observability System HiQ is a declarative, non-intrusive, dynamic and transparent tracking system for both monolithic application and dist

Oracle Sample Code 40 Aug 21, 2022
Visualization of COVID-19 Omicron wave data in Seoul, Osaka, Tokyo, Hong Kong and Shanghai. 首尔、大阪、东京、香港、上海由新冠病毒 Omicron 变异株引起的本轮疫情数据可视化分析。

COVID-19 in East Asian Megacities This repository holds original Python code for processing and visualization COVID-19 data in East Asian megacities a

STONE 10 May 18, 2022
Custom Weapons 3 attribute support for Custom Weapons X

CW3toX Allows use of Custom Weapons 3 attributes in Custom Weapons X. Requiremen

2 Mar 01, 2022
A python program with an Objective-C GUI for building and booting OpenCore on both legacy and modern Macs

A python program with an Objective-C GUI for building and booting OpenCore on both legacy and modern Macs, see our in-depth Guide for more information.

dortania 4.7k Jan 02, 2023