💘 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
A calculator for common measurements used in sci-fi books.

Sci-fi-speed-calculator A calculator for common measurements used in sci-fi books. Author: Tyler Windmemuth Purpose: This program allows sci-fi author

Tyler Windemuth 0 Apr 22, 2022
Extra scripts to improve user experience related to OpenTaiko

OpenTaiko-Utils Extra scripts to improve user experience related to OpenTaiko osu2tja /!\ IMPORTANT NOTE /!\ Converted charts that aren't yours are fo

2 Dec 25, 2022
Python package for handling and analyzing PSRFITS files

PyPulse A pure-Python package for handling and analyzing PSRFITS files. Read the documentation here. This is an alternate code base from PSRCHIVE. Req

Michael Lam 15 Nov 30, 2022
Play tic-tac-toe in PowerPoint

The presentation has around 6,000 slides representing every possible game state (and some impossible ones, since I didn't check for wins or ties). You play by clicking on the squares, which are hyper

Jesse Li 3 Dec 18, 2021
Collie is for uncovering RDMA NIC performance anomalies

Collie is for uncovering RDMA NIC performance anomalies. Overview Prerequ

Bytedance Inc. 34 Dec 11, 2022
E-Paper display loop with plugins

PaperPi V3 NOTE This version of PaperPi is under heavy development and is not ready for the average user. We are working on adding more screen compati

Aaron Ciuffo 34 Dec 30, 2022
Create a simple program by applying the use of class

TUGAS PRAKTIKUM 8 💻 Nama : Achmad Mahfud NIM : 312110520 Kelas : TI.21.C5 Perintah : Buat program sederhana dengan mengaplikasikan pengguna

Achmad Mahfud 1 Dec 23, 2021
Source-o-grapher is a tool built with the aim to investigate software resilience aspects of Open Source Software (OSS) projects.

Source-o-grapher is a tool built with the aim to investigate software resilience aspects of Open Source Software (OSS) projects.

Aristotle University 5 Jun 28, 2022
An end-to-end Python-based Infrastructure as Code framework for network automation and orchestration.

Nectl An end-to-end Python-based Infrastructure as Code framework for network automation and orchestration. Features Data modelling and validation. Da

Adam Kirchberger 15 Oct 14, 2022
Open source stenotype engine

Plover Bringing stenography to everyone. Homepage Releases Wiki Blog Google Group Discord Chat About Installation Getting help Contributing Donations

Open Steno Project 2k Jan 09, 2023
A basic notes app to store your notes.

Notes Webapp A basic notes webapp to keep your notes.You can add, edit and delete notes after signing up. To add a note type your note in the text box

2 Oct 23, 2021
Run the Tianxunet software on the Xiaoyao Android simulator

Run the Tianxunet software on the Xiaoyao Android simulator, and automatically fill in the answers of English listening on the premise of having answers

1 Feb 13, 2022
This synchronizes my appearances with my calendar

Josh's Schedule Synchronizer Here's the "problem:" I use a Google Sheets spreadsheet to maintain all my public appearances.

Developer Advocacy 2 Oct 18, 2021
A webapp for taking fast notes, designed for business, school, and collaboration with groups.

JOTS Journal of the Session A webapp for taking fast notes, designed for business, school, and collaboration with groups.

Zebadiah S. Taylor 2 Jun 10, 2022
Simple Python tool to check if there is an Office 365 instance linked to a domain.

o365chk.py Simple Python script to check if there is an Office365 instance linked to a particular domain.

Steven Harris 37 Jan 02, 2023
This is the course project of AI3602: Data Mining of SJTU

This is the course project of AI3602: Data Mining of SJTU. Group Members include Jinghao Feng, Mingyang Jiang and Wenzhong Zheng.

2 Jan 13, 2022
Petuhlang is a joke-like language, based on Python.

Petuhlang is a joke-like language, based on Python. It updates builtins to make a new syntax based on operators rewrite.

DenyS 9 Jun 19, 2022
The update manager for the ERA App (era.sh)

ERA Update Manager This is the official update manager used in the ERA app (see era.sh) How it works Once a new version of ERA is available, the app l

Kian Shahriyari 1 Dec 29, 2021
Tethered downgrade 64-bit iDevices vulnerable to checkm8

ra1nstorm Tethered downgrade 64-bit iDevices vulnerable to checkm8 Since the purpose of this tool is to tethered downgrade a device, after restoring p

mini_exploit 65 Nov 08, 2022
Educational Repo. Used whilst learning Flask.

flask_python Educational Repo. Used whilst learning Flask. The below instructions will be required whilst establishing as new project. Install Flask (

Jordan 2 Oct 15, 2021